summaryrefslogtreecommitdiff
path: root/security/pgp2/options.mk
blob: 7d69b019d3b867d90c37384c706856d2160a0639 (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
# $NetBSD: options.mk,v 1.2 2005/12/01 20:18:29 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.pgp2
PKG_SUPPORTED_OPTIONS=	rsaref

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "m68k"
PKG_SUPPORTED_OPTIONS+=	m68060-optimized
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mrsaref)
PKGNAME=	pgp-2.6.3a
.include "../../security/rsaref/buildlink3.mk"
RSAINC=		-I${BUILDLINK_PREFIX.rsaref}/include
RSALIBS=	${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.rsaref}/lib -L${BUILDLINK_PREFIX.rsaref}/lib -lrsaref
RSAOBJS=	rsaglue2.o
CFLAGS+=	-DUSA
.else
PKGNAME=	pgp-2.6.3ia
RSAINC=
RSALIBS=
RSAOBJS=	rsaglue1.o
.endif
FIX_RPATH+=	RSALIBS

.if ${MACHINE_ARCH} == "m68k"
.if !empty(PKG_OPTIONS:Mm68060-optimized)
OBJS_EXT=
ASMFLAG=	-m68060 -DPORTABLE -DMPORTABLE
.else
OBJS_EXT=	mc68020.o
ASMFLAG=
.endif
.endif