svn commit: r432764 - head/science/cgribex
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jan 29 16:04:49 UTC 2017
Author: sunpoet
Date: Sun Jan 29 16:04:48 2017
New Revision: 432764
URL: https://svnweb.freebsd.org/changeset/ports/432764
Log:
Add JASPER and SZLIB options
Modified:
head/science/cgribex/Makefile
Modified: head/science/cgribex/Makefile
==============================================================================
--- head/science/cgribex/Makefile Sun Jan 29 16:04:43 2017 (r432763)
+++ head/science/cgribex/Makefile Sun Jan 29 16:04:48 2017 (r432764)
@@ -13,17 +13,25 @@ COMMENT= Lightweight GRIBEX in C with po
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
More information about the svn-ports-all
mailing list