Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / mklivecd / Makefile
blob7b0f2b76dae026fd674e5b768ad74a59f937e01a
1 # $NetBSD: Makefile,v 1.50 2010/12/02 20:10:26 wiz Exp $
3 DISTNAME= mklivecd-0.17
4 CATEGORIES= sysutils
5 MASTER_SITES= # empty
6 DISTFILES= # empty
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
17 .endif
19 PKG_INSTALLATION_TYPES= overwrite pkgviews
21 ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
23 WRKSRC= ${WRKDIR}
24 NO_CONFIGURE= YES
25 USE_TOOLS+= tar
27 INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin share/mklivecd
29 do-build:
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}
36 .endfor
38 do-install:
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"