pkgsrc/security/libbf/Makefile

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2007/12/02 12:21:53 wiz Exp $
#
DISTNAME= libbf-0.8.2b
CATEGORIES= security
MASTER_SITES= ftp://ftp.psy.uq.oz.au/pub/Crypto/libeay/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.psy.uq.oz.au/libeay/ \
ftp://ftp.ntnu.no/pub/unix/security/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.schneier.com/blowfish.html
COMMENT= Blowfish block cipher library
WRKSRC= ${WRKDIR}/bf
CRYPTO= YES
.include "../../mk/bsd.prefs.mk"
.if ${LOWER_ARCH} == "i386" && ${OBJECT_FMT} == "ELF"
BF_ENC=asm/bx86-elf.o
.else
BF_ENC=bf_enc.o
.endif
MAKEFLAGS+= BF_ENC=${BF_ENC:Q}
INSTALLATION_DIRS= bin include lib
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/blowfish
cd ${WRKSRC} && \
${INSTALL_DATA} libblowfish.a ${PREFIX}/lib && \
${INSTALL_DATA} blowfish.h ${PREFIX}/include && \
${INSTALL_PROGRAM} bftest bfspeed ${PREFIX}/bin
.for doc in blowfish.doc COPYRIGHT README VERSION
${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/blowfish
.endfor
.include "../../mk/bsd.pkg.mk"