diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2017-01-30 00:04:48 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2017-01-30 00:04:48 +0800 |
commit | 8edbd4f4a556c0d3f28111dfe52b9958e326b98c (patch) | |
tree | 9725c94997a8f8e7f21e6a087b08a3733b441368 /science | |
parent | 472b8f7d45973360d446b875972e3822fd8c6df2 (diff) | |
download | freebsd-ports-gnome-8edbd4f4a556c0d3f28111dfe52b9958e326b98c.tar.gz freebsd-ports-gnome-8edbd4f4a556c0d3f28111dfe52b9958e326b98c.tar.zst freebsd-ports-gnome-8edbd4f4a556c0d3f28111dfe52b9958e326b98c.zip |
Add JASPER and SZLIB options
Diffstat (limited to 'science')
-rw-r--r-- | science/cgribex/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/science/cgribex/Makefile b/science/cgribex/Makefile index a4077af2bfef..d924996d3e5d 100644 --- a/science/cgribex/Makefile +++ b/science/cgribex/Makefile @@ -13,17 +13,25 @@ COMMENT= Lightweight GRIBEX in C with portable Fortran interface LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libjasper.so:graphics/jasper \ - libsz.so:science/szip +OPTIONS_DEFINE= JASPER SZIP +OPTIONS_DEFAULT=JASPER SZIP -CONFIGURE_ARGS= --with-jasper=${LOCALBASE} \ - --with-szlib=${LOCALBASE} CPPFLAGS+= -DgFortran GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes USES= libtool +JASPER_CONFIGURE_OFF= --without-jasper +JASPER_CONFIGURE_ON= --with-jasper=${LOCALBASE} +JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper +SZLIB_CONFIGURE_OFF= --without-szlib +SZIP_CONFIGURE_ON= --with-szlib=${LOCALBASE} +SZIP_LIB_DEPENDS= libsz.so:science/szip + +post-configure: + @${REINPLACE_CMD} -e 's|-Ino/include||; s|-Lno/lib||' ${WRKSRC}/Makefile ${WRKSRC}/*/Makefile + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgribex.so.0.0.0 |