2000-01-29 07:02:02 +01:00
|
|
|
# New ports collection makefile for: links
|
|
|
|
# Date created: 21 January 2000
|
|
|
|
# Whom: Michael Vasilenko <acid@stu.cn.ua>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= links
|
2012-01-02 10:52:00 +01:00
|
|
|
DISTVERSION= 2.5
|
2011-12-20 14:24:09 +01:00
|
|
|
PORTEPOCH= 1
|
2003-10-26 11:19:03 +01:00
|
|
|
CATEGORIES?= www
|
2011-12-29 20:22:07 +01:00
|
|
|
MASTER_SITES= http://links.twibright.com/download/ LOCAL/bf
|
2000-01-29 07:02:02 +01:00
|
|
|
|
2011-12-20 14:24:09 +01:00
|
|
|
MAINTAINER?= bf@FreeBSD.org
|
2003-02-22 10:13:13 +01:00
|
|
|
COMMENT= Lynx-like text WWW browser
|
2000-01-29 07:02:02 +01:00
|
|
|
|
2011-12-29 20:22:07 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-04-11 15:44:56 +02:00
|
|
|
CONFLICTS= links-0*
|
2006-05-29 16:16:41 +02:00
|
|
|
|
2000-01-29 07:02:02 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-04-11 15:44:56 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl --without-pmshell --without-atheos \
|
|
|
|
--without-gpm --without-fb
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2003-08-31 14:51:28 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-01-29 07:02:02 +01:00
|
|
|
|
2002-03-06 21:29:53 +01:00
|
|
|
USE_OPENSSL= yes
|
2002-06-28 13:35:38 +02:00
|
|
|
USE_BZIP2= yes
|
2006-04-14 08:07:45 +02:00
|
|
|
|
|
|
|
OPTIONS= SVGALIB "non-X11 graphics support" off \
|
2008-04-11 15:44:56 +02:00
|
|
|
DIRECTFB "directfb driver support" off \
|
2010-08-05 21:30:24 +02:00
|
|
|
IPV6 "IPv6 support" off \
|
2008-05-20 10:17:23 +02:00
|
|
|
X11 "X11 graphics support" on \
|
2011-10-19 15:00:04 +02:00
|
|
|
UTF8 "With UTF-8 support" on \
|
2008-05-20 10:17:23 +02:00
|
|
|
TRANS "Hack for background transparency" off
|
2002-06-28 13:35:38 +02:00
|
|
|
|
2010-06-10 11:42:00 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2003-04-29 17:38:06 +02:00
|
|
|
|
2012-01-02 10:52:00 +01:00
|
|
|
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
|
|
|
|
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
|
|
|
|
.endif
|
|
|
|
|
2008-04-11 15:44:56 +02:00
|
|
|
.ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB)
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2004-05-31 09:46:09 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
CONFIGURE_ARGS+= --enable-graphics
|
2008-04-11 15:44:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITH_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
CONFIGURE_ARGS+= --with-svgalib
|
2004-05-31 09:46:09 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-svgalib
|
2008-04-11 15:44:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITH_DIRECTFB)
|
2010-12-08 15:47:34 +01:00
|
|
|
LIB_DEPENDS+= directfb-1.4.5:${PORTSDIR}/devel/directfb
|
2008-04-11 15:44:56 +02:00
|
|
|
CONFIGURE_ARGS+= --with-directfb
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-directfb
|
2004-05-31 09:46:09 +02:00
|
|
|
.endif
|
|
|
|
|
2012-01-02 10:52:00 +01:00
|
|
|
.if defined(WITH_IPV6) || make(makesum)
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS+= autoconf
|
2011-12-29 20:22:07 +01:00
|
|
|
PATCH_SITES+= http://xpisar.wz.cz/links-ipv6/:ipv6 \
|
|
|
|
${MASTER_SITE_LOCAL:S|%SUBDIR%|bf|:S|$|:ipv6|}
|
2012-01-02 10:52:00 +01:00
|
|
|
PATCHFILES+= links-2.5-ipv6.patch.gz:ipv6
|
2011-10-27 15:01:18 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2010-08-05 21:30:24 +02:00
|
|
|
.endif
|
|
|
|
|
2002-06-28 13:35:38 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2008-04-11 15:44:56 +02:00
|
|
|
USE_XORG= x11 xproto
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
2010-06-10 11:42:00 +02:00
|
|
|
DESKTOP_ENTRIES="links" \
|
|
|
|
"Lynx-like text WWW browser" \
|
|
|
|
"links" \
|
|
|
|
"links -g" \
|
|
|
|
"Application;Network;WebBrowser;" \
|
|
|
|
false
|
|
|
|
PLIST_FILES+= share/pixmaps/links.xpm
|
2004-05-31 09:46:09 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2002-06-28 13:35:38 +02:00
|
|
|
.endif
|
2002-03-06 21:29:53 +01:00
|
|
|
|
2011-10-19 15:00:04 +02:00
|
|
|
.if defined(WITHOUT_UTF8)
|
|
|
|
CONFIGURE_ARGS+= --disable-utf8
|
2008-05-20 10:17:23 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TRANS)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-terminal.c.diff
|
|
|
|
.endif
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
MAN1= links.1
|
2010-06-10 11:42:00 +02:00
|
|
|
PLIST_FILES+= bin/links
|
2000-07-11 16:22:23 +02:00
|
|
|
|
2002-08-27 10:25:10 +02:00
|
|
|
post-patch:
|
2008-04-11 15:44:56 +02:00
|
|
|
@${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/os_dep.h
|
2011-10-19 15:00:04 +02:00
|
|
|
#replace a deprecated indirect selection with png_jumpbuf()
|
|
|
|
@${REINPLACE_CMD} -e 's!png_ptr->jmpbuf!png_jmpbuf(png_ptr)!' ${WRKSRC}/png.c
|
2002-08-27 10:25:10 +02:00
|
|
|
|
2010-06-10 11:42:00 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
post-install:
|
2010-06-11 09:42:39 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
|
2010-06-10 11:42:00 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|