diff options
author | andreas <andreas@FreeBSD.org> | 1998-07-31 08:48:02 +0000 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 1998-07-31 08:48:02 +0000 |
commit | 8df6c84682bf6377d15aeb5f60a83e8429ed166b (patch) | |
tree | 5b4af9f5e85b87c28d0abcf6b1af6af92e804bba /www | |
parent | 3fb5a451a71cea85ad7c2618b153bf335b50c850 (diff) | |
download | FreeBSD-ports-8df6c84682bf6377d15aeb5f60a83e8429ed166b.zip FreeBSD-ports-8df6c84682bf6377d15aeb5f60a83e8429ed166b.tar.gz |
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 ...
Diffstat (limited to 'www')
-rw-r--r-- | www/webalizer-2/Makefile | 34 | ||||
-rw-r--r-- | www/webalizer/Makefile | 34 |
2 files changed, 66 insertions, 2 deletions
diff --git a/www/webalizer-2/Makefile b/www/webalizer-2/Makefile index 8951c93..d713524 100644 --- a/www/webalizer-2/Makefile +++ b/www/webalizer-2/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 diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile index 8951c93..d713524 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 |