Skip to content

Commit

Permalink
Update Portfile generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
neurodroid committed Sep 29, 2017
1 parent 9325eb1 commit b44d6bd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/macosx/macports/insert_checksums.sh
Expand Up @@ -38,7 +38,7 @@ sudo port uninstall py-stfio
sudo port clean --all py-stfio
sudo port uninstall py27-stfio
sudo port clean --all py27-stfio
sudo port uninstall py34-stfio
sudo port clean --all py34-stfio
sudo port uninstall py35-stfio
sudo port clean --all py35-stfio
sudo port uninstall py36-stfio
sudo port clean --all py36-stfio
12 changes: 9 additions & 3 deletions dist/macosx/macports/python/py-stfio/Portfile.in
Expand Up @@ -19,7 +19,7 @@ distname stimfit-${version}
checksums rmd160 RMD160 \
sha256 SHA256

python.versions 27 34 35
python.versions 27 35 36

if { ${name} ne ${subport} } {
depends_build port:swig-python
Expand Down Expand Up @@ -50,7 +50,7 @@ if { ${name} ne ${subport} } {
${worksrcpath}/COPYING ${docdir}
}

variant biosig description {Use biosig library for file I/O.} {
variant biosig conflicts biosiglite description {Use external biosig library for file I/O.} {
depends_lib-append \
port:libbiosig

Expand All @@ -59,5 +59,11 @@ if { ${name} ne ${subport} } {
--with-biosig2
}

default_variants +biosig
variant biosiglite conflicts biosig description {Use internal biosiglite library for file I/O.} {
configure.args-replace \
--without-biosig \
--with-biosiglite
}

default_variants +biosiglite
}
10 changes: 8 additions & 2 deletions dist/macosx/macports/science/stimfit/Portfile.in
Expand Up @@ -57,7 +57,7 @@ variant atlas description {Use MacPorts ATLAS libraries.} {
--with-lapack-lib=${prefix}/lib/libatlas.a
}

variant biosig description {Use biosig library for file I/O.} {
variant biosig conflicts biosiglite description {Use external biosig library for file I/O.} {
depends_lib-append \
port:libbiosig

Expand All @@ -66,6 +66,12 @@ variant biosig description {Use biosig library for file I/O.} {
--with-biosig2
}

variant biosiglite conflicts biosig description {Use internal biosiglite library for file I/O.} {
configure.args-replace \
--without-biosig \
--with-biosiglite
}

configure.ldflags-append \
-headerpad_max_install_names

Expand All @@ -74,7 +80,7 @@ configure.ldflags-append \
default_variants +python27
# }
default_variants-append \
+biosig
+biosiglite

destroot.destdir DESTDIR=${destroot}${applications_dir}

Expand Down

0 comments on commit b44d6bd

Please sign in to comment.