blob: c154d299139118b6d00476794de776b8b3c749f2 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= midori
PORTVERSION= 0.5.9
PORTREVISION= 3
CATEGORIES= www xfce
MASTER_SITES= http://www.midori-browser.org/downloads/
DISTNAME= ${PORTNAME}_${PORTVERSION}_all_
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= Lightweight web browser using WebKit browser engine
LICENSE= LGPL21 MIT
LICENSE_COMB= multi
BUILD_DEPENDS= rsvg-convert:${PORTSDIR}/graphics/librsvg2 \
valac:${PORTSDIR}/lang/vala
LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify \
libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -Wno-return-type
CMAKE_ARGS= -DUSE_APIDOCS:BOOL=OFF
WRKSRC= ${WRKDIR}/${DISTNAME:C/([a-z]*)_([0-9\.]*)(_all_)/\1-\2/}
NO_WRKSUBDIR= yes
USE_GNOME= glib20 intltool libxml2
USE_XORG= xscrnsaver
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
USES= desktop-file-utils pkgconfig cmake gettext tar:bzip2
USE_SQLITE= yes
PLIST_SUB= VERSION="${PORTVERSION:R}"
OPTIONS_DEFINE= GIR GRANITE ZEITGEIST
OPTIONS_SINGLE= GTK
OPTIONS_SINGLE_GTK= GTK2 GTK3
OPTIONS_DEFAULT= GTK2
# Need x11-toolkits/granite >= 0.3 (Granite.Widgets.LightWindow is deprecated)
OPTIONS_EXCLUDE= GRANITE
GIR_DESC= GObject Introspection
GRANITE_DESC= Additional GTK widgets (require GTK3)
ZEITGEIST_DESC= User logs activities
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
LIB_DEPENDS+= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2
USE_GNOME+= gtk20
CMAKE_ARGS+= -DUSE_GTK3:BOOL=OFF \
-DUSE_GCR:BOOL=OFF
PLIST_SUB+= ONLY_WEBKIT1=""
.endif
.if ${PORT_OPTIONS:MGTK3}
LIB_DEPENDS+= libwebkitgtk-3.0.so:${PORTSDIR}/www/webkit-gtk3 \
libgcr-3.so:${PORTSDIR}/security/gcr
USE_GNOME+= gtk30
CMAKE_ARGS+= -DUSE_GTK3:BOOL=ON \
-DUSE_GCR:BOOL=ON
# Support the new WebKit2 API (>= 1.11.91)
.if exists(${LOCALBASE}/libdata/pkgconfig/webkit2gtk-3.0.pc)
CMAKE_ARGS+= -DHALF_BRO_INCOM_WEBKIT2:BOOL=ON
# Some extensions are not yet ported to the new API (WebKit2)
PLIST_SUB+= ONLY_WEBKIT1="@comment "
.else
CMAKE_ARGS+= -DHALF_BRO_INCOM_WEBKIT2:BOOL=OFF
PLIST_SUB+= ONLY_WEBKIT1=""
.endif
.if ${PORT_OPTIONS:MGRANITE}
LIB_DEPENDS+= libgranite.so:${PORTSDIR}/x11-toolkits/granite
CMAKE_ARGS+= -DUSE_GRANITE:BOOL=ON
.else
CMAKE_ARGS+= -DUSE_GRANITE:BOOL=OFF
.endif
.endif
.if ${PORT_OPTIONS:MZEITGEIST}
LIB_DEPENDS+= libzeitgeist-1.0.so:${PORTSDIR}/sysutils/libzeitgeist
CMAKE_ARGS+= -DUSE_ZEITGEIST:BOOL=ON
.else
CMAKE_ARGS+= -DUSE_ZEITGEIST:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MGIR} && ${PORT_OPTIONS:MGTK2}
USE_GNOME+= introspection:build
CMAKE_ARGS+= -DUSE_GIR:BOOL=ON
PLIST_SUB+= GIR=""
.else
CMAKE_ARGS+= -DUSE_GIR:BOOL=OFF
PLIST_SUB+= GIR="@comment "
.endif
post-patch:
# Avoid errors with CMake
.for dir in config extensions
@${RM} ${WRKSRC}/${dir}/*.orig
.endfor
.include <bsd.port.mk>
|