aboutsummaryrefslogtreecommitdiff
path: root/www/webalizer
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1998-07-31 08:48:02 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1998-07-31 08:48:02 +0000
commit83402aa5dd0211d0509e9c3ccce120be8ba80ab8 (patch)
tree542c446a77b5e5a1d674b0fdf332697398002dd8 /www/webalizer
parentcd10d0e6bf75fc7336437af160e9f3f77d992d67 (diff)
downloadports-83402aa5dd0211d0509e9c3ccce120be8ba80ab8.tar.gz
ports-83402aa5dd0211d0509e9c3ccce120be8ba80ab8.zip
language support
if defined batch then WEBALIZER_LANG=english notify people how to build german, french, spanish, english, dutch version, if WEBALIZER_LANG isn't defined ...
Notes
Notes: svn path=/head/; revision=12225
Diffstat (limited to 'www/webalizer')
-rw-r--r--www/webalizer/Makefile34
1 files changed, 33 insertions, 1 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile
index 8951c93e7161..d7135247b86e 100644
--- a/www/webalizer/Makefile
+++ b/www/webalizer/Makefile
@@ -3,7 +3,7 @@
# Date created: 02.Jun 1998
# Whom: dirk.meyer@dinoex.sub.org
#
-# $Id: Makefile,v 1.1.1.1 1998/06/28 12:42:08 andreas Exp $
+# $Id: Makefile,v 1.2 1998/07/30 13:23:24 andreas Exp $
DISTNAME= webalizer-1.12-09-src
PKGNAME= webalizer-1.12
@@ -19,6 +19,38 @@ BUILD_DEPENDS= ${PREFIX}/lib/libgd.a:${PORTSDIR}/graphics/gd
BIN1= webalizer
WRKSRC= ${WRKDIR}
+.if defined(BATCH)
+WEBALIZER_LANG=english
+.endif
+
+pre-fetch:
+.if !defined(WEBALIZER_LANG)
+ @${ECHO_MSG} "You can customize the language by typing"
+ @${ECHO_MSG} "make WEBALIZER_LANG=english"
+ @${ECHO_MSG} "make WEBALIZER_LANG=german"
+ @${ECHO_MSG} "make WEBALIZER_LANG=french"
+ @${ECHO_MSG} "make WEBALIZER_LANG=spanish"
+ @${ECHO_MSG} "make WEBALIZER_LANG=dutch"
+.endif
+
+post-configure:
+.if defined(WEBALIZER_LANG) && ${WEBALIZER_LANG} == english
+ @${ECHO_MSG} "===> customizing for english"
+ ${LN} -sf ${WRKSRC}/webalizer_lang.english ${WRKSRC}/webalizer_lang.h
+.elif defined(WEBALIZER_LANG) && ${WEBALIZER_LANG} == german
+ @${ECHO_MSG} "===> customizing for german"
+ ${LN} -sf ${WRKSRC}/webalizer_lang.german ${WRKSRC}/webalizer_lang.h
+.elif defined(WEBALIZER_LANG) && ${WEBALIZER_LANG} == french
+ @${ECHO_MSG} "===> customizing for french"
+ ${LN} -sf ${WRKSRC}/webalizer_lang.french ${WRKSRC}/webalizer_lang.h
+.elif defined(WEBALIZER_LANG) && ${WEBALIZER_LANG} == spanish
+ @${ECHO_MSG} "===> customizing for spanish"
+ ${LN} -sf ${WRKSRC}/webalizer_lang.spanish ${WRKSRC}/webalizer_lang.h
+.elif defined(WEBALIZER_LANG) && ${WEBALIZER_LANG} == dutch
+ @${ECHO_MSG} "===> customizing for dutch"
+ ${LN} -sf ${WRKSRC}/webalizer_lang.dutch ${WRKSRC}/webalizer_lang.h
+.endif
+
do-install:
.for i in ${BIN1}
@${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin