aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2007-03-25 19:44:24 +0800
committerdinoex <dinoex@FreeBSD.org>2007-03-25 19:44:24 +0800
commit5e1bb6943b4f6043e66bedd214d96dbc46c78816 (patch)
tree7974b6d5dc5d4c96caeab161ffbba201e72f9849 /www
parent75d2b45e5c6fea16988a53ded8dde7ca7755e2a2 (diff)
downloadfreebsd-ports-gnome-5e1bb6943b4f6043e66bedd214d96dbc46c78816.tar.gz
freebsd-ports-gnome-5e1bb6943b4f6043e66bedd214d96dbc46c78816.tar.zst
freebsd-ports-gnome-5e1bb6943b4f6043e66bedd214d96dbc46c78816.zip
- fix option WITH_GEOIP
PR: 110761 Submitted by: Leonhard Wimmer
Diffstat (limited to 'www')
-rw-r--r--www/webalizer/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile
index f48d13307ddc..49731e4c7031 100644
--- a/www/webalizer/Makefile
+++ b/www/webalizer/Makefile
@@ -145,12 +145,16 @@ do-extract:
.endif
pre-configure:
- @${MV} ${WRKSRC}/webalizer.1 ${WRKSRC}/webalizer.1.sed
- ${SED} -e "s=/etc=${PREFIX}/etc=" \
- ${WRKSRC}/webalizer.1.sed > ${WRKSRC}/webalizer.1
- @${MV} ${WRKSRC}/webalizer.c ${WRKSRC}/webalizer.c.sed
- ${SED} -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
- ${WRKSRC}/webalizer.c.sed > ${WRKSRC}/webalizer.c
+ ${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|" \
+ ${WRKSRC}/webalizer.1
+ ${REINPLACE_CMD} \
+ -e "s|webalizer.conf|${PKGNAMEPREFIX}webalizer.conf|" \
+ ${WRKSRC}/webalizer.c
+.if defined(WITH_GEOIP)
+ ${REINPLACE_CMD} \
+ -e 's|USE_GEOIP=""|USE_GEOIP="yes"|' \
+ ${WRKSRC}/configure
+.endif
.if !defined(WEBALIZER_LANG)
@${ECHO_MSG} "You can customize the language by typing"
@${ECHO_MSG} " make WEBALIZER_LANG=<lang>"