diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 13:20:54 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 13:20:54 +0000 |
commit | c449f1d8368ad2f89ae4555852be8a343495074d (patch) | |
tree | b9cd1ba136522143396d9b19d0e12c1f3189b448 /graphics/qslim | |
parent | 24c2bc63eb0f561ff43111d72a77d21fa60b62c7 (diff) | |
download | FreeBSD-ports-c449f1d8368ad2f89ae4555852be8a343495074d.zip FreeBSD-ports-c449f1d8368ad2f89ae4555852be8a343495074d.tar.gz |
Conditionalize gnugetopt dependencies and fix minor typo.
PR: ports/47330
Submitted by: Ports Fury
Diffstat (limited to 'graphics/qslim')
-rw-r--r-- | graphics/qslim/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/graphics/qslim/Makefile b/graphics/qslim/Makefile index 067e60e..a223e81 100644 --- a/graphics/qslim/Makefile +++ b/graphics/qslim/Makefile @@ -13,8 +13,7 @@ MASTER_SITES= http://graphics.cs.uiuc.edu/~garland/dist/ MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ - png.5:${PORTSDIR}/graphics/png \ +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ tiff.4:${PORTSDIR}/graphics/tiff \ forms.1:${PORTSDIR}/x11-toolkits/xforms @@ -28,10 +27,9 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" ALL_TARGET= # none -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \ +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include \ -I${X11BASE}/include/X11 ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib \ - ${PTHREAD_LIBS} +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} .include <bsd.port.pre.mk> @@ -39,7 +37,12 @@ LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib \ CFLAGS+= -DMIX_ANSI_IOSTREAMS -fpermissive .endif -post-extact: +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +LDFLAGS+= -lgnugetopt +.endif + +post-extract: @${RM} -f ${WRKSRC}/mixkit/src/getopt.h post-patch: |