aboutsummaryrefslogtreecommitdiff
path: root/science/silo
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-07-24 17:15:35 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-07-24 17:15:35 +0000
commit9967a8faebeb5e3738993da432a77b5a535c7629 (patch)
tree56c548ad791114175ae0bf5c395ade66ba2774b2 /science/silo
parent683bdcfb7270889ec8fb0759dcb5cb7326c8ca7b (diff)
downloadports-9967a8faebeb5e3738993da432a77b5a535c7629.tar.gz
ports-9967a8faebeb5e3738993da432a77b5a535c7629.zip
Notes
Diffstat (limited to 'science/silo')
-rw-r--r--science/silo/Makefile42
-rw-r--r--science/silo/pkg-plist2
2 files changed, 15 insertions, 29 deletions
diff --git a/science/silo/Makefile b/science/silo/Makefile
index dd28a56ca1dc..756f5c7b4e67 100644
--- a/science/silo/Makefile
+++ b/science/silo/Makefile
@@ -17,34 +17,31 @@ LIB_DEPENDS= netcdf.4:${PORTSDIR}/science/netcdf
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib"
USE_GMAKE= yes
-CONFIGURE_ARGS= --enable-shared
+CONFIGURE_ENV+= ${MAKE_ENV}
+CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG= yes
USE_XLIB= yes
USE_QT_VER= 3
QT_COMPONENTS= moc uic
-OPTIONS= PYTHON "Enable Python Module" Off \
- HDF5 "Enable HDF5 Driver" Off \
- SILEXB "Enable Silex Browser" Off \
- FORTRAN "Compile Fortran interface" Off \
- OPTIMIZATION "Enable extra optimizations" On
-
-USE_PYTHON= yes
-
-.include <bsd.port.pre.mk>
-
.ifdef WITH_PYTHON
+USE_PYTHON= yes
CONFIGURE_ARGS+= --enable-pythonmodule
PLIST_SUB+= WITH_PYTHON=""
.else
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
+.ifdef WITH_FORTRAN
+USE_FORTRAN= yes
+CONFIGURE_ARGS+= --enable-fortran
+.else
+CONFIGURE_ARGS+= --disable-fortran
+.endif
+
.ifdef WITH_HDF5
LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5
CONFIGURE_ARGS= --with-hdf5=${LOCALBASE}
@@ -55,25 +52,14 @@ PLIST_SUB+= WITH_HDF5="@comment "
PLIST_SUB+= WITH_NCDF=""
.endif
-.ifdef WITH_SILEXB
-CONFIGURE_ARGS+= --enable-silex
-PLIST_SUB+= WITH_SILEXB=""
-.else
-PLIST_SUB+= WITH_SILEXB="@comment "
-.endif
-
-.ifdef WITH_FORTRAN
-USE_FORTRAN= yes
-CONFIGURE_ARGS+= --enable-fortran
-.else
-CONFIGURE_ARGS+= --disable-fortran
-.endif
-
.ifdef WITH_OPTIMIZATION
CONFIGURE_ARGS+= --enable-optimization
.endif
+post-install:
+ @${RM} ${PREFIX}/lib/libsilo.settings
+
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/science/silo/pkg-plist b/science/silo/pkg-plist
index c3ecbd8846ae..983b2fc9437c 100644
--- a/science/silo/pkg-plist
+++ b/science/silo/pkg-plist
@@ -1,4 +1,4 @@
-%%WITH_SILEXB%%bin/browser
+bin/browser
bin/silodiff
bin/silex
bin/silock