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