summaryrefslogtreecommitdiff
path: root/games/majesty-demo/Makefile
blob: 63681365bd411058e9800cc6fb26304c0ffe7e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.17 2013/04/06 12:04:00 rodent 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' $$extract_file | \
			${GZCAT} | pax -O -r
USE_TOOLS+=	gzcat pax

EMUL_PLATFORMS=		linux-i386
EMUL_MODULES.linux=	x11

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"