This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kris Moore
committed
Oct 22, 2013
1 parent
3907934
commit f5a7226
Showing
10 changed files
with
1,001 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Created by: MANTANI Nobutaka <nobutaka@nobutaka.com> | ||
# $FreeBSD: www/w3m/Makefile 327776 2013-09-20 23:36:50Z bapt $ | ||
|
||
PORTNAME= w3m | ||
PORTVERSION= 0.5.3 | ||
PORTREVISION= 2 | ||
CATEGORIES+= www ipv6 | ||
MASTER_SITES= SF/w3m/w3m/w3m-${PORTVERSION} | ||
|
||
MAINTAINER?= nobutaka@FreeBSD.org | ||
COMMENT?= A pager/text-based WWW browser | ||
|
||
USE_OPENSSL= yes | ||
LIB_DEPENDS= gc:${PORTSDIR}/devel/boehm-gc | ||
|
||
MAKE_JOBS_UNSAFE= yes | ||
|
||
CONFLICTS?= ja-w3m-0.5.* ja-w3m-img-0.5.* w3m-img-0.5.* | ||
GNU_CONFIGURE= yes | ||
CONFIGURE_ARGS= --with-gc=${LOCALBASE} | ||
|
||
MAN1= w3m.1 w3mman.1 | ||
MANLANG= "" ja | ||
|
||
DOCS= FAQ.html HISTORY MANUAL.html README \ | ||
README.dict README.func README.m17n STORY.html keymap.default \ | ||
keymap.lynx menu.default menu.submenu | ||
|
||
OPTIONS_DEFINE= JAPANESE INLINE_IMAGE KEY_LYNX DOCS | ||
JAPANESE_DESC= Japanese messages and migemo support | ||
INLINE_IMAGE_DESC= Inline image support | ||
KEY_LYNX_DESC= Keymap like lynx browser | ||
|
||
NO_STAGE= yes | ||
.include <bsd.port.options.mk> | ||
|
||
.if ${PORT_OPTIONS:MJAPANESE} | ||
USES+= gettext | ||
CONFIGURE_ARGS+= --enable-japanese=E --with-migemo=yes gt_cv_func_gnugettext1_libintl=yes | ||
DOCS_JP= ${DOCS} README.SSL README.cookie README.keymap README.mailcap \ | ||
README.menu README.migemo | ||
|
||
PLIST_SUB+= JAPANESE="" | ||
.else | ||
CONFIGURE_ARGS+= --disable-nls | ||
PLIST_SUB+= JAPANESE="@comment " | ||
.endif | ||
|
||
.if ${PORT_OPTIONS:MINLINE_IMAGE} | ||
USE_GNOME= gtk20 | ||
CONFIGURE_ARGS+= --with-imagelib=gtk2 --enable-image=fb,x11 | ||
|
||
DOCS+= README.img | ||
DOCS_JP+= README.img | ||
PLIST_SUB+= INLINE_IMAGE="" | ||
|
||
PKGMESSAGE= ${MASTERDIR}/pkg-message | ||
.else | ||
CONFIGURE_ARGS+= --enable-image=no | ||
PLIST_SUB+= INLINE_IMAGE="@comment " | ||
|
||
# Don't use pkg-message | ||
PKGMESSAGE= ${NONEXISTENT} | ||
.endif | ||
|
||
.if ${PORT_OPTIONS:MKEY_LYNX} | ||
CONFIGURE_ARGS+= --enable-keymap=lynx | ||
.endif | ||
|
||
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include" | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} -e \ | ||
's|\`\(expr\) \(.*\) : \(.*\)`|`\1 \\( \2 : \3 \\)`|' \ | ||
-e 's|/usr/local|${LOCALBASE}|g' \ | ||
${WRKSRC}/configure | ||
@${FIND} ${WRKSRC}/doc* -type f \! -name HISTORY \ | ||
-exec ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' {} + | ||
|
||
post-install: | ||
.if ${PORT_OPTIONS:MDOCS} | ||
.if ${PORT_OPTIONS:MJAPANESE} | ||
@${MKDIR} ${PREFIX}/share/doc/ja/w3m | ||
@cd ${WRKSRC}/doc-jp; \ | ||
for i in ${DOCS_JP} ; do \ | ||
${INSTALL_DATA} $$i ${PREFIX}/share/doc/ja/w3m/ ; \ | ||
done | ||
.endif | ||
@cd ${WRKSRC}/doc; \ | ||
${MKDIR} ${PREFIX}/share/doc/w3m/; \ | ||
for i in ${DOCS} ; do \ | ||
${INSTALL_DATA} $$i ${PREFIX}/share/doc/w3m/ ; \ | ||
done | ||
.endif | ||
@${INSTALL_MAN} ${WRKSRC}/scripts/w3mman/w3mman.1 ${PREFIX}/man/ja/man1 | ||
.if ${PORT_OPTIONS:MINLINE_IMAGE} | ||
@${CAT} ${PKGMESSAGE} | ||
.endif | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SHA256 (w3m-0.5.3.tar.gz) = e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3 | ||
SIZE (w3m-0.5.3.tar.gz) = 2202328 | ||
SHA256 (w3m-0.5-version-xhtml.patch) = 3cc144a233f566a4b718eec480f3008bb67b8155ecf10663bb98b0aa47a33796 | ||
SIZE (w3m-0.5-version-xhtml.patch) = 8965 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- configure.orig 2007-11-23 02:39:52.000000000 +0900 | ||
+++ configure 2007-11-23 02:43:22.000000000 +0900 | ||
@@ -5532,7 +5532,7 @@ | ||
if test x"$enable_image" = xyes; then | ||
enable_image=x11 | ||
case "`uname -s`" in | ||
- Linux|linux|LINUX) | ||
+ Linux|linux|LINUX|FreeBSD|freebsd|FREEBSD) | ||
if test -c /dev/fb0; then | ||
enable_image=x11,fb | ||
fi;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/main.c b/main.c | ||
index b421943..865c744 100644 | ||
--- main.c | ||
+++ main.c | ||
@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp) | ||
mySignal(SIGPIPE, SigPipe); | ||
#endif | ||
|
||
+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2 | ||
+ orig_GC_warn_proc = GC_get_warn_proc(); | ||
+ GC_set_warn_proc(wrap_GC_warn_proc); | ||
+#else | ||
orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc); | ||
+#endif | ||
err_msg = Strnew(); | ||
if (load_argc == 0) { | ||
/* no URL specified */ |
Oops, something went wrong.