summaryrefslogtreecommitdiff
path: root/games/rollemup/Makefile
blob: a488771cee3bdc68f83cb3cdbb63f16660f8219a (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# $NetBSD: Makefile,v 1.14 2000/08/31 02:35:26 hubertf Exp $
#

DISTNAME=	Rollemup
PKGNAME=	rollemup-1.0
CATEGORIES=	games
MASTER_SITES=	http://usa.lostboys.nl/medialab/rollemup/Linux/

MAINTAINER=	sakamoto@netbsd.org
HOMEPAGE=	http://www.medialab.lostboys.nl/projects/madewith/pinball/pinballgame.html

LICENSE=	no-commercial-use
RESTRICTED=	You are not allowed to distribute the software by any means. \
		You are allowed to download a copy from this site for personal use. \
		See http://www.medialab.lostboys.nl/content/showcase/license.html
NO_SRC_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

EXTRACT_ONLY=	# empty
NO_PATCH=	yes
NO_CONFIGURE=	yes
NO_BIN_ON_CDROM=${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP=	${RESTRICTED}
NO_SRC_ON_FTP=	${RESTRICTED}

MESSAGE_FILE=	${WRKDIR}/MESSAGE

PLIST_SRC=	${WRKDIR}/PLIST.src
GAMES_DIR=	share/games

ONLY_FOR_PLATFORM=	*-*-i386

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
DEPENDS=	suse_linux>=6.1:../../emulators/suse_linux
CHECK_SHLIBS=	no
.endif

do-build:
	@${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
		-e 's|$${GAMES_DIR}|${GAMES_DIR}|g' \
		${FILESDIR}/rollemup.sh > ${WRKDIR}/rollemup
	@${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
		-e 's|$${GAMES_DIR}|${GAMES_DIR}|g' \
		${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
	@${SED} -e 's|$${PREFIX}|${PREFIX}|g' ${FILESDIR}/README.Rollemup \
		> ${WRKDIR}/README.Rollemup

do-install:
	@${GTAR} xCzf ${PREFIX}/${GAMES_DIR} ${_DISTDIR}/${DISTFILES}
	@${TOUCH} ${PREFIX}/${GAMES_DIR}/Rollemup/Rollemup.ini
	@${MV} ${PREFIX}/${GAMES_DIR}/Rollemup/Rollemup ${PREFIX}/bin
	@${INSTALL_SCRIPT} ${WRKDIR}/rollemup ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKDIR}/README.Rollemup \
		${PREFIX}/${GAMES_DIR}/Rollemup
	@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
	@(cd ${PREFIX}; \
	  ${FIND} ${GAMES_DIR}/Rollemup -type f >> ${PLIST_SRC}; \
	  for DIR in `${FIND} ${GAMES_DIR}/Rollemup -type d | sort -r`; do \
	    ${ECHO} "@dirrm $$DIR" >> ${PLIST_SRC}; \
	  done)
	@${CHOWN} root:games ${PREFIX}/bin/Rollemup
	@${CHMOD} 2755 ${PREFIX}/bin/Rollemup
	@${CHOWN} -R root:games ${PREFIX}/${GAMES_DIR}/Rollemup
	@${CHMOD} 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Games
	@${CHMOD} 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Upload
	@${CHMOD} 664 ${PREFIX}/${GAMES_DIR}/Rollemup/Rollemup.ini

.include "../../mk/bsd.pkg.mk"