pkgsrc/archivers/hpack/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

2006-10-03 21:48:43 +02:00
# $NetBSD: Makefile,v 1.34 2006/10/03 19:48:43 rillig Exp $
2006-05-31 06:45:33 +02:00
DISTNAME= hpack79src
PKGNAME= hpack-0.79
PKGREVISION= 1
CATEGORIES= archivers
2006-05-31 06:45:33 +02:00
MASTER_SITES= ftp://ftp.franken.de/pub/crypt/misc/
2006-05-31 06:45:33 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Multi-System Archiver with open keys PGP-based security
2004-07-28 00:09:43 +02:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
CRYPTO= yes
2006-09-09 04:41:53 +02:00
MAKE_FILE= makefile
2006-05-31 06:45:33 +02:00
BUILD_TARGET= hpack
DIST_SUBDIR= ${PKGNAME_NOREV}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
2006-10-03 21:48:43 +02:00
MAKE_FLAGS+= CFLAGS='-c -DLINUX -D__UNIX__ -DPREFIX="\"${PREFIX}\"" -I. '${CFLAGS:Q}' -Icrypt'
.else
2006-10-03 21:48:43 +02:00
MAKE_FLAGS+= CFLAGS='-c -DBSD386 -D__UNIX__ -DPREFIX="\"${PREFIX}\"" -I. '${CFLAGS:Q}' -Icrypt'
.endif
.if ${OPSYS} == "Darwin"
2006-10-03 21:48:43 +02:00
MAKE_FLAGS+= CMDL=${LDFLAGS:Q}' -lcurses'
.else
2006-10-03 21:48:43 +02:00
MAKE_FLAGS+= CMDL=${LDFLAGS:Q}' -ltermcap'
.endif
CONF_FILES= ${PREFIX}/share/hpack/hpack.cfg.example \
${PKG_SYSCONFDIR}/hpack.cfg
2006-10-03 21:48:43 +02:00
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/hpack share/doc/hpack
2004-07-28 00:09:43 +02:00
post-build:
2006-10-03 21:48:43 +02:00
cd ${WRKSRC}/keycvt && ${MAKE} CFLAGS="-c -D__UNIX__ "${CFLAGS:Q} \
2006-09-09 04:41:53 +02:00
-f ${MAKE_FILE} keycvt
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hpack ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/keycvt/keycvt ${PREFIX}/bin/
2006-07-17 19:23:52 +02:00
${INSTALL_MAN} ${WRKSRC}/docs/hpack.1 ${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA} ${WRKSRC}/language.dat ${PREFIX}/share/hpack/
${INSTALL_DATA} ${WRKSRC}/docs/hpack.cfg ${PREFIX}/share/hpack/hpack.cfg.example
${INSTALL_DATA} ${WRKSRC}/docs/hpackext.doc ${PREFIX}/share/doc/hpack/
.include "../../mk/bsd.pkg.mk"