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
|
2008-08-06 11:15:36 +02:00
|
|
|
DISTVERSION= 2.2
|
2010-08-05 21:30:24 +02:00
|
|
|
PORTREVISION= 6
|
2001-07-07 11:37:05 +02:00
|
|
|
PORTEPOCH= 1
|
2003-10-26 11:19:03 +01:00
|
|
|
CATEGORIES?= www
|
2006-01-23 09:34:42 +01:00
|
|
|
MASTER_SITES= http://links.twibright.com/download/
|
2000-01-29 07:02:02 +01:00
|
|
|
|
2008-05-20 10:17:23 +02:00
|
|
|
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
|
|
|
|
|
2003-02-22 18:47:45 +01:00
|
|
|
MAINTAINER?= demon@FreeBSD.org
|
2003-02-22 10:13:13 +01:00
|
|
|
COMMENT= Lynx-like text WWW browser
|
2000-01-29 07:02:02 +01:00
|
|
|
|
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
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${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 \
|
|
|
|
UTF8 "With gentoo utf-8 patch" on \
|
|
|
|
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
|
|
|
|
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-06-03 14:35:42 +02:00
|
|
|
LIB_DEPENDS+= directfb-1.4.3:${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
|
|
|
|
|
2010-08-05 21:30:24 +02:00
|
|
|
.if defined(WITH_IPV6)
|
|
|
|
USE_AUTOTOOLS+= autoconf:262
|
|
|
|
PATCH_SITES+= http://xpisar.wz.cz/links-ipv6/:ipv6
|
|
|
|
PATCHFILES+= links-2.2-ipv6-2.diff:ipv6
|
|
|
|
.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
|
|
|
|
2008-05-20 10:17:23 +02:00
|
|
|
.if defined(WITH_UTF8)
|
2010-08-05 21:30:24 +02:00
|
|
|
PATCHFILES+= links-2.1pre33-utf8.diff.bz2
|
2008-05-20 10:17:23 +02:00
|
|
|
pre-configure:
|
|
|
|
pwd && cd ${WRKSRC}/intl && ./gen-intl && ./synclang && cd ..
|
|
|
|
.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
|
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>
|