diff options
Diffstat (limited to 'math/givaro/Makefile')
-rw-r--r-- | math/givaro/Makefile | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/math/givaro/Makefile b/math/givaro/Makefile index 277d90d207d6..ed3f392191b5 100644 --- a/math/givaro/Makefile +++ b/math/givaro/Makefile @@ -13,29 +13,21 @@ LICENSE_NAME= Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre] B license, version 1 LICENSE_FILE= ${WRKSRC}/Licence_CeCILL-B_V1-en.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -LIB_DEPENDS= libgmp.so.10:math/gmp +LIB_DEPENDS= libgmp.so:math/gmp -USES= libtool +USES= libtool localbase:ldflags GNU_CONFIGURE= yes -CONFIGURE_ARGS = --with-gmp="${LOCALBASE}" +CONFIGURE_ARGS= --with-gmp="${LOCALBASE}" USE_LDCONFIG= yes INSTALL_TARGET= install-strip +TEST_TARGET= check OPTIONS_DEFINE= DOXYGEN +OPTIONS_SUB= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MDOXYGEN} -BUILD_DEPENDS += doxygen:devel/doxygen \ +DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ dot:graphics/graphviz -CONFIGURE_ARGS+= --enable-doc --with-docdir=${DOCSDIR} -PLIST_SUB+= PORTDOCS="" -.else -PLIST_SUB+= PORTDOCS="@comment " -.endif - -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +DOXYGEN_CONFIGURE_ON= --enable-doc --with-docdir=${DOCSDIR} post-patch: @${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/{s/-O2 //;s/-pipe//;}' \ @@ -43,19 +35,11 @@ post-patch: -e '/^WARN_CFLAGS="-Wall"/d' \ -e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \ ${WRKSRC}/configure -.if ${PORT_OPTIONS:MDOXYGEN} @${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/docs/Makefile.in -.endif -post-install: -.if ${PORT_OPTIONS:MDOXYGEN} - ${RMDIR} ${STAGEDIR}${DOCSDIR}/givaro-dev-html - ${FIND} ${WRKSRC}/docs/givaro-html -not -type d \ +post-install-DOXYGEN-on: + @${RMDIR} ${STAGEDIR}${DOCSDIR}/givaro-dev-html + @${FIND} ${WRKSRC}/docs/givaro-html -not -type d \ | ${SED} -ne 's,^${WRKSRC}/docs/givaro-html,${DOCSDIR}/givaro-html,p' >> ${TMPPLIST} -.endif - -check regression-test test: build - @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ - ${MAKE_ARGS} check .include <bsd.port.mk> |