aboutsummaryrefslogtreecommitdiff
path: root/games/blockout/Makefile
blob: 4ce3c675a3c456c16ec7389a6a3d4dceea864e2a (plain) (blame)
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
# New ports collection makefile for: games/blockout
# Date created:		06 Aug 2009
# Whom:			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

FETCH_ARGS?=	-pRr
SUB_FILES=	pkg-message

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>