blob: b9c74ce65ff2278bdb2bcb245b46ce91dde66634 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: Peter Vereshagin <peter@vereshagin.org>
# $FreeBSD$
PORTNAME= links-hacked
DISTVERSION= 101110
PORTREVISION= 4
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
LDFLAGS+= -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,xproto
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>
|