freebsd-ports/security/gnupg-idea/Makefile

87 lines
2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gnupg-idea
# Date created: 10 May, 2000
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= gnupg-idea
2002-12-26 06:43:52 +01:00
PORTVERSION= 1.0.4
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG} \
ftp://ftp.gnupg.org/gcrypt/%SUBDIR%/ \
2002-10-20 18:14:57 +02:00
http://www.gnupg.dk/contrib-dk/:idea \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/gnupg/&,}
MASTER_SITE_SUBDIR= contrib
DISTFILES= # later
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= # none
MAINTAINER= dinoex@FreeBSD.org
2003-02-21 05:07:03 +01:00
COMMENT= IDEA extension module for gnupg (and RSA for demonstration)
RUN_DEPENDS= ${LOCALBASE}/bin/gpg:${PORTSDIR}/security/gnupg
EXTRACT_AFTER_ARGS= > ${WRKSRC}/idea.c
RESTRICTED= "IDEA is Patented in the USA and many European countries"
NO_WRKSUBDIR= yes
2001-04-30 02:34:26 +02:00
CFLAGS+= -shared -fPIC -DIS_MODULE
CFLAGS+= -Wall -Wcast-align -Wshadow -Wstrict-prototypes
PLIST= ${WRKDIR}/.PLIST.more
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
NO_PACKAGE= You must set variable USA_RESIDENT to YES or NO
.include <bsd.port.mk>
.elif defined(USA_RESIDENT)
.if ${USA_RESIDENT} == NO || defined(MAKE_IDEA)
CONTRIB= idea rsa
2002-10-20 18:14:57 +02:00
DISTFILES= idea.c.gz:idea rsa.c
EXTRACT_ONLY= idea.c.gz
.else
CONTRIB= rsa
DISTFILES= rsa.c
pre-fetch:
@${ECHO_MSG}
@${ECHO_MSG} You must set variable MAKE_IDEA to YES, only rsa is build now.
.endif
.include <bsd.port.pre.mk>
pre-extract:
@${SED} -e s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
post-extract:
2002-10-27 11:09:42 +01:00
.for i in rsa.c
@tr -d '\r' <${_DISTDIR}/${i} >${WRKSRC}/${i}
.endfor
do-patch:
.for i in ${CONTRIB}
@${ECHO_MSG} "===> Applying extra patch ${i}.c"
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/patch-${i}.c
.endfor
do-build:
.for i in ${CONTRIB}
${CC} ${CFLAGS} -o ${WRKSRC}/${i} ${WRKSRC}/${i}.c
${ECHO_CMD} "lib/gnupg/${i}" >>${PLIST}
.endfor
${ECHO_CMD} "@dirrm lib/gnupg" >>${PLIST}
do-install:
${MKDIR} ${PREFIX}/lib/gnupg
.for i in ${CONTRIB}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/lib/gnupg/${i}
.endfor
.include <bsd.port.post.mk>
.else
.endif