| @@ -1,85 +1,85 @@ | | | @@ -1,85 +1,85 @@ |
1 | # $NetBSD: Makefile.common,v 1.65 2017/07/10 12:26:53 joerg Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.65.8.1 2018/05/19 08:57:22 spz Exp $ |
2 | # | | 2 | # |
3 | # used by www/w3m/Makefile | | 3 | # used by www/w3m/Makefile |
4 | # used by www/w3m-img/Makefile | | 4 | # used by www/w3m-img/Makefile |
5 | | | 5 | |
6 | DISTNAME= w3m-${W3M_VERS} | | 6 | DISTNAME= w3m-${W3M_VERS} |
7 | CATEGORIES= www | | 7 | CATEGORIES= www |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=tats/} | | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=tats/} |
9 | GITHUB_TAG= v${W3M_VERS} | | 9 | GITHUB_TAG= v${W3M_VERS} |
10 | | | 10 | |
11 | MAINTAINER= uebayasi@NetBSD.org | | 11 | MAINTAINER= uebayasi@NetBSD.org |
12 | HOMEPAGE= http://w3m.sourceforge.net/ | | 12 | HOMEPAGE= http://w3m.sourceforge.net/ |
13 | # or https://github.com/tats/w3m | | 13 | # or https://github.com/tats/w3m |
14 | # or https://packages.qa.debian.org/w/w3m.html | | 14 | # or https://packages.qa.debian.org/w/w3m.html |
15 | | | 15 | |
16 | WRKSRC= ${WRKDIR}/w3m-${W3M_VERS:S/+/-/} | | 16 | WRKSRC= ${WRKDIR}/w3m-${W3M_VERS:S/+/-/} |
17 | | | 17 | |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_TOOLS+= gmake # Needed for some combinations of options... | | 20 | USE_TOOLS+= gmake # Needed for some combinations of options... |
21 | USE_TOOLS+= msgfmt | | 21 | USE_TOOLS+= msgfmt |
22 | USE_PKGLOCALEDIR= yes | | 22 | USE_PKGLOCALEDIR= yes |
23 | | | 23 | |
24 | W3M_VERS= 0.5.3+git20170102 | | 24 | W3M_VERS= 0.5.3+git20180125 |
25 | W3M_PKGVERS= ${W3M_VERS:S/+git/.0./} | | 25 | W3M_PKGVERS= ${W3M_VERS:S/+git/.0./} |
26 | | | 26 | |
27 | # For w3mman, xface2xpm, cgi scripts. | | 27 | # For w3mman, xface2xpm, cgi scripts. |
28 | USE_TOOLS+= perl:run pax | | 28 | USE_TOOLS+= perl:run pax |
29 | | | 29 | |
30 | DOCDIR= share/doc/w3m | | 30 | DOCDIR= share/doc/w3m |
31 | | | 31 | |
32 | _W3M_USE_IMAGE?= NO | | 32 | _W3M_USE_IMAGE?= NO |
33 | | | 33 | |
34 | .include "options.mk" | | 34 | .include "options.mk" |
35 | | | 35 | |
36 | .include "../../mk/bsd.prefs.mk" | | 36 | .include "../../mk/bsd.prefs.mk" |
37 | | | 37 | |
38 | # Configurable by environment variables at run-time. | | 38 | # Configurable by environment variables at run-time. |
39 | CONFIGURE_ARGS+= --with-charset=US-ASCII | | 39 | CONFIGURE_ARGS+= --with-charset=US-ASCII |
40 | | | 40 | |
41 | # This *should* be set at run-time. | | 41 | # This *should* be set at run-time. |
42 | CONFIGURE_ARGS+= --disable-messagel10n | | 42 | CONFIGURE_ARGS+= --disable-messagel10n |
43 | | | 43 | |
44 | CONFIGURE_ARGS+= --disable-help_cgi | | 44 | CONFIGURE_ARGS+= --disable-help_cgi |
45 | CONFIGURE_ARGS+= --enable-color | | 45 | CONFIGURE_ARGS+= --enable-color |
46 | CONFIGURE_ARGS+= --enable-cookie | | 46 | CONFIGURE_ARGS+= --enable-cookie |
47 | CONFIGURE_ARGS+= --enable-m17n | | 47 | CONFIGURE_ARGS+= --enable-m17n |
48 | CONFIGURE_ARGS+= --enable-mouse | | 48 | CONFIGURE_ARGS+= --enable-mouse |
49 | CONFIGURE_ARGS+= --enable-unicode | | 49 | CONFIGURE_ARGS+= --enable-unicode |
50 | CONFIGURE_ARGS+= --with-browser= | | 50 | CONFIGURE_ARGS+= --with-browser= |
51 | CONFIGURE_ARGS+= --with-termlib | | 51 | CONFIGURE_ARGS+= --with-termlib |
52 | CONFIGURE_ARGS+= --with-editor=vi | | 52 | CONFIGURE_ARGS+= --with-editor=vi |
53 | CONFIGURE_ARGS+= --with-gc=${BUILDLINK_PREFIX.boehm-gc} | | 53 | CONFIGURE_ARGS+= --with-gc=${BUILDLINK_PREFIX.boehm-gc} |
54 | CONFIGURE_ARGS+= --with-mailer=${MAIL_CMD:Q} | | 54 | CONFIGURE_ARGS+= --with-mailer=${MAIL_CMD:Q} |
55 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} | | 55 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} |
56 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 56 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
57 | | | 57 | |
58 | SUBST_CLASSES+= man-ja | | 58 | SUBST_CLASSES+= man-ja |
59 | SUBST_MESSAGE.man-ja= Fixing the path to Japanese manual pages. | | 59 | SUBST_MESSAGE.man-ja= Fixing the path to Japanese manual pages. |
60 | SUBST_STAGE.man-ja= post-patch | | 60 | SUBST_STAGE.man-ja= post-patch |
61 | SUBST_FILES.man-ja= Makefile.in config.h.dist | | 61 | SUBST_FILES.man-ja= Makefile.in config.h.dist |
62 | SUBST_SED.man-ja= -e 's|/ja/|/ja_JP.eucJP/|g' | | 62 | SUBST_SED.man-ja= -e 's|/ja/|/ja_JP.eucJP/|g' |
63 | | | 63 | |
64 | SUBST_CLASSES+= fh | | 64 | SUBST_CLASSES+= fh |
65 | SUBST_MESSAGE.fh= Rename file_handle. | | 65 | SUBST_MESSAGE.fh= Rename file_handle. |
66 | SUBST_STAGE.fh= post-patch | | 66 | SUBST_STAGE.fh= post-patch |
67 | SUBST_FILES.fh= istream.* | | 67 | SUBST_FILES.fh= istream.* |
68 | SUBST_SED.fh= -e 's/file_handle/file_handle_rofl/g' | | 68 | SUBST_SED.fh= -e 's/file_handle/file_handle_rofl/g' |
69 | | | 69 | |
70 | INSTALLATION_DIRS+= ${DOCDIR} | | 70 | INSTALLATION_DIRS+= ${DOCDIR} |
71 | | | 71 | |
72 | INSTALL_TARGET= install install-helpfile | | 72 | INSTALL_TARGET= install install-helpfile |
73 | | | 73 | |
74 | post-install: | | 74 | post-install: |
75 | # Use pax to discard uid/gid. Exclude manuals (*.1). | | 75 | # Use pax to discard uid/gid. Exclude manuals (*.1). |
76 | set -e; cd ${WRKSRC}; pax -r -w -s ',.*\.1$$,,' doc doc-jp \ | | 76 | set -e; cd ${WRKSRC}; pax -r -w -s ',.*\.1$$,,' doc doc-jp \ |
77 | ${DESTDIR}${PREFIX}/${DOCDIR} | | 77 | ${DESTDIR}${PREFIX}/${DOCDIR} |
78 | | | 78 | |
79 | BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=7.2 | | 79 | BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=7.2 |
80 | .include "../../devel/boehm-gc/buildlink3.mk" | | 80 | .include "../../devel/boehm-gc/buildlink3.mk" |
81 | .include "../../devel/gettext-lib/buildlink3.mk" | | 81 | .include "../../devel/gettext-lib/buildlink3.mk" |
82 | .include "../../devel/zlib/buildlink3.mk" | | 82 | .include "../../devel/zlib/buildlink3.mk" |
83 | .include "../../security/openssl/buildlink3.mk" | | 83 | .include "../../security/openssl/buildlink3.mk" |
84 | .include "../../mk/termcap.buildlink3.mk" | | 84 | .include "../../mk/termcap.buildlink3.mk" |
85 | .include "../../mk/bsd.pkg.mk" | | 85 | .include "../../mk/bsd.pkg.mk" |