freebsd-ports/japanese/lynx/Makefile
2021-04-06 16:31:07 +02:00

69 lines
1.9 KiB
Makefile

# Created by: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
PORTNAME= lynx
DISTVERSION= ${VERSION}.${MINOR_VERSION:S/.//}
CATEGORIES= japanese www
MASTER_SITES= http://invisible-mirror.net/archives/lynx/tarballs/
DISTNAME= ${PORTNAME}${VERSION}${MINOR_VERSION}
MAINTAINER= CQG00620@nifty.ne.jp
COMMENT= Console WWW client (browser) with multi-byte encoding support
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
VERSION= 2.8.9
MINOR_VERSION= rel.1
CONFLICTS= lynx-2.* lynx-current-2.* ja-lynx-current-2.*
USES= cpe ncurses shebangfix tar:bzip2
SHEBANG_FILES= samples/mailto-form.pl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-screen=ncursesw --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
INSTALL_TARGET= install-full
CPE_VERSION= ${PORTVERSION:R}
CPE_UPDATE= ${PORTVERSION:E:S/r/rel./}
L_LIB= ${PREFIX}/etc
L_HELP= ${PREFIX}/share/lynx_help
OPTIONS_DEFINE= COLOR_STYLE DEFAULT_COLORS DOCS JAPANESE_UTF8 IDN SSL
OPTIONS_DEFAULT=JAPANESE_UTF8
OPTIONS_SUB= yes
COLOR_STYLE_DESC= Optional color style support
COLOR_STYLE_CONFIGURE_ENABLE= color-style
DEFAULT_COLORS_DESC= Default-color background support (ncurses)
DEFAULT_COLORS_CONFIGURE_ENABLE=default-colors
IDN_LIB_DEPENDS= libidn.so:dns/libidn
IDN_CONFIGURE_ENABLE= idna
JAPANESE_UTF8_DESC= Experimental Japanese UTF-8 logic support
JAPANESE_UTF8_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
JAPANESE_UTF8_CONFIGURE_ENABLE= japanese-utf8
JAPANESE_UTF8_USES= iconv
SSL_CONFIGURE_ON= --with-ssl=${OPENSSLBASE}
SSL_USES= ssl
# Change "cd foo && $(MAKE_RECUR)" into "$(MAKE_RECUR) -C foo" to unbreak
# parallel builds
post-patch:
@${REINPLACE_CMD} -E 's|cd (.+) && (\$$\(MAKE_RECUR\))|\2 -C \1|' \
${WRKSRC}/${MAKEFILE}.in
post-install-DOCS-on:
.for doc in COPYHEADER COPYING
${RLN} ${STAGEDIR}${DOCSDIR}/${doc} ${STAGEDIR}${L_HELP}
.endfor
.include <bsd.port.mk>