File:  [cvs.NetBSD.org] / pkgsrc / pkgtools / cdpack / Makefile
Revision 1.30: download - view: text, annotated - select for diffs
Thu Apr 9 00:48:11 2009 UTC (15 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, HEAD
Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.

# $NetBSD: Makefile,v 1.30 2009/04/09 00:48:11 joerg Exp $
#

DISTNAME=	cdpack-1.9
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	dmcmahill@NetBSD.org
HOMEPAGE=	http://www.NetBSD.org/
COMMENT=	Utility to create multi-cd/dvd binary package collections

PKG_DESTDIR_SUPPORT=	user-destdir

# for mkisofs
DEPENDS+=	cdrtools-[0-9]*:../../sysutils/cdrtools

WRKSRC=		${WRKDIR}
NO_CONFIGURE=	yes

USE_TOOLS+=	awk:run
USE_TOOLS+=	bzcat:run
USE_TOOLS+=	expr:run
USE_TOOLS+=	gzcat:run
USE_TOOLS+=	printf:run
USE_TOOLS+=	sort:run
USE_TOOLS+=	tar:run
USE_TOOLS+=	tsort:run

INSTALLATION_DIRS=	bin libexec ${PKGMANDIR}/man1

do-build:
.for f in cdpack cddist
	${SED}  -e 's;@prefix@;${PREFIX};g' \
		-e 's;@progver@;${PKGVERSION};g' \
		-e 's;@AWK@;${AWK};g' \
		-e 's;@BZCAT@;${BZCAT};g' \
		-e 's;@EXPR@;${EXPR};g' \
		-e 's;@GZCAT@;${GZCAT};g' \
		-e 's;@PRINTF@;${PRINTF};g' \
		-e 's;@SORT@;${SORT};g' \
		-e 's;@TAR@;${TAR};g' \
		-e 's;@TSORT@;${TSORT};g' \
		${FILESDIR}/${f}.sh > \
		${WRKSRC}/${f}
	${CHMOD} 755 ${WRKDIR}/${f}
	${SED} -e 's;@AWK@;${AWK};g' \
		-e 's;@BZCAT@;${BZCAT};g' \
		-e 's;@GZCAT@;${GZCAT};g' \
		-e 's;@TAR@;${TAR};g' \
		${FILESDIR}/${f}.1 > \
		${WRKSRC}/${f}.1
.endfor
	${SED} -e 's;@AWK@;${AWK};g' ${FILESDIR}/cdgen.awk > \
		${WRKSRC}/cdgen.awk

do-install:
.for f in cdpack cddist
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${f}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.endfor
	${INSTALL_SCRIPT} ${WRKSRC}/cdgen.awk ${DESTDIR}${PREFIX}/libexec

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

CVSweb <webmaster@jp.NetBSD.org>