freebsd-ports/www/links-hacked/Makefile
Niclas Zeising 0fae2e9e0e Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG.  Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.

PR:		230909
Reviewed by:	eadler
Approved by:	portmgr (antoine)
Obtained from:	https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run:	antoine
Differential Revision:	https://reviews.freebsd.org/D16906
2018-09-11 18:34:27 +00:00

75 lines
2 KiB
Makefile

# Created by: Peter Vereshagin <peter@vereshagin.org>
# $FreeBSD$
PORTNAME= links-hacked
DISTVERSION= 101110
PORTREVISION= 6
CATEGORIES?= www
MASTER_SITES= http://xray.sai.msu.ru/~karpov/links-hacked/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= Hacked version of a Links WWW browser
LICENSE= GPLv2
USES= autoreconf ssl
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ssl --without-pmshell --without-atheos --without-fb
CFLAGS+= -Wno-error=return-type
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
CONFLICTS= links-[0-9]*
PLIST_FILES= bin/links man/man1/links.1.gz
OPTIONS_DEFINE= FORMSAVE FREETYPE JS
OPTIONS_RADIO= GRAPHICS
OPTIONS_RADIO_GRAPHICS= DIRECTFB SVGALIB X11
OPTIONS_DEFAULT= FORMSAVE FREETYPE JS X11
DIRECTFB_DESC= DirectFB driver support
DIRECTFB_LIB_DEPENDS= libdirectfb-1.4.so:devel/directfb
DIRECTFB_CONFIGURE_WITH= directfb
FORMSAVE_DESC= Form saving/loading support
FORMSAVE_LIB_DEPENDS= libgdbm.so:databases/gdbm
FORMSAVE_CONFIGURE_ENABLE= form-saving
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
FREETYPE_CONFIGURE_WITH= freetype
JS_DESC= Javascript interpreter support (very basic)
JS_CONFIGURE_ENABLE= javascript
SVGALIB_LIB_DEPENDS= libvga.so:graphics/svgalib
SVGALIB_CONFIGURE_WITH= svgalib
X11_USE= xorg=x11,xorgproto
X11_CONFIGURE_WITH= x
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDIRECTFB} || ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11}
LIB_DEPENDS+= libpng.so:graphics/png \
libtiff.so:graphics/tiff
USES+= jpeg
CONFIGURE_ARGS+= --enable-graphics
.else
CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff
.endif
.if ${PORT_OPTIONS:MX11}
DESKTOP_ENTRIES="Links" \
"Lynx-like hacked WWW browser" \
"${PREFIX}/share/pixmaps/links.xpm" \
"links -g" \
"Network;WebBrowser;" \
false
PLIST_FILES+= share/pixmaps/links.xpm
.endif
post-install:
.if ${PORT_OPTIONS:MX11}
(cd ${WRKSRC}/graphics && ${INSTALL_DATA} links.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps)
.endif
.include <bsd.port.mk>