summaryrefslogtreecommitdiff
path: root/textproc/raptor
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:55:53 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:55:53 +0000
commit4e9800127db7c6e3ff7df207bbc9de127b42ca27 (patch)
tree75a9c6bb155e63b0d662bc8d20ade3d5da6ed3ea /textproc/raptor
parentConditionalize libgnugetopt dependencies. (diff)
Conditionalize libgnugetopt dependencies.
PR: ports/47758 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74510
Diffstat (limited to 'textproc/raptor')
-rw-r--r--textproc/raptor/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/textproc/raptor/Makefile b/textproc/raptor/Makefile
index 520456ea6c42..013aacbe1e66 100644
--- a/textproc/raptor/Makefile
+++ b/textproc/raptor/Makefile
@@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= librdf
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- xml2.5:${PORTSDIR}/textproc/libxml2 \
+LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
xmlparse.1:${PORTSDIR}/www/libwww
LIBWWW_CONFIG= ${LOCALBASE}/bin/libwww-config
@@ -30,7 +29,12 @@ INSTALLS_SHLIB= yes
MAN1= rdfdump.1
MAN3= libraptor.3
-CPPFLAGS= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags`
-LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt `${LIBWWW_CONFIG} --libs`
+CPPFLAGS+= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags`
+LDFLAGS+= -L${LOCALBASE}/lib `${LIBWWW_CONFIG} --libs`
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
.include <bsd.port.mk>