diff options
author | danfe <danfe@FreeBSD.org> | 2013-07-18 15:35:23 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-07-18 15:35:23 +0800 |
commit | e7ffa78755481fc35c6e3c2eb0e7c8a4102177b8 (patch) | |
tree | 8ac7fb56385af93206ff30a8b2d6a3a259727a21 /japanese/lynx | |
parent | 293a71b0e4c1fa578f787d87cac2fad3626c5a6d (diff) | |
download | freebsd-ports-gnome-e7ffa78755481fc35c6e3c2eb0e7c8a4102177b8.tar.gz freebsd-ports-gnome-e7ffa78755481fc35c6e3c2eb0e7c8a4102177b8.tar.zst freebsd-ports-gnome-e7ffa78755481fc35c6e3c2eb0e7c8a4102177b8.zip |
- Attempt to fix parallel builds (-jX)
- Convert to modern OPTIONS syntax
- Generally clean up the port while here
Reported by: pointyhat-west
Diffstat (limited to 'japanese/lynx')
-rw-r--r-- | japanese/lynx/Makefile | 71 | ||||
-rw-r--r-- | japanese/lynx/pkg-plist | 6 |
2 files changed, 35 insertions, 42 deletions
diff --git a/japanese/lynx/Makefile b/japanese/lynx/Makefile index 8c6e3e0cb0fe..fcf5ec4779c1 100644 --- a/japanese/lynx/Makefile +++ b/japanese/lynx/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ja-lynx -# Date created: 10 August 1998 -# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org> -# +# Created by: Shigeyuki FUKUSHIMA <shige@FreeBSD.org> # $FreeBSD$ -# PORTNAME= lynx DISTVERSION= ${VERSION}.${MINOR_VERSION:S/.//} @@ -13,64 +9,61 @@ MASTER_SITES= http://lynx.isc.org/current/ \ DISTNAME= ${PORTNAME}${VERSION}${MINOR_VERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= A terminal-based World-Wide Web Client with multi-byte modification +COMMENT= Console WWW client (browser) with multi-byte encoding support + +LICENSE= GPLv2 VERSION= 2.8.7 MINOR_VERSION= rel.1 CONFLICTS= lynx-2.* ja-lynx-2.8.8.* -WRKSRC= ${WRKDIR}/${PORTNAME}${VERSION:S/./-/g} USE_BZIP2= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--with-screen=ncurses --with-zlib --libdir="${L_LIB}" \ +CONFIGURE_ARGS= --with-screen=ncurses --with-zlib --libdir="${L_LIB}" \ --enable-nsl-fork --enable-ipv6 \ --enable-cjk --enable-internal-links \ --with-bzlib +MAKE_ARGS= helpdir=${L_HELP} docdir=${DOCSDIR} +MAKEFILE= makefile -.if !defined(WITHOUT_JAPANESE_UTF8) -USES+= iconv -CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \ - --enable-japanese-utf8 -.else -CONFIGURE_ARGS+=--disable-japanese-utf8 -.endif +WRKSRC= ${WRKDIR}/${PORTNAME}${VERSION:S/./-/g} +L_LIB= ${PREFIX}/etc +L_HELP= ${PREFIX}/share/lynx_help -.if defined(WITH_COLOR_STYLE) -CONFIGURE_ARGS+=--enable-color-style -PLIST_SUB+= WITH_COLOR_STYLE="" -.else -CONFIGURE_ARGS+=--disable-color-style -PLIST_SUB+= WITH_COLOR_STYLE="@comment " -.endif +MAN1= lynx.1 -.if defined(WITH_DEFAULT_COLORS) -CONFIGURE_ARGS+=--enable-default-colors -.else -CONFIGURE_ARGS+=--disable-default-colors -.endif +OPTIONS_DEFINE= JAPANESE_UTF8 COLOR_STYLE DEFAULT_COLORS DOCS +OPTIONS_SUB= yes -MAKE_ARGS= helpdir=${L_HELP} docdir=${DOCSDIR} -MAKEFILE= makefile -MAN1= lynx.1 +JAPANESE_UTF8_DESC= Enable experimental Japanese UTF-8 logic +COLOR_STYLE_DESC= Enable color style (ncurses/curses) +DEFAULT_COLORS_DESC= Enable default colors (ncurses/slang) -.if !defined(NOPORTDOCS) +JAPANESE_UTF8_USES= iconv +JAPANESE_UTF8_CONFIGURE_ON= --with-libiconv-prefix=${LOCALBASE} +JAPANESE_UTF8_CONFIGURE_ENABLE= japanese-utf8 +COLOR_STYLE_CONFIGURE_ENABLE= color-style +DEFAULT_COLORS_CONFIGURE_ENABLE=default-colors + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} INSTALL_TARGET= install-full .else INSTALL_TARGET= install install-help .endif -L_LIB= ${PREFIX}/etc -L_HELP= ${PREFIX}/share/lynx_help - +# Change "cd foo; $(MAKE_RECUR)" into "$(MAKE_RECUR) -C foo" to unbreak +# parallel builds post-patch: - @${REINPLACE_CMD} -e 's|-lssl -lcrypto|-L${OPENSSLLIB} &|g' \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -E 's|cd (.+) && (\$$\(MAKE_RECUR\))|\2 -C \1|' \ + ${WRKSRC}/${MAKEFILE}.in post-install: -.if !defined(NOPORTDOCS) - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} .endif - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${L_HELP} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${L_HELP} .include <bsd.port.mk> diff --git a/japanese/lynx/pkg-plist b/japanese/lynx/pkg-plist index a7cc3a722bb2..609ae6150d00 100644 --- a/japanese/lynx/pkg-plist +++ b/japanese/lynx/pkg-plist @@ -2,9 +2,9 @@ bin/lynx @unexec if [ -f %D/etc/lynx.cfg ] && cmp -s %D/etc/lynx.cfg %D/etc/lynx.cfg.default; then rm -f %D/etc/lynx.cfg; fi etc/lynx.cfg.default @exec if [ ! -f %D/etc/lynx.cfg ] ; then cp -p %D/%F %B/lynx.cfg; fi -%%WITH_COLOR_STYLE%%@unexec if [ -f %D/etc/lynx.lss ] && cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.default; then rm -f %D/etc/lynx.lss; fi -%%WITH_COLOR_STYLE%%etc/lynx.lss.default -%%WITH_COLOR_STYLE%%@exec if [ ! -f %D/etc/lynx.lss ] ; then cp -p %D/%F %B/lynx.lss; fi +%%COLOR_STYLE%%@unexec if [ -f %D/etc/lynx.lss ] && cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.default; then rm -f %D/etc/lynx.lss; fi +%%COLOR_STYLE%%etc/lynx.lss.default +%%COLOR_STYLE%%@exec if [ ! -f %D/etc/lynx.lss ] ; then cp -p %D/%F %B/lynx.lss; fi @exec mkdir -p %D/share/lynx_help %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/COPYHEADER |