summaryrefslogtreecommitdiffstats
path: root/games/blockout/Makefile
blob: 993f4c7e2ce85790bbd3b36d44f6806ec31353ac (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
# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$

PORTNAME=	blockout
PORTVERSION=	2.4
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/BlockOut%20${PORTVERSION}/ \
		http://www.stasyan.com/devel/distfiles/
DISTNAME=	bl24-src-linux-i586

MAINTAINER=	devel@stasyan.com
COMMENT=	BlockOut II is an adaptation of the original Blockout DOS game

ONLY_FOR_ARCHS=	i386

USE_SDL=	mixer sdl
USE_GMAKE=	yes
USE_GL=		gl glu

WRKSRC=		${WRKDIR}/bl24_lin_src
BUILD_WRKSRC=	${WRKSRC}/BlockOut

SUB_FILES=	pkg-message

NO_STAGE=	yes
pre-build:
		cd ${WRKSRC}/ImageLib/src && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}

do-install:
		${INSTALL_PROGRAM} ${WRKSRC}/BlockOut/blockout ${PREFIX}/bin
		${INSTALL_DATA} ${WRKSRC}/ImageLib/src/libimagelib.a ${PREFIX}/lib
		${MKDIR} ${DATADIR}
		${MKDIR} ${DATADIR}/sounds
		${MKDIR} ${DATADIR}/images
.		for i in allPieces background background2 background3 font gameover gameovera marble \
marbleg menuback menucredits menufont menufont2 menupit online onlinea spark sparka sprites spritesa star_crystal_grid
		    ${INSTALL_DATA} ${WRKSRC}/BlockOut/images/${i}.png ${DATADIR}/images
.		endfor
.		for s in blub empty empty2 hit level level2 line line2 tchh welldone welldone2 wozz
		    ${INSTALL_DATA} ${WRKSRC}/BlockOut/sounds/${s}.wav ${DATADIR}/sounds
.		endfor
		${INSTALL_DATA} ${WRKSRC}/BlockOut/sounds/music.mp3 ${DATADIR}/sounds
post-install:
		@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud