freebsd-ports/www/links/Makefile

110 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: links
# Date created: 21 January 2000
# Whom: Michael Vasilenko <acid@stu.cn.ua>
#
# $FreeBSD$
#
PORTNAME= links
2012-01-02 10:52:00 +01:00
DISTVERSION= 2.5
PORTEPOCH= 1
CATEGORIES?= www
2011-12-29 20:22:07 +01:00
MASTER_SITES= http://links.twibright.com/download/ LOCAL/bf
MAINTAINER?= bf@FreeBSD.org
2003-02-22 10:13:13 +01:00
COMMENT= Lynx-like text WWW browser
2011-12-29 20:22:07 +01:00
LICENSE= GPLv2
CONFLICTS= links-0*
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ssl --without-pmshell --without-atheos \
--without-gpm --without-fb
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2002-03-06 21:29:53 +01:00
USE_OPENSSL= yes
USE_BZIP2= yes
OPTIONS= SVGALIB "non-X11 graphics support" off \
DIRECTFB "directfb driver support" off \
IPV6 "IPv6 support" off \
X11 "X11 graphics support" on \
UTF8 "With UTF-8 support" on \
TRANS "Hack for background transparency" off
.include <bsd.port.options.mk>
2012-01-02 10:52:00 +01:00
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
.endif
.ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB)
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \
2010-02-05 12:46:55 +01:00
jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff
CONFIGURE_ARGS+= --enable-graphics
.else
CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff
.endif
.ifdef(WITH_SVGALIB)
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --with-svgalib
.else
CONFIGURE_ARGS+= --without-svgalib
.endif
.ifdef(WITH_DIRECTFB)
2010-12-08 15:47:34 +01:00
LIB_DEPENDS+= directfb-1.4.5:${PORTSDIR}/devel/directfb
CONFIGURE_ARGS+= --with-directfb
.else
CONFIGURE_ARGS+= --without-directfb
.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
.endif
.if !defined(WITHOUT_X11)
USE_XORG= x11 xproto
CONFIGURE_ARGS+= --with-x
DESKTOP_ENTRIES="links" \
"Lynx-like text WWW browser" \
"links" \
"links -g" \
"Application;Network;WebBrowser;" \
false
PLIST_FILES+= share/pixmaps/links.xpm
.else
CONFIGURE_ARGS+= --without-x
.endif
2002-03-06 21:29:53 +01:00
.if defined(WITHOUT_UTF8)
CONFIGURE_ARGS+= --disable-utf8
.endif
.if defined(WITH_TRANS)
EXTRA_PATCHES+= ${FILESDIR}/extra-terminal.c.diff
.endif
MAN1= links.1
PLIST_FILES+= bin/links
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:
2010-06-11 09:42:39 +02:00
@${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
.endif
.include <bsd.port.mk>