aboutsummaryrefslogtreecommitdiff
path: root/math/spar
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:27:19 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:27:19 +0000
commit09568cca960666a7ad0513fde6eeeadc907718a5 (patch)
treecca5385f4bfc608b9a49aa35a3ed8a21c64d7eb9 /math/spar
parent05d59c2369a0202666c513c2267c308f716b3e93 (diff)
downloadports-09568cca960666a7ad0513fde6eeeadc907718a5.tar.gz
ports-09568cca960666a7ad0513fde6eeeadc907718a5.zip
Notes
Diffstat (limited to 'math/spar')
-rw-r--r--math/spar/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/math/spar/Makefile b/math/spar/Makefile
index 3c8d65aa63db..476a1e5f43cc 100644
--- a/math/spar/Makefile
+++ b/math/spar/Makefile
@@ -14,16 +14,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
-
USE_REINPLACE= yes
USE_LIBTOOL= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
MAN1= spar.1
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in