1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Convert to OptionsNG

Reviewed by:	kwm, jgh
Approved by:	bapt
This commit is contained in:
Eitan Adler 2013-06-05 22:22:32 +00:00
parent e9dd2fa24f
commit fb0a0b16e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320033
2 changed files with 6 additions and 10 deletions

View File

@ -16,25 +16,21 @@ LICENSE_PERMS= auto-accept
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
OPTIONS= DOCS "build HTML documents (requires doxygen)" off
GNU_CONFIGURE= yes
CONFIGURE_ARGS = --with-gmp="${LOCALBASE}"
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOXYGEN
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS}
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen
CONFIGURE_ARGS+= --enable-doc --with-docdir="${DOCSDIR}"
.elifndef(NOPORTDOCS)
NOPORTDOCS= yes
.endif
.if ${LOCALBASE} == "/usr/local"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
post-patch:
@${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/{s/-O2 //;s/-pipe//;}' \
@ -42,11 +38,11 @@ post-patch:
-e '/^WARN_CFLAGS="-Wall"/d' \
-e '/if test "x$$WARN" = "xyes"/s/$$/ WARN_CFLAGS="-Wall" ;/' \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS}
.if ${PORT_OPTIONS:MDOXYGEN)
@${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/docs/Makefile.in
.endif
.if ${PORT_OPTIONS:MDOCS) && !defined(NOPORTDOCS}
.if ${PORT_OPTIONS:MDOXYGEN}
post-install:
@${TOUCH} ${DOCSDIR}/givaro-dev-html/.keep-me

View File

@ -7,4 +7,4 @@ classes for the manipulation of basic algebraic objects, such as vectors,
matrices (dense, sparse, and structured), univariate polynomials, and recursive
multivariate polynomials.
WWW: http://ljk.imag.fr/CASYS/LOGICIELS/givaro/
WWW: http://ljk.imag.fr/CASYS/LOGICIELS/givaro/