3d8ef5a52d
many packages used to use ${PAX}. Use the common way of directly calling pax, it is created as tool after all.
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2008/05/26 02:13:19 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= majesty_demo
|
|
PKGNAME= majesty-demo-20030310
|
|
PKGREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://demos.linuxgamepublishing.com/majesty/
|
|
EXTRACT_SUFX= .run
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.linuxgamepublishing.com/info.php?id=majesty
|
|
COMMENT= Fantasy kingdom simulation (demo)
|
|
|
|
EXTRACT_CMD= ${SED} '1,/^END_OF_STUB$$/d' ${DOWNLOADED_DISTFILE} | \
|
|
${GZCAT} | pax -O -r
|
|
USE_TOOLS+= gzcat pax
|
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
EMUL_MODULES.linux= x11
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
BUILD_DIRS= # empty
|
|
|
|
BINNAME= maj_demo
|
|
LGP_PATH= ${PREFIX}/lib/lgp
|
|
MAJ_PATH= ${LGP_PATH}/maj_demo
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
do-build:
|
|
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
|
|
-e 's#@@LIBDIR@@#${MAJ_PATH}#g' \
|
|
-e 's#@@BINNAME@@#${BINNAME}#g' \
|
|
<${FILESDIR}/wrapper.sh >${WRKDIR}/${BINNAME}.sh
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${LGP_PATH}
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${MAJ_PATH}
|
|
${INSTALL_PROGRAM} ${WRKDIR}/bin/Linux/x86/glibc-2.1/maj_demo \
|
|
${DESTDIR}${MAJ_PATH}
|
|
cd ${WRKDIR} && pax -rw README README.licenses data majesty* \
|
|
quests ${DESTDIR}${MAJ_PATH}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh \
|
|
${DESTDIR}${PREFIX}/bin/${BINNAME}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|