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
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 1
|
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 \
|
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
|
|
|
|
2003-04-29 17:38:06 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-04-11 15:44:56 +02:00
|
|
|
.ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \
|
2009-07-18 13:11:29 +02:00
|
|
|
jpeg.10:${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)
|
2008-05-30 23:25:11 +02:00
|
|
|
LIB_DEPENDS+= directfb-1.1.1:${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
|
|
|
|
|
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
|
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)
|
|
|
|
PATCHFILES= links-2.1pre33-utf8.diff.bz2
|
|
|
|
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
|
2004-02-06 14:12:53 +01: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
|
|
|
|
2003-04-29 17:38:06 +02:00
|
|
|
.include <bsd.port.post.mk>
|