aboutsummaryrefslogtreecommitdiffstats
path: root/games/duel/Makefile
blob: 9eea06d3a62bcdaeb68dece971e791cee2a36886 (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
# New ports collection makefile for:    duel
# Date created:             10 Aug 2005
# Whom:                 Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#

PORTNAME=   duel
PORTVERSION=    0.98
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
DISTNAME=   lin${PORTNAME}

MAINTAINER= alepulver@FreeBSD.org
COMMENT=    An overhead, OpenGL space shooter

BUILD_DEPENDS=  ${X11BASE}/lib/libftgl.a:${PORTSDIR}/graphics/ftgl
LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2

USE_BZIP2=  yes
USE_GL=     yes
USE_SDL=    sdl
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="`${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${X11BASE}/include -I${X11BASE}/include/FTGL" \
        LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/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 ${PREFIX}/bin/${PORTNAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/libexec
    ${MKDIR} ${DATADIR}
    ${CP} -R ${WRKSRC}/runDir/* ${DATADIR}
    ${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
    ${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}

.include <bsd.port.mk>