aboutsummaryrefslogtreecommitdiffstats
path: root/games/hohlin/Makefile
blob: ec39811a1191039b9116fcf3e55d0b827e97a442 (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
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD$

PORTNAME=   hohlin
PORTVERSION=    1.01
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   http://retrospec.sgn.net/games/hoh/bin/
PKGNAMEPREFIX=  linux-
DISTNAME=   ${PORTNAME}-${SHORTPORTVERSION}

MAINTAINER= jmohacsi@bsd.hu
COMMENT=    Remake of the classic spectrum game Head over Heels

WRKSRC=     ${WRKDIR}/hoh-install-${PORTVERSION}/

USES=   tar:bzip2
USE_LINUX=  yes
USE_LINUX_APPS= xorglibs
ONLY_FOR_ARCHS= i386 amd64
SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)/\1\2/}

OPTIONS_DEFINE= DOCS

do-build:
    ${BRANDELF} -t Linux ${WRKSRC}/data/HoH

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/data/HoH ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/data/HoHOriginal.dat ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DATADIR}/Sound
    ${INSTALL_DATA} ${WRKSRC}/data/Sound/Sound.dat ${STAGEDIR}${DATADIR}/Sound/
    ${INSTALL_DATA} ${WRKSRC}/data/Sound/Game.ogg ${STAGEDIR}${DATADIR}/Sound/
    ${INSTALL_DATA} ${WRKSRC}/data/Sound/Theme.ogg ${STAGEDIR}${DATADIR}/Sound/
    ${SED} -e 's:%%DATADIR%%:${DATADIR}:g' ${FILESDIR}/hoh.sh > \
        ${STAGEDIR}${PREFIX}/bin/HoH
    ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/HoH
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${CP} -R ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>