Skip to content

Commit

Permalink
Build dialign2 on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian committed Oct 8, 2024
1 parent 1f7e295 commit 85f5fb8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
14 changes: 13 additions & 1 deletion recipes/dialign2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/share
mkdir -p ${PREFIX}/share/dialign2

export INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export CFLAGS="${CFLAGS} -O3 -L${PREFIX}/lib"

if [[ `uname` == "Darwin" ]]; then
export CFLAGS="${CFLAGS} -Wno-implicit-int -Wno-implicit-function-declaration"
else
export CFLAGS="${CFLAGS}"
fi

cd src

sed -i.bak "s|strcpy ( dialign_dir , \"DIALIGN2_DIR\" );|strcpy ( par_dir , \""${PREFIX}"/share/dialign2\" );|g" dialign.c
rm -rf *.bak

make CC="${CC}"
make CC="${CC}" CFLAGS="${CFLAGS}" -j"${CPU_COUNT}"
chmod 0755 dialign2-2
mv dialign2-2 ${PREFIX}/bin/dialign2-2

cd ../dialign2_dir
Expand Down
19 changes: 11 additions & 8 deletions recipes/dialign2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ package:
version: {{ version }}

source:
url: http://dialign.gobics.de/download/dialign_package.tgz
url: https://dialign.gobics.de/download/dialign_package.tgz
sha256: {{ sha256 }}
patches:
- patches/patchdialign.txt

build:
number: 7
skip: True # [osx]
number: 8
run_exports:
- {{ pin_subpackage('dialign2', max_pin="x") }}

requirements:
build:
Expand All @@ -22,14 +23,16 @@ requirements:

test:
commands:
- dialign2-2 |grep usage
- dialign2-2 | grep "usage"

about:
home: http://dialign.gobics.de
home: "https://dialign.gobics.de"
license: LGPL
license_file: license/LICENSE.TXT
summary: DIALIGN multiple sequence alignment using various sources of external information
license_file: "license/LICENSE.TXT"
summary: "DIALIGN multiple sequence alignment using various sources of external information."
doc_url: "https://dialign.gobics.de"

extra:
identifiers:
- DOI:10.1093/nar/gkt283
- doi:10.1093/nar/gkt283
- biotools:dialign
4 changes: 2 additions & 2 deletions recipes/dialign2/patches/patchdialign.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- dialign_package/src/dialign.c 2005-02-21 17:32:55.000000000 +0100
+++ dialign_package/src/dialign.c 2018-07-26 16:46:41.962909610 +0200
--- a/src/dialign.c 2005-02-21 17:32:55.000000000 +0100
+++ b/src/dialign.c 2018-07-26 16:46:41.962909610 +0200
@@ -294,16 +294,16 @@

strcpy ( dialign_dir , "DIALIGN2_DIR" );
Expand Down

0 comments on commit 85f5fb8

Please sign in to comment.