aboutsummaryrefslogtreecommitdiffstats
path: root/games/avp-demo/Makefile
blob: fd5f724176546224f2a2ad867b9cf112cfbeae2f (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
52
53
# Created by: Stas Timokhin <devel@stasyan.com>
# $FreeBSD$

PORTNAME=   avp-demo
PORTVERSION=    0.1
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://www.stasyan.com/devel/distfiles/
DISTFILES=  avp_git_20090911.tar.gz avp_data_a03.tar.gz

MAINTAINER= devel@stasyan.com
COMMENT=    Aliens versus predator unofficial port from icculus.org

USE_SDL=    mixer sdl
USES=       gmake openal
USE_GL=     gl

WRKSRC=     ${WRKDIR}
BUILD_WRKSRC=   ${WRKDIR}/avp_git

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if !(${ARCH} == i386 || ${ARCH} == pc98)
BROKEN=     does not compile
.endif

do-install:
#Install program and doc
        ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/avp ${PREFIX}/bin/avp
.if !defined(NOPORTDOCS)
        ${MKDIR} ${DOCSDIR}
        ${INSTALL_DATA} ${BUILD_WRKSRC}/LICENSE ${DOCSDIR}/LICENSE
        ${INSTALL_DATA} ${BUILD_WRKSRC}/README ${DOCSDIR}/README
.endif
#Install data files from Alien demo
        ${MKDIR} ${DATADIR}
        ${MKDIR} ${DATADIR}/avp_huds
        ${MKDIR} ${DATADIR}/avp_rifs
        ${MKDIR} ${DATADIR}/fastfile
.       for f in alien.rif alien_hud.rif hnpc_civvie.rif hnpcmarine.rif sentry.rif
            ${INSTALL_DATA} ${WRKDIR}/avp/avp_huds/${f} ${DATADIR}/avp_huds/${f}
.       endfor
        ${INSTALL_DATA} ${WRKDIR}/avp/avp_rifs/temple.rif ${DATADIR}/avp_rifs/temple.rif
.       for f in common.ffl ffinfo.txt marsound.dat snd15.ffl snd30.ffl tex1.ffl tex15.ffl tex26.ffl tex27.ffl tex30.ffl tex32.ffl tex34.ffl tex38.ffl tex40.ffl tex43.ffl snd27.ffl
            ${INSTALL_DATA} ${WRKDIR}/avp/fastfile/${f} ${DATADIR}/fastfile/${f}
.       endfor
        ${INSTALL_DATA} ${WRKDIR}/avp/language.txt ${DATADIR}/language.txt

post-install:
        ${SED} -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" ${PKGMESSAGE};

.include <bsd.port.post.mk>