1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/www/links-hacked/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

103 lines
2.5 KiB
Makefile

# Created by: Peter Vereshagin <peter@vereshagin.org>
# $FreeBSD$
PORTNAME= links-hacked
DISTVERSION= 101110
PORTREVISION= 3
CATEGORIES?= www
MASTER_SITES= http://xray.sai.msu.ru/~karpov/links-hacked/downloads/ http://links-hacked.nm.ru/
MAINTAINER= peter@vereshagin.org
COMMENT= Hacked version of a Links WWW browser
LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo \
gdbm:${PORTSDIR}/databases/gdbm
CONFLICTS= links-[0-9]*
USE_AUTOTOOLS?= autoconf autoheader aclocal automake
AUTOMAKE_ARGS?= -a -c
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ssl --without-pmshell --without-atheos \
--without-fb --enable-form-saving --enable-javascript
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
USE_OPENSSL= yes
OPTIONS_DEFINE= SVGALIB DIRECTFB X11 FORMSAVE JS FREETYPE
OPTIONS_DEFAULT= X11 FORMSAVE JS FREETYPE
DIRECTFB_DESC= directfb driver support
FORMSAVE_DESC= Enable forms saving
JS_DESC= Enable Javascript (very basic)
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MDIRECTFB}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \
jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff
CONFIGURE_ARGS+= --enable-graphics
.else
CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff
.endif
.if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --with-svgalib
.else
CONFIGURE_ARGS+= --without-svgalib
.endif
.if ${PORT_OPTIONS:MDIRECTFB}
LIB_DEPENDS+= directfb-1.4.5:${PORTSDIR}/devel/directfb
CONFIGURE_ARGS+= --with-directfb
.else
CONFIGURE_ARGS+= --without-directfb
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 xproto
CONFIGURE_ARGS+= --with-x
DESKTOP_ENTRIES="Links" \
"Lynx-like hacked WWW browser" \
"${PREFIX}/share/pixmaps/links.xpm" \
"links -g" \
"Network;WebBrowser;" \
false
PLIST_FILES+= share/pixmaps/links.xpm
.else
CONFIGURE_ARGS+= --without-x
.endif
.if ${PORT_OPTIONS:MFREETYPE}
LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype
.else
CONFIGURE_ARGS+= --without-freetype
.endif
.if ${PORT_OPTIONS:MFORMSAVE}
CONFIGURE_ARGS+= --enable-form-saving
.else
CONFIGURE_ARGS+= --disable-form-saving
.endif
.if ${PORT_OPTIONS:MJS}
CONFIGURE_ARGS+= --enable-javascript
.else
CONFIGURE_ARGS+= --disable-javascript
.endif
MAN1= links.1
PLIST_FILES+= bin/links
.if ${PORT_OPTIONS:MX11}
post-install:
@${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
.endif
.include <bsd.port.mk>