aboutsummaryrefslogtreecommitdiff
path: root/japanese/ebview-gtk2
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:29:18 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:29:18 +0000
commitc213498fefbb82c3b42d04a06a7f9335886b760a (patch)
tree8eb30ade9a2a02e00aad3fd65450e34e9d78a7c8 /japanese/ebview-gtk2
parent09568cca960666a7ad0513fde6eeeadc907718a5 (diff)
downloadports-c213498fefbb82c3b42d04a06a7f9335886b760a.tar.gz
ports-c213498fefbb82c3b42d04a06a7f9335886b760a.zip
Conditionalize libgnugetopt dependencies.
PR: ports/47747 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74499
Diffstat (limited to 'japanese/ebview-gtk2')
-rw-r--r--japanese/ebview-gtk2/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/japanese/ebview-gtk2/Makefile b/japanese/ebview-gtk2/Makefile
index f04ec5dcc8b8..4ccfec10337d 100644
--- a/japanese/ebview-gtk2/Makefile
+++ b/japanese/ebview-gtk2/Makefile
@@ -13,8 +13,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- eb.6:${PORTSDIR}/japanese/eb
+LIB_DEPENDS= eb.6:${PORTSDIR}/japanese/eb
USE_GNOMENG= yes
USE_GNOME= imlib
@@ -22,11 +21,18 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOMAKE_VER= 14
USE_AUTOCONF_VER= 253
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}