openbsd-ports/security/opencdk/Makefile
2007-09-15 23:29:57 +00:00

51 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2007/09/15 23:29:59 merdely Exp $
COMMENT= Open Crypto Development Kit
VERSION= 0.5.5
DISTNAME= opencdk-${VERSION}
PKGNAME= ${DISTNAME}p1
CATEGORIES= security
SHARED_LIBS= opencdk 8.1
MODGNU_SHARED_LIBS= opencdk ''
LIBopencdk_ALIAS= realopencdk
HOMEPAGE= http://www.gnutls.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= gpg-error iconv intl z
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/ \
ftp://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/opencdk/ \
http://sunsite.dk/pub/security/gcrypt/alpha/gnutls/opencdk/ \
http://ftp.linux.it/pub/mirrors/gnupg/alpha/gnutls/opencdk/
EXTRACT_SUFX= .tar.bz2
LIB_DEPENDS= gcrypt.>=12::security/libgcrypt
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-static \
--with-libgcrypt-prefix=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opencdk
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opencdk
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/opencdk
${INSTALL_DATA} ${WRKSRC}/doc/opencdk-api.html \
${PREFIX}/share/doc/opencdk
${INSTALL_DATA} ${WRKSRC}/tests/*.c \
${PREFIX}/share/examples/opencdk
${INSTALL_DATA} ${WRKSRC}/tests/*.gpg \
${PREFIX}/share/examples/opencdk
.include <bsd.port.mk>