Date: Sun, 29 Jan 2017 16:04:48 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432764 - head/science/cgribex Message-ID: <201701291604.v0TG4mrt053888@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701291604.v0TG4mrt053888>