source: build-files/ports-overlay/www/w3m/Makefile @ f5a7226

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since f5a7226 was f5a7226, checked in by Kris Moore <kris@…>, 14 months ago

Add w3m port with fixed main.c

  • Property mode set to 100644
File size: 2.5 KB
Line 
1# Created by: MANTANI Nobutaka <nobutaka@nobutaka.com>
2# $FreeBSD: www/w3m/Makefile 327776 2013-09-20 23:36:50Z bapt $
3
4PORTNAME=       w3m
5PORTVERSION=    0.5.3
6PORTREVISION=   2
7CATEGORIES+=    www ipv6
8MASTER_SITES=   SF/w3m/w3m/w3m-${PORTVERSION}
9
10MAINTAINER?=    nobutaka@FreeBSD.org
11COMMENT?=       A pager/text-based WWW browser
12
13USE_OPENSSL=    yes
14LIB_DEPENDS=    gc:${PORTSDIR}/devel/boehm-gc
15
16MAKE_JOBS_UNSAFE=       yes
17
18CONFLICTS?=     ja-w3m-0.5.* ja-w3m-img-0.5.* w3m-img-0.5.*
19GNU_CONFIGURE=  yes
20CONFIGURE_ARGS= --with-gc=${LOCALBASE}
21
22MAN1=           w3m.1 w3mman.1
23MANLANG=        "" ja
24
25DOCS=           FAQ.html HISTORY MANUAL.html README \
26                README.dict README.func README.m17n STORY.html keymap.default \
27                keymap.lynx menu.default menu.submenu
28
29OPTIONS_DEFINE= JAPANESE INLINE_IMAGE KEY_LYNX DOCS
30JAPANESE_DESC=          Japanese messages and migemo support
31INLINE_IMAGE_DESC=      Inline image support
32KEY_LYNX_DESC=          Keymap like lynx browser
33
34NO_STAGE=       yes
35.include <bsd.port.options.mk>
36
37.if ${PORT_OPTIONS:MJAPANESE}
38USES+=          gettext
39CONFIGURE_ARGS+=        --enable-japanese=E --with-migemo=yes gt_cv_func_gnugettext1_libintl=yes
40DOCS_JP=        ${DOCS} README.SSL README.cookie README.keymap README.mailcap \
41                README.menu README.migemo
42
43PLIST_SUB+=     JAPANESE=""
44.else
45CONFIGURE_ARGS+=        --disable-nls
46PLIST_SUB+=     JAPANESE="@comment "
47.endif
48
49.if ${PORT_OPTIONS:MINLINE_IMAGE}
50USE_GNOME=      gtk20
51CONFIGURE_ARGS+=        --with-imagelib=gtk2 --enable-image=fb,x11
52
53DOCS+=          README.img
54DOCS_JP+=       README.img
55PLIST_SUB+=     INLINE_IMAGE=""
56
57PKGMESSAGE=     ${MASTERDIR}/pkg-message
58.else
59CONFIGURE_ARGS+=        --enable-image=no
60PLIST_SUB+=     INLINE_IMAGE="@comment "
61
62# Don't use pkg-message
63PKGMESSAGE=     ${NONEXISTENT}
64.endif
65
66.if ${PORT_OPTIONS:MKEY_LYNX}
67CONFIGURE_ARGS+=        --enable-keymap=lynx
68.endif
69
70CONFIGURE_ENV=  DEFS="-I${LOCALBASE}/include"
71
72post-patch:
73        @${REINPLACE_CMD} -e \
74                's|\`\(expr\) \(.*\) : \(.*\)`|`\1 \\( \2 : \3 \\)`|' \
75                -e 's|/usr/local|${LOCALBASE}|g' \
76                ${WRKSRC}/configure
77        @${FIND} ${WRKSRC}/doc* -type f \! -name HISTORY \
78                -exec ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' {} +
79
80post-install:
81.if ${PORT_OPTIONS:MDOCS}
82.if ${PORT_OPTIONS:MJAPANESE}
83        @${MKDIR} ${PREFIX}/share/doc/ja/w3m
84        @cd ${WRKSRC}/doc-jp; \
85        for i in ${DOCS_JP} ; do \
86                ${INSTALL_DATA} $$i ${PREFIX}/share/doc/ja/w3m/ ; \
87        done
88.endif
89        @cd ${WRKSRC}/doc; \
90        ${MKDIR} ${PREFIX}/share/doc/w3m/; \
91        for i in ${DOCS} ; do \
92                ${INSTALL_DATA} $$i ${PREFIX}/share/doc/w3m/ ; \
93        done
94.endif
95        @${INSTALL_MAN} ${WRKSRC}/scripts/w3mman/w3mman.1 ${PREFIX}/man/ja/man1
96.if ${PORT_OPTIONS:MINLINE_IMAGE}
97        @${CAT} ${PKGMESSAGE}
98.endif
99
100.include <bsd.port.mk>
Note: See TracBrowser for help on using the repository browser.