blob: 66c12846bae1d0ceab1623775c986771906ab063 (
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
108
109
110
111
112
|
# Ports collection Makefile for: epiphany
# Date created: 24 April 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/www/epiphany3/Makefile,v 1.23 2011/10/19 16:39:07 kwm Exp $
#
PORTNAME= epiphany
PORTVERSION= 3.4.2
PORTREVISION?= 0
CATEGORIES= www gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT?= An extremely lightweight and simple web browser for GNOME 3
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 \
webkitgtk-3.0.0:${PORTSDIR}/www/webkit-gtk3 \
soup-gnome-2.4.1:${PORTSDIR}/devel/libsoup-gnome \
startup-notification-1.0:${PORTSDIR}/x11/startup-notification \
notify.4:${PORTSDIR}/devel/libnotify \
gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
gnome-icon-theme-symbolic>=0:${PORTSDIR}/x11-themes/gnome-icon-theme-symbolic \
${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme
CONFLICTS= epiphany-2.[0-9]*
LATEST_LINK= epiphany3
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
USE_GETTEXT= yes
USE_XZ= yes
USE_PYTHON= yes
USE_GNOME= gnomeprefix gnomehack intlhack gnomedocutils libxml2 \
desktopfileutils
USE_XORG= ice x11 sm
GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_OMF= yes
CONFIGURE_ARGS+=--enable-introspection \
--with-distributor-name="FreeBSD GNOME Project"
# --with-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
GLIB_SCHEMAS= org.gnome.Epiphany.enums.xml \
org.gnome.epiphany.gschema.xml
PLIST_SUB+= EPHY_VERSION="${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}"
MAN1= epiphany.1
OPTIONS= NSS "Import passwords from 2.26 and older on first run" off \
AVAHI "Enable zeroconf bookmark support" on \
SPELLCHECK "Enable spell checking by default" on \
SEED "Enable seed (JavaScript) support" on
.if defined(PACKAGE_BUILDING)
.undef WITHOUT_GNOME
WITH_GNOME= yes
.endif
.include <bsd.port.pre.mk>
NO_WERROR= yes
# allow build with more warnings enabled
.if defined(NO_WERROR)
CONFIGURE_ARGS+= --enable-compile-warnings=no
.endif
.if defined(WITH_NSS)
LIB_DEPENDS+= nss3.1:${PORTSDIR}/security/nss
CONFIGURE_ARGS+=--enable-nss
.else
CONFIGURE_ARGS+=--disable-nss
.endif
.if defined(WITH_AVAHI)
LIB_DEPENDS+= avahi-gobject.0:${PORTSDIR}/net/avahi-app
.else
CONFIGURE_ARGS+=--disable-zeroconf
.endif
.if defined(WITH_SEED)
LIB_DEPENDS+= seed-gtk3.0:${PORTSDIR}/devel/seed3
CONFIGURE_ARGS+=--enable-seed
.endif
.if defined(WITH_SPELLCHECK)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-embed_ephy-embed-prefs.c
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
's|-lpthread|${PTHREAD_LIBS}|g'
@${REINPLACE_CMD} -e 's|execinfo.h|#|g ; \
s|-ldl"$$|"|g' \
${WRKSRC}/configure
post-install:
@-update-desktop-database
.include <bsd.port.post.mk>
|