blob: ee9479a305b3fddd3caf0da5746ce41c4e5dd250 (
plain)
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
|
# $NetBSD: Makefile,v 1.61 2004/03/01 19:12:25 wiz Exp $
DISTNAME= gnupg-1.2.4
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ \
ftp://ftp.planetmirror.com/pub/gnupg/gnupg/ \
ftp://gd.tuwien.ac.at/privacy/gnupg/gnupg/ \
ftp://ftp.jyu.fi/pub/crypt/gcrypt/gnupg/ \
ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/gnupg/
EXTRACT_SUFX= .tar.bz2
# don't remove this -- we may add idea.c.gz to it below
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.gnupg.org/
COMMENT= Privacy Guard, public-Key encryption and digital signatures
BUILD_USES_MSGFMT= yes
CRYPTO= yes
GNU_CONFIGURE= yes
USE_BUILDLINK2= yes
USE_PKGLOCALEDIR= yes
USE_GNU_TOOLS+= make
CONFIGURE_ARGS+= --enable-tiger --with-static-rnd=auto
TEST_TARGET= check
USE_GNU_TOOLS+= sed
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
INFO_FILES= gpg.info gpgv.info
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= USE_I586 USE_IDEA USE_OPENLDAP M68060
.if defined(USE_I586) && ${USE_I586} == YES
# use assembler routines optimized for i586
ONLY_FOR_PLATFORM= *-*-i386
MACHINE_GNU_ARCH= i586
.endif
.if defined(M68060) && ${M68060} == YES
# be more efficient on M68060 machines
CONFIGURE_ENV+= M68060=${M68060}
CFLAGS+= -m68060
.endif
.if defined(USE_IDEA) && ${USE_IDEA} == YES
# use of IDEA as crypto function
LICENCE= fee-based-commercial-use
DISTFILES+= idea.c.gz
SITES_idea.c.gz=ftp://ftp.gnupg.dk/pub/contrib-dk/ \
http://www.gnupg.dk/contrib-dk/
pre-configure:
${GZCAT} ${DISTDIR}/idea.c.gz > ${WRKSRC}/cipher/idea.c
.endif
.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES
.include "../../databases/openldap/buildlink2.mk"
PLIST_SUBST+= OPENLDAP=""
.else
CONFIGURE_ARGS+=--disable-ldap
PLIST_SUBST+= OPENLDAP="@comment "
.endif
.if ${OPSYS} == "FreeBSD"
SUBST_CLASSES= fixme
SUBST_STAGE.fixme= post-configure
SUBST_FILES.fixme= mpi/i386/mpih-add1.S mpi/i386/mpih-lshift.S \
mpi/i386/mpih-mul1.S mpi/i386/mpih-mul2.S \
mpi/i386/mpih-mul3.S mpi/i386/mpih-rshift.S \
mpi/i386/mpih-sub1.S
SUBST_SED.fixme= -e "s,ALIGN (3),ALIGN (4),g"
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/DETAILS \
${PREFIX}/share/gnupg
.include "../../converters/libiconv/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../archivers/bzip2/buildlink2.mk"
.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|