View | Details | Raw Unified | Return to bug 193171
Collapse All | Expand All

(-)www/links-hacked/Makefile (-63 / +38 lines)
Lines 1-66 Link Here
1
# Created by: Peter Vereshagin <peter@vereshagin.org>
1
# Created by: Peter Vereshagin <peter@vereshagin.org>
2
# $FreeBSD: head/www/links-hacked/Makefile 366573 2014-08-29 21:46:52Z tijl $
2
# $FreeBSD: head/www/links-hacked/Makefile 362828 2014-07-24 16:33:10Z bapt $
3
3
4
PORTNAME=	links-hacked
4
PORTNAME=	links-hacked
5
DISTVERSION=	101110
5
DISTVERSION=	101110
6
PORTREVISION=	3
6
PORTREVISION=	3
7
CATEGORIES?=	www
7
CATEGORIES?=	www
8
MASTER_SITES=	http://xray.sai.msu.ru/~karpov/links-hacked/downloads/ http://links-hacked.nm.ru/
8
MASTER_SITES=	http://xray.sai.msu.ru/~karpov/links-hacked/downloads/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Hacked version of a Links WWW browser
11
COMMENT=	Hacked version of a Links WWW browser
12
12
13
LIB_DEPENDS+=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
13
LICENSE=	GPLv2
14
		libgdbm.so:${PORTSDIR}/databases/gdbm
15
14
16
CONFLICTS=	links-[0-9]*
15
USES=		execinfo
17
16
USE_OPENSSL=	yes
18
USE_AUTOTOOLS?=	autoconf autoheader aclocal automake
17
USE_CSTD=	gnu89
19
AUTOMAKE_ARGS?=	-a -c
18
USE_AUTOTOOLS=	aclocal autoheader automake autoconf
19
AUTOMAKE_ARGS=	--add-missing --copy
20
CONFIGURE_ARGS=	--with-ssl --without-pmshell --without-atheos --without-fb
20
21
21
GNU_CONFIGURE=	yes
22
CFLAGS+=	-Wno-error=return-type
22
CONFIGURE_ARGS+=	--with-ssl --without-pmshell --without-atheos \
23
			--without-fb --enable-form-saving --enable-javascript
24
CPPFLAGS+=	-I${LOCALBASE}/include
23
CPPFLAGS+=	-I${LOCALBASE}/include
25
LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
24
LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
26
25
27
USE_OPENSSL=	yes
26
CONFLICTS=	links-[0-9]*
27
28
PLIST_FILES=	bin/links man/man1/links.1.gz
28
29
29
OPTIONS_DEFINE=	SVGALIB DIRECTFB X11 FORMSAVE JS FREETYPE
30
OPTIONS_DEFINE=		FORMSAVE FREETYPE JS
30
OPTIONS_DEFAULT=	X11 FORMSAVE JS FREETYPE
31
OPTIONS_RADIO=		GRAPHICS
31
DIRECTFB_DESC=	directfb driver support
32
OPTIONS_RADIO_GRAPHICS=	DIRECTFB SVGALIB X11
32
FORMSAVE_DESC=	Enable forms saving
33
OPTIONS_DEFAULT=	FORMSAVE FREETYPE JS X11
33
JS_DESC=	Enable Javascript (very basic)
34
35
DIRECTFB_DESC=		DirectFB driver support
36
DIRECTFB_LIB_DEPENDS=	libdirectfb-1.4.so:${PORTSDIR}/devel/directfb
37
DIRECTFB_CONFIGURE_WITH=	directfb
38
FORMSAVE_DESC=		Form saving/loading support
39
FORMSAVE_LIB_DEPENDS=	libgdbm.so:${PORTSDIR}/databases/gdbm
40
FORMSAVE_CONFIGURE_ENABLE=	form-saving
41
FREETYPE_LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
42
FREETYPE_CONFIGURE_WITH=	freetype
43
JS_DESC=		Javascript interpreter support (very basic)
44
JS_CONFIGURE_ENABLE=	javascript
45
SVGALIB_LIB_DEPENDS=	libvga.so:${PORTSDIR}/graphics/svgalib
46
SVGALIB_CONFIGURE_WITH=	svgalib
47
X11_USE=		xorg=x11,xproto
48
X11_CONFIGURE_WITH=	x
34
49
35
NO_STAGE=	yes
36
.include <bsd.port.options.mk>
50
.include <bsd.port.options.mk>
37
51
38
.if ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MDIRECTFB}
52
.if ${PORT_OPTIONS:MDIRECTFB} || ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11}
39
LIB_DEPENDS+=	libpng15.so:${PORTSDIR}/graphics/png \
53
LIB_DEPENDS+=	libjpeg.so:${PORTSDIR}/graphics/jpeg \
40
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
54
		libpng15.so:${PORTSDIR}/graphics/png \
41
		libtiff.so:${PORTSDIR}/graphics/tiff
55
		libtiff.so:${PORTSDIR}/graphics/tiff
42
CONFIGURE_ARGS+=	--enable-graphics
56
CONFIGURE_ARGS+=	--enable-graphics
43
.else
57
.else
44
CONFIGURE_ARGS+=	--disable-graphics --without-libjpeg --without-libtiff
58
CONFIGURE_ARGS+=	--disable-graphics --without-libjpeg --without-libtiff
45
.endif
59
.endif
46
60
47
.if ${PORT_OPTIONS:MSVGALIB}
48
LIB_DEPENDS+=	libvga.so:${PORTSDIR}/graphics/svgalib
49
CONFIGURE_ARGS+=	--with-svgalib
50
.else
51
CONFIGURE_ARGS+=	--without-svgalib
52
.endif
53
54
.if ${PORT_OPTIONS:MDIRECTFB}
55
LIB_DEPENDS+=	libdirectfb.so:${PORTSDIR}/devel/directfb
56
CONFIGURE_ARGS+=	--with-directfb
57
.else
58
CONFIGURE_ARGS+=	--without-directfb
59
.endif
60
61
.if ${PORT_OPTIONS:MX11}
61
.if ${PORT_OPTIONS:MX11}
62
USE_XORG=	x11 xproto
63
CONFIGURE_ARGS+=	--with-x
64
DESKTOP_ENTRIES="Links" \
62
DESKTOP_ENTRIES="Links" \
65
		"Lynx-like hacked WWW browser" \
63
		"Lynx-like hacked WWW browser" \
66
		"${PREFIX}/share/pixmaps/links.xpm" \
64
		"${PREFIX}/share/pixmaps/links.xpm" \
Lines 68-102 Link Here
68
		"Network;WebBrowser;" \
66
		"Network;WebBrowser;" \
69
		false
67
		false
70
PLIST_FILES+=	share/pixmaps/links.xpm
68
PLIST_FILES+=	share/pixmaps/links.xpm
71
.else
72
CONFIGURE_ARGS+=	--without-x
73
.endif
69
.endif
74
70
75
.if ${PORT_OPTIONS:MFREETYPE}
76
LIB_DEPENDS+=		libfreetype.so:${PORTSDIR}/print/freetype2
77
CONFIGURE_ARGS+=	--with-freetype
78
.else
79
CONFIGURE_ARGS+=	--without-freetype
80
.endif
81
82
.if ${PORT_OPTIONS:MFORMSAVE}
83
CONFIGURE_ARGS+=	--enable-form-saving
84
.else
85
CONFIGURE_ARGS+=	--disable-form-saving
86
.endif
87
88
.if ${PORT_OPTIONS:MJS}
89
CONFIGURE_ARGS+=	--enable-javascript
90
.else
91
CONFIGURE_ARGS+=	--disable-javascript
92
.endif
93
94
MAN1=		links.1
95
PLIST_FILES+=	bin/links
96
97
.if ${PORT_OPTIONS:MX11}
98
post-install:
71
post-install:
99
	@${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
72
.if ${PORT_OPTIONS:MX11}
73
	(cd ${WRKSRC}/graphics && ${INSTALL_DATA} links.xpm \
74
		${STAGEDIR}${PREFIX}/share/pixmaps)
100
.endif
75
.endif
101
76
102
.include <bsd.port.mk>
77
.include <bsd.port.mk>

Return to bug 193171