summaryrefslogtreecommitdiffstats
path: root/security/seahorse/Makefile
blob: 3daf1b7c12d3d7b1cff87a5d4316066beb0161ae (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
# New ports collection makefile for:    Seahorse
# Date created:     08 March 2000
# Whom:         Dave McKay <dave@mu.org>
#
# $FreeBSD: ports/security/seahorse/Makefile,v 1.47 2005/11/15 06:51:04 ade Exp $
#   $MCom: ports/security/seahorse/Makefile,v 1.10 2005/12/29 18:47:25 adamw Exp $
#

PORTNAME=   seahorse
PORTVERSION=    0.8
PORTREVISION=   3
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR=sources/${PORTNAME}/0.8
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A front end for GnuPG

BUILD_DEPENDS=  gpg:${PORTSDIR}/security/gnupg
RUN_DEPENDS=    ${BUILD_DEPENDS}
LIB_DEPENDS=    gpgme.15:${PORTSDIR}/security/gpgme

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack intlhack gnomeprefix libgnomeui
USE_AUTOTOOLS=  libtool:15
INSTALLS_OMF=   yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --disable-gpg-check
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS=  seahorse.schemas

OPTIONS=    GEDIT "Enable the gedit plug-in" on \
        NAUTILUS "Enable the Nautilus component" on \
        LDAP "Enable LDAP support" on \
        HKP "Enable HKP keyserver interface" on

.include <bsd.port.pre.mk>

# Uncomment when seahorse is updated past 0.8.
#.if defined(WITH_GEDIT)
#BUILD_DEPENDS+=    gedit:${PORTSDIR}/editors/gedit
#RUN_DEPENDS+=  gedit:${PORTSDIR}/editors/gedit
#PLIST_SUB+=    GEDIT=""
#GCONF_SCHEMAS+=    seahorse-gedit.schemas
#.else
PLIST_SUB+= GEDIT="@comment "
CONFIGURE_ARGS+=--disable-gedit
#.endif

.if defined(WITH_NAUTILUS)
USE_GNOME+= nautilus2
PLIST_SUB+= NAUTILUS=""
.else
PLIST_SUB+= NAUTILUS="@comment "
CONFIGURE_ARGS+=--disable-nautilus
.endif

.if !defined(WITHOUT_LDAP)
USE_OPENLDAP=   yes
.else
CONFIGURE_ARGS+=--disable-ldap
.endif

.if !defined(WITHOUT_HKP)
LIB_DEPENDS+=   soup-2.2.8:${PORTSDIR}/devel/libsoup
.else
CONFIGURE_ARGS+=--disable-hkp
.endif

post-install:
    -@update-desktop-database

.include <bsd.port.post.mk>