2010-12-02 21:10:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2010/12/02 20:10:26 wiz Exp $
|
2004-02-26 04:58:50 +01:00
|
|
|
|
2009-04-11 19:28:16 +02:00
|
|
|
DISTNAME= mklivecd-0.17
|
2004-02-26 04:58:50 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
2008-05-25 23:20:07 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
#HOMEPAGE= http://www.netbsd.org/~xtraeme/mklivecd/
|
2007-03-10 01:05:46 +01:00
|
|
|
COMMENT= Make your own NetBSD/x86 Live CD-ROM/DVD-ROM
|
2004-02-26 04:58:50 +01:00
|
|
|
|
2010-01-27 20:27:24 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2007-03-10 00:51:50 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2010-12-02 21:10:26 +01:00
|
|
|
DEPENDS+= cdrtools-[0-9]*:../../sysutils/cdrtools
|
2007-03-10 00:51:50 +01:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2005-08-02 14:32:23 +02:00
|
|
|
DEPENDS+= grub>=0.97:../../sysutils/grub
|
2007-03-10 00:51:50 +01:00
|
|
|
.endif
|
2004-02-26 04:58:50 +01:00
|
|
|
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2007-03-10 00:51:50 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
|
2004-02-26 04:58:50 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
NO_CONFIGURE= YES
|
2005-05-16 03:32:22 +02:00
|
|
|
USE_TOOLS+= tar
|
2004-02-26 04:58:50 +01:00
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin share/mklivecd
|
2004-02-26 04:58:50 +01:00
|
|
|
|
2007-06-15 17:44:25 +02:00
|
|
|
do-build:
|
2005-08-11 22:48:55 +02:00
|
|
|
.for f in livecd mklivecd.sh mklivecd.8
|
2004-04-26 19:28:58 +02:00
|
|
|
@${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
2004-05-20 04:11:41 +02:00
|
|
|
-e "s,@LOCALBASE@,${LOCALBASE},g" \
|
2004-10-29 19:47:30 +02:00
|
|
|
-e "s,@TAR@,${TAR},g" \
|
2004-04-26 19:28:58 +02:00
|
|
|
-e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
|
2004-10-29 19:47:30 +02:00
|
|
|
${FILESDIR}/${f} > ${WRKDIR}/${f}
|
|
|
|
.endfor
|
2007-06-15 17:44:25 +02:00
|
|
|
|
|
|
|
do-install:
|
2010-01-27 20:27:24 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mklivecd.sh ${DESTDIR}${PREFIX}/sbin/mklivecd
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/mklivecd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/livecd ${DESTDIR}${PREFIX}/share/mklivecd
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/personal_config ${DESTDIR}${PREFIX}/share/mklivecd
|
2004-02-26 04:58:50 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|