diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 22:27:19 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 22:27:19 +0800 |
commit | b1f92be3f27080a1fcc9fedc419f45ff823d53b8 (patch) | |
tree | e3f4958ba4a86050b9ae45d18153f9d86827abb9 /math/spar | |
parent | e17afca8fa4663ef21b661175a1cf6401afe9ef7 (diff) | |
download | freebsd-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/Makefile | 11 |
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 |