pkgsrc/archivers/hpack/Makefile
2004-07-27 22:09:43 +00:00

56 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2004/07/27 22:09:43 minskim Exp $
DISTNAME= hpack79src
PKGNAME= hpack-0.79
PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ftp://src.doc.ic.ac.uk/packages/hpack/
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= Multi-System Archiver with open keys PGP-based security
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
CRYPTO= yes
MAKEFILE= makefile
ALL_TARGET= hpack
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
MAKE_FLAGS= CFLAGS="-c -DLINUX -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt"
.else
MAKE_FLAGS= CFLAGS="-c -DBSD386 -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt"
.endif
.if ${OPSYS} == "Darwin"
MAKE_FLAGS+= CMDL="${LDFLAGS} -lcurses"
.else
MAKE_FLAGS+= CMDL="${LDFLAGS} -ltermcap"
.endif
CONF_FILES= ${PREFIX}/share/hpack/hpack.cfg.example \
${PKG_SYSCONFDIR}/hpack.cfg
INSTALLATION_DIRS= bin man/man1
post-build:
@cd ${WRKSRC}/keycvt && ${MAKE} CFLAGS="-c -D__UNIX__ ${CFLAGS}" \
-f ${MAKEFILE} keycvt
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hpack ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/keycvt/keycvt ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/docs/hpack.1 ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/hpack
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hpack
${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"