aboutsummaryrefslogtreecommitdiff
path: root/japanese/eblook
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2015-10-10 14:03:00 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2015-10-10 14:03:00 +0000
commit3a55a118dde2f1cef80ad8ed446044449cb8417d (patch)
tree4ac25229c12e49e974a92ecd82e01b92eea15c00 /japanese/eblook
parent630b5a689e7c6ead73c118b24cff9156918e9155 (diff)
Notes
Diffstat (limited to 'japanese/eblook')
-rw-r--r--japanese/eblook/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/japanese/eblook/Makefile b/japanese/eblook/Makefile
index 27d540bff6ff..e22c667a808e 100644
--- a/japanese/eblook/Makefile
+++ b/japanese/eblook/Makefile
@@ -16,10 +16,10 @@ LICENSE= GPLv2
LIB_DEPENDS= libeb.so:${PORTSDIR}/japanese/eb
USES= iconv
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-eb-conf=${PREFIX}/etc/eb.conf
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-eb-conf=${PREFIX}/etc/eb.conf
CPPFLAGS+= -I${ICONV_PREFIX}/include
-LDFLAGS+= -L${ICONV_PREFIX}/lib ${ICONV_LIB}
+LIBS+= -L${ICONV_PREFIX}/lib ${ICONV_LIB}
INFO= eblook
PLIST_FILES= bin/eblook
@@ -27,10 +27,14 @@ PORTDOCS= AUTHORS COPYING ChangeLog NEWS README
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
+
+.if !empty(ICONV_LIB)
+CONFIGURE_ARGS+=ac_cv_func_iconv=yes
+.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>