aboutsummaryrefslogtreecommitdiffstats
path: root/math/spar
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-02-02 22:27:19 +0800
committernork <nork@FreeBSD.org>2003-02-02 22:27:19 +0800
commitb1f92be3f27080a1fcc9fedc419f45ff823d53b8 (patch)
treee3f4958ba4a86050b9ae45d18153f9d86827abb9 /math/spar
parente17afca8fa4663ef21b661175a1cf6401afe9ef7 (diff)
downloadfreebsd-ports-gnome-b1f92be3f27080a1fcc9fedc419f45ff823d53b8.tar.gz
freebsd-ports-gnome-b1f92be3f27080a1fcc9fedc419f45ff823d53b8.tar.zst
freebsd-ports-gnome-b1f92be3f27080a1fcc9fedc419f45ff823d53b8.zip
Conditionalize libgnugetopt dependencies.
PR: ports/47746 Submitted by: Ports Fury
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