[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / archivers / hpack

File: [cvs.NetBSD.org] / pkgsrc / archivers / hpack / Makefile (download)

Revision 1.37, Tue Sep 11 19:46:55 2012 UTC (8 years, 9 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.36: +1 -2 lines

"user-destdir" is default these days

# $NetBSD: Makefile,v 1.37 2012/09/11 19:46:55 asau Exp $

DISTNAME=	hpack79src
PKGNAME=	hpack-0.79
PKGREVISION=	2
CATEGORIES=	archivers
MASTER_SITES=	ftp://ftp.franken.de/pub/crypt/misc/

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Multi-System Archiver with open keys PGP-based security

PKG_INSTALLATION_TYPES=	overwrite pkgviews

CRYPTO=		yes

DIST_SUBDIR=	${PKGNAME_NOREV}
WRKSRC=		${WRKDIR}
MAKE_FILE=	makefile
MAKE_FLAGS+=	CFLAGS=${HPACK_CFLAGS:Q} CMDL=${HPACK_LDFLAGS:Q}
BUILD_TARGET=	hpack

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

.if ${OPSYS} == "Linux"
HPACK_CFLAGS=	-DLINUX
.else
HPACK_CFLAGS=	-DBSD386
.endif
HPACK_CFLAGS+=	-c -D__UNIX__ -DPREFIX="\"${PREFIX}\"" -I. -Icrypt
HPACK_CFLAGS+=	${CPPFLAGS} ${CFLAGS}
HPACK_LDFLAGS=	${LDFLAGS} ${BUILDLINK_LDADD.termcap}

CONF_FILES=	${PREFIX}/share/hpack/hpack.cfg.example		\
		${PKG_SYSCONFDIR}/hpack.cfg

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/hpack share/doc/hpack

post-build:
	cd ${WRKSRC}/keycvt && ${BUILD_MAKE_CMD} keycvt

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hpack \
		${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/keycvt/keycvt \
		${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/docs/hpack.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKSRC}/language.dat \
		${DESTDIR}${PREFIX}/share/hpack
	${INSTALL_DATA} ${WRKSRC}/docs/hpack.cfg \
		${DESTDIR}${PREFIX}/share/hpack/hpack.cfg.example
	${INSTALL_DATA} ${WRKSRC}/docs/hpackext.doc \
		${DESTDIR}${PREFIX}/share/doc/hpack

.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"