aboutsummaryrefslogtreecommitdiff
path: root/www/w3m/Makefile
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-08-27 23:45:08 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-08-27 23:45:08 +0000
commita33999c279591021f76696863dd184dc7459a4f5 (patch)
tree96d755d41e4b6488e53ef15b7ab156f562530d6a /www/w3m/Makefile
parent133fdf28d34891acccb595a9123e0e0a7e4b5f9d (diff)
o rename w3m-image -> w3m-img after repository copy by the author's request.
o update w3m-img to 1.10. o make PORTREVISION overridable from slave ports. o change PORTVERSION style for w3m-img. (suggedted by knu) PR: 29226 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=46993
Diffstat (limited to 'www/w3m/Makefile')
-rw-r--r--www/w3m/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index d7d7bf920d8c..5ff41f84d275 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= w3m
-PORTVERSION= 0.2.1
-PORTREVISION= 1
+PORTVERSION= ${W3M_VERSION}
CATEGORIES+= www ipv6
MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
http://mi.med.tohoku.ac.jp/~satodai/w3m/src/ \
@@ -15,11 +14,22 @@ MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
ftp://ftp.umlauf.de/pub/w3m/ \
http://www.instinct.org/w3m/ \
http://grilli.net/mirrors/w3m/download/
+DISTNAME= ${PORTNAME}-${W3M_VERSION}
MAINTAINER?= nobutaka@nobutaka.com
BUILD_DEPENDS= ${LOCALBASE}/lib/libgc.a:${PORTSDIR}/devel/boehm-gc
+W3M_VERSION= 0.2.1
+IMG_VERSION= 1.10
+PORTREVISION?= 1
+
+.if defined(INLINE_IMAGE)
+PORTVERSION:= ${PORTVERSION}+${IMG_VERSION}
+.else
+PORTREVISION= 1
+.endif
+
MAN1= w3m.1
MANLANG= ""
CFLAGS+= -pipe
@@ -66,16 +76,23 @@ MAKE_FLAGS+= DEFS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
.if defined(INLINE_IMAGE)
PATCH_SITES= http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
-PATCHFILES= w3m-0.2.1-img-1.3.patch
+PATCHFILES= ${DISTNAME}-img-${IMG_VERSION}.patch
+PATCH_DIST_STRIP= -p1
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-XMakefile
USE_IMLIB= yes
+DOCS+= README.img
DOCS_JP+= README.img
PLIST_SUB+= INLINE_IMAGE_ONLY=""
+
+PKGMESSAGE= ${MASTERDIR}/pkg-message
.else
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-XMakefile.noimg
PLIST_SUB+= INLINE_IMAGE_ONLY="@comment "
+
+# Don't use pkg-message
+PKGMESSAGE= ${NONEXISTENT}
.endif
pre-extract:
@@ -83,11 +100,6 @@ pre-extract:
@${ECHO_MSG} "You can disable support for SSL by defining WITHOUT_SSL."
.endif
-.if defined(INLINE_IMAGE)
-post-patch:
- @${CP} ${WRKSRC}/README.img ${WRKSRC}/doc-jp/
-.endif
-
post-configure:
@${CP} ${CONFIG_H} ${CONFIG_H}.in
@${SED} ${SED_CMD} < ${CONFIG_H}.in > ${CONFIG_H}
@@ -113,5 +125,8 @@ post-install:
.if defined(JAPANESE)
@${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${PREFIX}/man/ja/man1
.endif
+.if defined(INLINE_IMAGE)
+ @${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.post.mk>