Skip to content

Commit

Permalink
DESTDIR support
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonn committed Jan 27, 2010
1 parent fad6e09 commit bcacb8e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions security/libbf/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2009/05/01 13:51:41 zafer Exp $
# $NetBSD: Makefile,v 1.14 2010/01/27 21:59:21 joerg Exp $
#

DISTNAME= libbf-0.8.2b
Expand All @@ -9,6 +9,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.schneier.com/blowfish.html
COMMENT= Blowfish block cipher library

PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}/bf
CRYPTO= YES

Expand All @@ -22,16 +24,15 @@ BF_ENC=bf_enc.o

MAKEFLAGS+= BF_ENC=${BF_ENC:Q}

INSTALLATION_DIRS= bin include lib
INSTALLATION_DIRS= bin include lib share/doc/blowfish

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
${INSTALL_DATA} libblowfish.a ${DESTDIR}${PREFIX}/lib && \
${INSTALL_DATA} blowfish.h ${DESTDIR}${PREFIX}/include && \
${INSTALL_PROGRAM} bftest bfspeed ${DESTDIR}${PREFIX}/bin
.for doc in blowfish.doc COPYRIGHT README VERSION
${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/blowfish
${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/blowfish
.endfor

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

0 comments on commit bcacb8e

Please sign in to comment.