[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / pgp2

File: [cvs.NetBSD.org] / pkgsrc / security / pgp2 / Makefile (download)

Revision 1.58, Tue Jan 2 05:37:23 2018 UTC (2 years, 9 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.57: +1 -2 lines

Remove traces of crypto restrictions from packages.

ok for idea riastradh.

# $NetBSD: Makefile,v 1.58 2018/01/02 05:37:23 maya Exp $

DISTNAME=	pgp263is
PKGREVISION=	1
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/
MASTER_SITES+=	ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.pgpi.org/
COMMENT=	Public-key encryption and digital signature utility (v2)
LICENSE=	pgp2-license

WRKSRC=		${WRKDIR}/src

.include "options.mk"

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

PGPLIB=		${PREFIX}/share/pgp
CFLAGS+=	-DPGP_SYSTEM_DIR="\"${PGPLIB}/\""

.if (${MACHINE_ARCH} == "i386")
OBJS_EXT=	_80386.o _zmatch.o
ASMFLAG=	-DASM
.elif (${MACHINE_ARCH} == "sparc") && (${OPSYS} != SunOS)
OBJS_EXT=	sparc.o
ASMFLAG=
.else
OBJS_EXT=
ASMFLAG=	-DPORTABLE -DMPORTABLE
.endif

.include "../../mk/endian.mk"

.if (${MACHINE_ENDIAN} == "big")
CFLAGS+=	-DHIGHFIRST
.endif

BUILD_DEFS+=	ASMFLAG

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PGPLIB}

post-extract:
	cd ${WRKDIR} && ${TAR} xf pgp263ii.tar && ${RM} -f pgp263ii.tar

do-build:
	cd ${WRKSRC} && ${MAKE} all CC="${CC}" LD="${CC}" \
		OBJS_EXT="${OBJS_EXT}" \
		CFLAGS=${CFLAGS:Q}" ${RSAINC} ${ASMFLAG} -O2 -DUNIX -DIDEA32 \
		-DMAX_NAMELEN=255" RSALIBS="${RSALIBS}" RSAOBJS="${RSAOBJS}"

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pgp ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKDIR}/doc/pgp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	cd ${WRKDIR}/doc && ${INSTALL_DATA} pgpdoc1.txt pgpdoc2.txt ${DESTDIR}${PGPLIB}
	cd ${WRKDIR} && \
		${INSTALL_DATA} de.hlp en.hlp es.hlp fr.hlp pgp.hlp ${DESTDIR}${PGPLIB}
	${INSTALL_DATA} ${WRKDIR}/language.txt ${DESTDIR}${PGPLIB}
	${INSTALL_DATA} ${WRKDIR}/config.txt ${DESTDIR}${PGPLIB}
	${INSTALL_DATA} ${WRKDIR}/en.hlp ${DESTDIR}${PGPLIB}/pgp.hlp

.include "../../mk/bsd.pkg.mk"