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

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / cdpack / Makefile (download)

Revision 1.33, Mon Mar 3 03:39:10 2014 UTC (7 years, 7 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.32: +2 -1 lines

LICENSE=original-bsd

# $NetBSD: Makefile,v 1.33 2014/03/03 03:39:10 obache Exp $
#

PKGNAME=	cdpack-1.9
CATEGORIES=	pkgtools

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

# 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"