aboutsummaryrefslogtreecommitdiffstats
path: root/games/duel/Makefile
blob: d8573bd4586b038e28db685171d351cb7a543c4a (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
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   duel
PORTVERSION=    0.98
PORTREVISION=   8
CATEGORIES= games
MASTER_SITES=   LOCAL/alepulver
DISTNAME=   lin${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Overhead, OpenGL space shooter

LICENSE=    GPLv2 # or later
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2 \
        libftgl.so:${PORTSDIR}/graphics/ftgl

USES=       tar:bzip2 libtool
USE_GL=     gl
USE_SDL=    sdl
GNU_CONFIGURE=  yes
CPPFLAGS+=  `${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${LOCALBASE}/include -I${LOCALBASE}/include/FTGL
LDFLAGS+=   `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib
WRKSRC=     ${WRKDIR}/${PORTNAME}

SUB_FILES=  ${PORTNAME}-sh

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${CP} -R ${WRKSRC}/runDir/* ${STAGEDIR}${DATADIR}
    ${FIND} ${STAGEDIR}${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
    ${FIND} ${STAGEDIR}${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}

.include <bsd.port.mk>