Update shells/bash to version 4.3.26
[dports.git] / www / epiphany / Makefile
1 # Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
2 # $FreeBSD$
3 #   $MCom: ports/www/epiphany/Makefile,v 1.246 2011/04/30 20:43:27 mezz Exp $
4
5 PORTNAME=       epiphany
6 PORTVERSION=    2.30.6
7 PORTREVISION?=  4
8 CATEGORIES=     www gnome
9 MASTER_SITES=   GNOME
10 DIST_SUBDIR=    gnome2
11
12 MAINTAINER=     gnome@FreeBSD.org
13 COMMENT?=       Extremely lightweight and simple web browser for GNOME 2
14
15 BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
16                 ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
17 LIB_DEPENDS=    libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
18                 libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2 \
19                 libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome \
20                 libnotify.so:${PORTSDIR}/devel/libnotify \
21                 libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
22 RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
23                 ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
24                 ${LOCALBASE}/share/icons/HighContrastLargePrint/index.theme:${PORTSDIR}/x11-themes/gnome-themes
25
26 CONFLICTS=      epiphany-3.[0-9]*
27
28 USE_LDCONFIG=   yes
29 INSTALLS_ICONS= yes
30 USE_PYTHON=     yes
31 USES=           desktop-file-utils gettext pathfix gmake libtool pkgconfig tar:bzip2
32 USE_GNOME=      gnomeprefix intlhack gnomedesktop
33 GNU_CONFIGURE=  yes
34 INSTALLS_OMF=   yes
35 CONFIGURE_ARGS+=--enable-introspection \
36                 --enable-compile-warnings=no \
37                 --with-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
38 CPPFLAGS+=      -I${LOCALBASE}/include
39 LIBS+=          -L${LOCALBASE}/lib
40
41 GCONF_SCHEMAS=  epiphany-lockdown.schemas epiphany.schemas
42
43 PLIST_SUB+=     EPHY_VERSION="${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}"
44
45 OPTIONS_DEFINE= NSS SPELLCHECK SEED
46 OPTIONS_DEFAULT=NSS SPELLCHECK
47 NSS_DESC=       Import passwords from 2.26 and older on first run
48 SPELLCHECK_DESC=Enable spell checking by default
49 SEED_DESC=      Seed (JavaScript) support
50
51 .include <bsd.port.options.mk>
52
53 .if ${PORT_OPTIONS:MNSS}
54 LIB_DEPENDS+=   libnss3.so:${PORTSDIR}/security/nss
55 CONFIGURE_ARGS+=--enable-nss
56 .else
57 CONFIGURE_ARGS+=--disable-nss
58 .endif
59
60 .if ${PORT_OPTIONS:MSEED}
61 LIB_DEPENDS+=   libseed.so:${PORTSDIR}/devel/seed
62 CONFIGURE_ARGS+=--enable-seed
63 .endif
64
65 .if ${PORT_OPTIONS:MSPELLCHECK}
66 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-embed_ephy-embed-prefs.c
67 .endif
68
69 post-patch:
70         @${REINPLACE_CMD} -e 's|execinfo.h|#|g ; \
71                 s|-ldl"$$|"|g' \
72                 -e 's|EPIPHANY_API_VERSION=2.29|EPIPHANY_API_VERSION=2.30|g' \
73                 ${WRKSRC}/configure
74
75 .include <bsd.port.mk>