mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
c0b4d1f37c
PR: 79199 Submitted by: Renato Botelho <freebsd@galle.com.br>
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# New ports collection makefile for: links
|
|
# Date created: 21 January 2000
|
|
# Whom: Michael Vasilenko <acid@stu.cn.ua>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= links
|
|
PORTVERSION= 2.1.p17
|
|
PORTEPOCH= 1
|
|
CATEGORIES?= www
|
|
MASTER_SITES= http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/download/
|
|
DISTNAME= ${PORTNAME}-2.1pre17
|
|
|
|
MAINTAINER?= demon@FreeBSD.org
|
|
COMMENT= Lynx-like text WWW browser
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-javascript --with-ssl
|
|
CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include'
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USE_OPENSSL= yes
|
|
USE_BZIP2= yes
|
|
USE_REINPLACE= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_SVGALIB)
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
CONFIGURE_ARGS+= --enable-graphics
|
|
.else
|
|
CONFIGURE_ARGS+= --without-svgalib
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
USE_XLIB= yes
|
|
CONFIGURE_ARGS+= --enable-graphics --with-x
|
|
.else
|
|
CONFIGURE_ARGS+= --without-x
|
|
.endif
|
|
|
|
MAN1= links.1
|
|
PLIST_FILES= bin/links
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} "Use 'make -DWITH_SVGALIB' to enable svgalib (non-X11) graphics support."
|
|
@${ECHO_MSG} "Use 'make -DWITHOUT_X11' to disable X11 graphics support."
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/default.c
|
|
|
|
.include <bsd.port.post.mk>
|