aboutsummaryrefslogtreecommitdiffstats
path: root/games/freedroid/Makefile
blob: 26a3ae7b98f8e768ec39e098086480e31f2ba8e0 (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: criticalmass
# Date created:     15 Sep 2003
# Whom:         benlutz@datacomm.ch
#
# $FreeBSD$
#

PORTNAME=   freedroid
PORTVERSION=    1.0.2
PORTREVISION=   0
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= freedroid

MAINTAINER= benlutz@datacomm.ch
COMMENT=    Freedroid is a clone of the classic game "Paradroid"

LIB_DEPENDS=    SDL-1.1:${PORTSDIR}/devel/sdl12 \
        jpeg:${PORTSDIR}/graphics/jpeg \
        png:${PORTSDIR}/graphics/png \
        SDL_image:${PORTSDIR}/graphics/sdl_image \
        SDL_mixer:${PORTSDIR}/audio/sdl_mixer \
        vorbis:${PORTSDIR}/audio/libvorbis

USE_XLIB=   yes
USE_SDL=    yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ENV=  LDFLAGS="${LDFLAGS} -L${X11BASE}/lib" \
        CPPFLAGS="${CFLAGS} -I${X11BASE}/include"
CONFIGURE_ARGS= --program-transform-name=

MAN6=       freedroid.6

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -e 's#sdl-config#sdl11-config#; s#-lSDL # #;' ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's#mac-osx ##;' ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
    ${REINPLACE_CMD} -e 's#\#include \"mac-osx/getopt\.h\"##;' ${WRKSRC}/src/system.h

.include <bsd.port.post.mk>