1 # $NetBSD: Makefile,v 1.50 2010/12/02 20:10:26 wiz Exp $
3 DISTNAME
= mklivecd-0.17
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 #HOMEPAGE= http://www.netbsd.org/~xtraeme/mklivecd/
10 COMMENT
= Make your own NetBSD
/x86 Live CD-ROM
/DVD-ROM
12 .
include "../../mk/bsd.prefs.mk"
14 DEPENDS
+= cdrtools-
[0-9]*:..
/..
/sysutils
/cdrtools
15 .if
${MACHINE_ARCH} == "i386"
16 DEPENDS
+= grub
>=0.97:..
/..
/sysutils
/grub
19 PKG_INSTALLATION_TYPES
= overwrite pkgviews
21 ONLY_FOR_PLATFORM
= NetBSD-
*-i386 NetBSD-
*-x86_64
27 INSTALLATION_DIRS
= ${PKGMANDIR}/man8 sbin share
/mklivecd
30 .for f in livecd mklivecd.sh mklivecd
.8
31 @
${SED} -e
"s,@PREFIX@,${PREFIX},g" \
32 -e
"s,@LOCALBASE@,${LOCALBASE},g" \
33 -e
"s,@TAR@,${TAR},g" \
34 -e
"s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
35 ${FILESDIR}/${f} > ${WRKDIR}/${f}
39 ${INSTALL_SCRIPT} ${WRKDIR}/mklivecd.sh
${DESTDIR}${PREFIX}/sbin
/mklivecd
40 ${INSTALL_MAN} ${WRKDIR}/mklivecd
.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
41 ${INSTALL_DATA} ${WRKDIR}/livecd
${DESTDIR}${PREFIX}/share
/mklivecd
42 ${INSTALL_DATA} ${FILESDIR}/personal_config
${DESTDIR}${PREFIX}/share
/mklivecd
44 .
include "../../mk/bsd.pkg.mk"