aboutsummaryrefslogtreecommitdiff
path: root/www/links/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/links/Makefile')
-rw-r--r--www/links/Makefile31
1 files changed, 17 insertions, 14 deletions
diff --git a/www/links/Makefile b/www/links/Makefile
index 59de9a2cad94..86aae6c55499 100644
--- a/www/links/Makefile
+++ b/www/links/Makefile
@@ -6,17 +6,11 @@
#
PORTNAME= links
-DISTVERSION= 2.2
-PORTREVISION= 7
+DISTVERSION= 2.3pre2
PORTEPOCH= 1
CATEGORIES?= www
MASTER_SITES= http://links.twibright.com/download/
-PATCH_SITES= ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/ \
- ftp://ftp.osuosl.org/pub/blfs/conglomeration/links/ \
- ftp://ftp.ntua.gr/pub/linux/gentoo/distfiles/
-PATCH_DIST_STRIP=-p1
-
MAINTAINER?= demon@FreeBSD.org
COMMENT= Lynx-like text WWW browser
@@ -35,7 +29,7 @@ OPTIONS= SVGALIB "non-X11 graphics support" off \
DIRECTFB "directfb driver support" off \
IPV6 "IPv6 support" off \
X11 "X11 graphics support" on \
- UTF8 "With gentoo utf-8 patch" on \
+ UTF8 "With UTF-8 support" on \
TRANS "Hack for background transparency" off
.include <bsd.port.options.mk>
@@ -65,8 +59,9 @@ CONFIGURE_ARGS+= --without-directfb
.if defined(WITH_IPV6)
USE_AUTOTOOLS+= autoconf
-PATCH_SITES+= http://xpisar.wz.cz/links-ipv6/:ipv6
-PATCHFILES+= links-2.2-ipv6-2.diff:ipv6
+MASTER_SITES+= http://xpisar.wz.cz/links-ipv6/:ipv6
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} links-2.2-ipv6-2.diff:ipv6
+EXTRA_PATCHES+= ${WRKDIR}/links-2.2-ipv6-2.diff
.endif
.if !defined(WITHOUT_X11)
@@ -83,10 +78,8 @@ PLIST_FILES+= share/pixmaps/links.xpm
CONFIGURE_ARGS+= --without-x
.endif
-.if defined(WITH_UTF8)
-PATCHFILES+= links-2.1pre33-utf8.diff.bz2
-pre-configure:
- pwd && cd ${WRKSRC}/intl && ./gen-intl && ./synclang && cd ..
+.if defined(WITHOUT_UTF8)
+CONFIGURE_ARGS+= --disable-utf8
.endif
.if defined(WITH_TRANS)
@@ -96,8 +89,18 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-terminal.c.diff
MAN1= links.1
PLIST_FILES+= bin/links
+.ifdef(WITH_IPV6)
+post-extract:
+#adjust the ipv6 patch for links 2.3*
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/links-2.2-ipv6-2.diff ${WRKDIR}
+ @${REINPLACE_CMD} -E -e 's!void (lookup_fn|end_real_lookup)!static &!' \
+ -e 's!^(\+\+\+|---) (a|b)/!\1 !' ${WRKDIR}/links-2.2-ipv6-2.diff
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/os_dep.h
+#replace a deprecated indirect selection with png_jumpbuf()
+ @${REINPLACE_CMD} -e 's!png_ptr->jmpbuf!png_jmpbuf(png_ptr)!' ${WRKSRC}/png.c
.if !defined(WITHOUT_X11)
post-install: