aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2004-10-26 11:51:22 +0000
committerMichael Landin <mich@FreeBSD.org>2004-10-26 11:51:22 +0000
commit18f194178009457f3a5be0a60a84818bb14bd141 (patch)
tree73d1af7775df944887cd8a2e44170c9ba64b5f53
parentc6963dbf78bb16201d6acf1b7b76dd9189bc59f9 (diff)
downloadports-18f194178009457f3a5be0a60a84818bb14bd141.tar.gz
ports-18f194178009457f3a5be0a60a84818bb14bd141.zip
o add OPTIONS for WITH_LOGCHARSET
- WITH_LOGCHARSET adds a RUN_DEPENDS on p5-Text-Iconv o add empty do-build target, as workaround for OPTIONS bug Requested by: Ulrich Spoerlein <q@uni.de>
Notes
Notes: svn path=/head/; revision=120220
-rw-r--r--irc/pisg/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/irc/pisg/Makefile b/irc/pisg/Makefile
index 64cb6e83c90b..92fcb23e448a 100644
--- a/irc/pisg/Makefile
+++ b/irc/pisg/Makefile
@@ -18,6 +18,16 @@ USE_REINPLACE= YES
USE_PERL5= YES
NO_BUILD= YES
+OPTIONS= LOGCHARSET "Character set for logfiles" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LOGCHARSET)
+RUN_DEPENDS+= ${SITE_PERL}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv
+.endif
+
+do-build:
+
pre-patch:
@${REINPLACE_CMD} -e 's|lang.txt|${PREFIX}/share/pisg/lang.txt|; \
s|layout/|${PREFIX}/share/pisg/layout/|' \
@@ -55,4 +65,4 @@ post-install:
@${ECHO_MSG}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>