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

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

Disable ccache for w3m

  • 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_CCACHE=      yes
35NO_STAGE=       yes
36.include <bsd.port.options.mk>
37
38.if ${PORT_OPTIONS:MJAPANESE}
39USES+=          gettext
40CONFIGURE_ARGS+=        --enable-japanese=E --with-migemo=yes gt_cv_func_gnugettext1_libintl=yes
41DOCS_JP=        ${DOCS} README.SSL README.cookie README.keymap README.mailcap \
42                README.menu README.migemo
43
44PLIST_SUB+=     JAPANESE=""
45.else
46CONFIGURE_ARGS+=        --disable-nls
47PLIST_SUB+=     JAPANESE="@comment "
48.endif
49
50.if ${PORT_OPTIONS:MINLINE_IMAGE}
51USE_GNOME=      gtk20
52CONFIGURE_ARGS+=        --with-imagelib=gtk2 --enable-image=fb,x11
53
54DOCS+=          README.img
55DOCS_JP+=       README.img
56PLIST_SUB+=     INLINE_IMAGE=""
57
58PKGMESSAGE=     ${MASTERDIR}/pkg-message
59.else
60CONFIGURE_ARGS+=        --enable-image=no
61PLIST_SUB+=     INLINE_IMAGE="@comment "
62
63# Don't use pkg-message
64PKGMESSAGE=     ${NONEXISTENT}
65.endif
66
67.if ${PORT_OPTIONS:MKEY_LYNX}
68CONFIGURE_ARGS+=        --enable-keymap=lynx
69.endif
70
71CONFIGURE_ENV=  DEFS="-I${LOCALBASE}/include"
72
73post-patch:
74        @${REINPLACE_CMD} -e \
75                's|\`\(expr\) \(.*\) : \(.*\)`|`\1 \\( \2 : \3 \\)`|' \
76                -e 's|/usr/local|${LOCALBASE}|g' \
77                ${WRKSRC}/configure
78        @${FIND} ${WRKSRC}/doc* -type f \! -name HISTORY \
79                -exec ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' {} +
80
81post-install:
82.if ${PORT_OPTIONS:MDOCS}
83.if ${PORT_OPTIONS:MJAPANESE}
84        @${MKDIR} ${PREFIX}/share/doc/ja/w3m
85        @cd ${WRKSRC}/doc-jp; \
86        for i in ${DOCS_JP} ; do \
87                ${INSTALL_DATA} $$i ${PREFIX}/share/doc/ja/w3m/ ; \
88        done
89.endif
90        @cd ${WRKSRC}/doc; \
91        ${MKDIR} ${PREFIX}/share/doc/w3m/; \
92        for i in ${DOCS} ; do \
93                ${INSTALL_DATA} $$i ${PREFIX}/share/doc/w3m/ ; \
94        done
95.endif
96        @${INSTALL_MAN} ${WRKSRC}/scripts/w3mman/w3mman.1 ${PREFIX}/man/ja/man1
97.if ${PORT_OPTIONS:MINLINE_IMAGE}
98        @${CAT} ${PKGMESSAGE}
99.endif
100
101.include <bsd.port.mk>
Note: See TracBrowser for help on using the repository browser.