Update games/scourge to version 0.21.1_9
[dports.git] / games / scourge / Makefile
1 # Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2 # $FreeBSD$
3
4 PORTNAME=       scourge
5 PORTVERSION=    0.21.1
6 PORTREVISION=   9
7 CATEGORIES=     games
8 MASTER_SITES=   SF
9 DISTNAME=       ${PORTNAME}-${PORTVERSION:S/$/.src/}
10 DIST_SUBDIR=    ${PORTNAME}
11
12 MAINTAINER=     acm@FreeBSD.org
13 COMMENT=        Rogue-like game
14
15 LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2
16 RUN_DEPENDS=    ${DATADIR}/config/scourge.cfg:${PORTSDIR}/games/scourge-data
17
18 USE_AUTOTOOLS=  autoconf:env automake:env
19 USE_GL=         gl
20 USE_SDL=        sdl image mixer net ttf
21 USE_GMAKE=      yes
22 GNU_CONFIGURE=  yes
23 CPPFLAGS+=      -I${LOCALBASE}/include ${PTHREAD_LIBS}
24 LDFLAGS+=       -L${LOCALBASE}/lib
25
26 CONFIGURE_ARGS= --with-data-dir=${DATADIR}
27
28 SUB_FILES=      pkg-message
29 PLIST_FILES=    bin/${PORTNAME}
30 WRKSRC=         ${WRKDIR}/${PORTNAME}
31
32 OPTIONS_DEFINE= DEBUG
33
34 NO_STAGE=       yes
35 .include <bsd.port.options.mk>
36
37 .if ${PORT_OPTIONS:MDEBUG}
38 CONFIGURE_ARGS+=        --enable-debug
39 .endif
40
41 post-patch:
42         @${REINPLACE_CMD} -e 's|GLvoid|void|g' ${WRKSRC}/src/sdlhandler.cpp ${WRKSRC}/src/sdlhandler.h
43
44 pre-configure:
45         @cd ${WRKSRC} && ${AUTORECONF} -i
46
47 do-install:
48         @${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
49
50 post-install:
51         @${CAT} ${PKGMESSAGE}
52
53 .include <bsd.port.mk>