aboutsummaryrefslogtreecommitdiffstats
path: root/games/jfsw/Makefile
blob: 1cf0be56e38fddf3e2773548a0de7123f6a17610 (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
54
55
56
57
58
59
60
61
62
# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
# $FreeBSD$

PORTNAME=   jfsw
PORTVERSION=    20131019
PORTREVISION=   2
CATEGORIES= games

MAINTAINER= martymac@FreeBSD.org
COMMENT=    Jonathon Fowler's Shadow Warrior Port

LICENSE=    GPLv2 BuildLic
LICENSE_COMB=   multi
LICENSE_NAME_BuildLic=  Build source code license
LICENSE_FILE_BuildLic=  ${WRKSRC}/jfbuild/buildlic.txt
LICENSE_PERMS_BuildLic= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept

LIB_DEPENDS=    libvorbisfile.so:audio/libvorbis

USE_GITHUB= yes
GH_ACCOUNT= jonof
GH_PROJECT= jfbuild:build jfaudiolib:audio jfmact:mact
GH_TAGNAME= 5cff6a81708ff053b569ba4400fba073afe207fe \
        a73583184aca466cebde152db2ce1020591d7049:build \
        a39ccf5e95961952d27754a255940be1d76ce85e:audio \
        b1071da75cd465f59257240e5dbc60a014580190:mact
GH_SUBDIR=  jfbuild:build jfaudiolib:audio jfmact:mact

USE_GL=     gl
USE_GNOME=  gtk20
USE_SDL=    mixer sdl

USES=       alias dos2unix gmake pkgconfig:build
DOS2UNIX_REGEX= .*(\.(c|h)|Makefile)(\.deps)?

NO_CDROM=   Must be distributed only through the Internet and free of charge

MAKE_ENV+=  DATADIR="${DATADIR}" \
        NOASM=1 \
        LINKED_GTK=1

SUB_FILES=  pkg-message

PORTDOCS=   readme.txt releasenotes.html

post-patch:
    @${REINPLACE_CMD} 's|/usr/X11R6|${LOCALBASE}|' \
        ${WRKSRC}/jfbuild/Makefile
    @${REINPLACE_CMD} 's|sdl-config|${SDL_CONFIG}|' \
        ${WRKSRC}/Makefile \
        ${WRKSRC}/jfbuild/Makefile.shared
    @${REINPLACE_CMD} 's|/usr|${LOCALBASE}|' \
        ${WRKSRC}/jfaudiolib/src/driver_fluidsynth.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/sw ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/build ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-build
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
    ${MKDIR} ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>