summaryrefslogtreecommitdiff
path: root/archivers/hpack/Makefile
blob: af0e1a7e04d63307fcf8914ac1b690a573daa895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.16 2003/07/17 21:21:21 grant Exp $

DISTNAME=       hpack79src
PKGNAME=        hpack-0.79
WRKSRC=		${WRKDIR}
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

USE_BUILDLINK2=	yes

CRYPTO=		yes

MAKEFILE=       makefile
ALL_TARGET=     hpack

MAKE_FLAGS=	CFLAGS="-c -DBSD386 -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt"

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Darwin"
MAKE_FLAGS+=	CMDL="${LDFLAGS} -lcurses"
.else
MAKE_FLAGS+=	CMDL="${LDFLAGS} -ltermcap"
.endif

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/
	@if [ ! -f ${PREFIX}/etc/hpack.cfg ]; then \
		${CP} -p ${PREFIX}/share/hpack/hpack.cfg.example ${PREFIX}/etc/hpack.cfg; \
	fi

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