aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2004-01-18 05:22:59 +0800
committernobutaka <nobutaka@FreeBSD.org>2004-01-18 05:22:59 +0800
commit1b4e19359a0a91cba03fc9381a2b1379f30194e6 (patch)
tree4f8fb88637979b76a8b4b412b17659345abfc9a4 /www
parent25efe9c53ac16fb5024a2acb592ab924721f1f1b (diff)
downloadfreebsd-ports-gnome-1b4e19359a0a91cba03fc9381a2b1379f30194e6.tar.gz
freebsd-ports-gnome-1b4e19359a0a91cba03fc9381a2b1379f30194e6.tar.zst
freebsd-ports-gnome-1b4e19359a0a91cba03fc9381a2b1379f30194e6.zip
Add WITHOUT_NLS knob. [1]
Make cosmetic changes. Submitted by: Phil Pennock <pdp@nl.demon.net> [1]
Diffstat (limited to 'www')
-rw-r--r--www/w3m/Makefile32
-rw-r--r--www/w3m/pkg-plist2
2 files changed, 26 insertions, 8 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index 5c08d104df0f..63d77deb01b5 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -17,8 +17,7 @@ DISTNAME= w3m-${W3M_VERSION}.${SNAPDATE}
MAINTAINER?= nobutaka@FreeBSD.org
COMMENT?= A pager/text-based WWW browser
-LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc \
- intl.5:${PORTSDIR}/devel/gettext
+LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc
W3M_VERSION= 0.4.2
SNAPDATE= 20040111
@@ -62,6 +61,14 @@ PLIST_SUB+= JAPANESE="" M17N=""
PLIST_SUB+= JAPANESE="@comment "
.endif
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+LIB_DEPENDS+= intl.5:${PORTSDIR}/devel/gettext
+PLIST_SUB+= NLS=""
+.endif
+
.if defined(INLINE_IMAGE)
USE_GNOME= gdkpixbuf
CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf
@@ -80,10 +87,14 @@ PKGMESSAGE= ${NONEXISTENT}
.endif
pre-everything::
-.if defined(M17N)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> You can enable some features by defining following variables."
@${ECHO_MSG} "===>"
+.if defined(M17N)
+ @${ECHO_MSG} "===> M17N (multilingualization, enabled)"
+.else
+ @${ECHO_MSG} "===> M17N (multilingualization)"
+.endif
.if defined(JAPANESE)
@${ECHO_MSG} "===> JAPANESE (Japanese messages and migemo support, enabled)"
.else
@@ -95,12 +106,19 @@ pre-everything::
@${ECHO_MSG} "===> INLINE_IMAGE (inline image support)"
.endif
@${ECHO_MSG} "===>"
+ @${ECHO_MSG} "===> You can disable some features by defining following variables."
+ @${ECHO_MSG} "===>"
+.if defined(WITHOUT_SSL)
+ @${ECHO_MSG} "===> WITHOUT_SSL (disabled)"
+.else
+ @${ECHO_MSG} "===> WITHOUT_SSL"
.endif
-
-pre-extract:
-.if !defined(WITHOUT_SSL)
- @${ECHO_MSG} "You can disable support for SSL by defining WITHOUT_SSL."
+.if defined(WITHOUT_NLS)
+ @${ECHO_MSG} "===> WITHOUT_NLS (disabled)"
+.else
+ @${ECHO_MSG} "===> WITHOUT_NLS"
.endif
+ @${ECHO_MSG} "===>"
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/www/w3m/pkg-plist b/www/w3m/pkg-plist
index 7fc70e48fd5e..06a478fe86c8 100644
--- a/www/w3m/pkg-plist
+++ b/www/w3m/pkg-plist
@@ -41,7 +41,7 @@ libexec/w3m/xface2xpm
%%PORTDOCS%%%%DOCSDIR%%/keymap.lynx
%%PORTDOCS%%%%DOCSDIR%%/menu.default
%%PORTDOCS%%%%DOCSDIR%%/menu.submenu
-%%M17N%%share/locale/ja/LC_MESSAGES/w3m.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/w3m.mo
share/w3m/w3mhelp-funcdesc.en.pl
share/w3m/w3mhelp-funcdesc.ja.pl
share/w3m/w3mhelp-funcname.pl