summaryrefslogtreecommitdiffstats
path: root/deskutils/gnome-initial-setup/Makefile
blob: 9142110f9fedb57455797fd9061ae8f8dcbcbf12 (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
# Created by: Gustau Perez <gustau.perez@gmail.com>
# $FreeBSD$
#   $MCom$

PORTNAME=   gnome-initial-setup
PORTVERSION=    3.12.1
CATEGORIES= deskutils gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    First boot setup tool for GNOME 3

BUILD_DEPENDS=  gnome-autogen.sh:${PORTSDIR}/devel/gnome-common \
        gdm>=3.0.0:${PORTSDIR}/x11/gdm
LIB_DEPENDS=    libgoa-1.0.so:${PORTSDIR}/net/gnome-online-accounts \
        libaccountsservice.so:${PORTSDIR}/sysutils/accountsservice \
        libpwquality.so:${PORTSDIR}/security/libpwquality \
        libgweather-3.so:${PORTSDIR}/net/libgweather
RUN_DEPENDS=    gdm>=3.0.0:${PORTSDIR}/x11/gdm

USES=       gettext gmake libtool:keepla pathfix pkgconfig tar:xz
USE_GNOME=  gnomedesktop3 gnomeprefix gtk30 intlhack
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtoolize autoconf automake
INSTALLS_ICONS= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= KERBEROS
OPTIONS_DEFAULT=KERBEROS

.include <bsd.port.options.mk>

.if ${OSVERSION} >= 900000
EXTRA_PATCHES+=     ${FILESDIR}/extra-patch-gnome-initial-setup_pages_account_um-utils.c
.endif

.if !${PORT_OPTIONS:MKERBEROS}
EXTRA_PATCHES+=     ${FILESDIR}/extra-patch-gnome-initial-setup_gis-account-page.c
.endif

post-patch:
        @${REINPLACE_CMD} -e 's|krb5/krb5.h|krb5.h|g' \
            ${WRKSRC}/gnome-initial-setup/pages/password/um-realm-manager.c \
            ${WRKSRC}/gnome-initial-setup/pages/account/um-realm-manager.c

pre-configure:
        cd ${WRKSRC} && NOCONFIGURE=yes ${SH} ./autogen.sh

.include <bsd.port.mk>