Date: Thu, 11 Nov 2004 21:24:52 +0200 From: "Nikolaj Karpov" <kolya@astrons.com> To: <ports@FreeBSD.org> Subject: Geolizer language patch Message-ID: <004e01c4c824$1e8cfa70$0100a8c0@wsnikolaj>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_004F_01C4C834.E215CA70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello! My first patch to enable language select in www/geolizer. Comments,suggestions and critics are welcome! Best regards, Nikolaj Karpov ------=_NextPart_000_004F_01C4C834.E215CA70 Content-Type: application/octet-stream; name="patch.dat" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch.dat" --- Makefile Thu Nov 11 20:05:15 2004=0A= +++ Makefile Thu Nov 11 21:15:53 2004=0A= @@ -44,7 +44,10 @@=0A= --with-geoip-inc=3D${LOCALBASE}/include \=0A= --with-png=3D${LOCALBASE}/lib \=0A= --with-png-inc=3D${LOCALBASE}/include \=0A= - --with-language=3Denglish=0A= +=0A= +.if defined(GEOLIZER_LANG)=0A= +CONFIGURE_ARGS+=3D --with-language=3D${GEOLIZER_LANG}=0A= +.endif=0A= =0A= CFLAGS+=3D -DLINKLIST_MAX_STRING=3D256=0A= MAN1=3D ${PKGNAMEPREFIX}webalizer.1=0A= @@ -55,6 +58,12 @@=0A= PLIST_SUB+=3D PKGNAMEPREFIX=3D${PKGNAMEPREFIX}=0A= =0A= pre-configure:=0A= +.if !defined(GEOLIZER_LANG)=0A= + @${ECHO_MSG} "You can customize the language by typing"=0A= + @${ECHO_MSG} " make GEOLIZER_LANG=3D<lang>"=0A= + @${ECHO_MSG} "where <lang> is one of:"=0A= + @${ECHO_MSG} ${SUPP_LANG}=0A= +.endif=0A= @${MV} ${WRKSRC}/webalizer.1 ${WRKSRC}/webalizer.1.sed=0A= ${SED} -e "s=3D/etc=3D${PREFIX}/etc=3D" \=0A= ${WRKSRC}/webalizer.1.sed > ${WRKSRC}/webalizer.1=0A= ------=_NextPart_000_004F_01C4C834.E215CA70--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004e01c4c824$1e8cfa70$0100a8c0>