blob: 2943ab60e73134a55c2678401f6207ddb0646b41 (
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
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= midori
PORTVERSION= 0.5.5
PORTREVISION= 1
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
BUILD_DEPENDS= rsvg-convert:${PORTSDIR}/graphics/librsvg2 \
valac:${PORTSDIR}/lang/vala
LIB_DEPENDS= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2 \
libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
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
CONFIGURE_ARGS+=--enable-addons \
--enable-docs \
--disable-gtk3 \
--jobs=${MAKE_JOBS_NUMBER}
WRKSRC= ${WRKDIR}/${DISTNAME:C/([a-z]*)_([0-9\.]*)(_all_)/\1-\2/}
HAS_CONFIGURE= yes
USE_PYTHON= -2.7
USE_PYTHON_BUILD= yes
USE_BZIP2= yes
USE_GNOME= glib20 gtk20 intltool libxml2
USE_XORG= xscrnsaver
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
USES= desktop-file-utils pkgconfig
PLIST_SUB= VERSION="${PORTVERSION:R}"
OPTIONS_DEFINE= DOCS NLS UNIQUE ZEITGEIST
OPTIONS_DEFAULT= NLS UNIQUE
UNIQUE_DESC= Single instance support
ZEITGEIST_DESC= User logs activities
.include <bsd.port.options.mk>
# WAF needs that
CONFIGURE_ENV+= CC="${CC}"
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= gtkdoc-scan:${PORTSDIR}/textproc/gtk-doc
CONFIGURE_ARGS+=--enable-apidocs
PLIST_SUB+= APIDOCS=""
.else
CONFIGURE_ARGS+=--disable-apidocs
PLIST_SUB+= APIDOCS="@comment "
.endif
.if ${PORT_OPTIONS:MUNIQUE}
LIB_DEPENDS+= libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique
CONFIGURE_ARGS+=--enable-unique
.else
CONFIGURE_ARGS+=--disable-unique
.endif
.if ${PORT_OPTIONS:MZEITGEIST}
LIB_DEPENDS+= libzeitgeist-1.0.so:${PORTSDIR}/sysutils/libzeitgeist
CONFIGURE_ARGS+=--enable-zeitgeist
.else
CONFIGURE_ARGS+=--disable-zeitgeist
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
.for dir in katze midori
@${MKDIR} ${STAGEDIR}${DOCSDIR}/api/${dir}/html
@cd ${WRKSRC}/_build/docs/api/${dir}/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/api/${dir}/html
.endfor
.endif
.include <bsd.port.mk>
|