aboutsummaryrefslogtreecommitdiffstats
path: root/games/burgerspace/Makefile
blob: 776bc4ba148a3762f44893a2f3bbcec07b698e51 (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
# New ports collection makefile for:    burgerspace
# Date created:         Apr 13, 2001
# Whom:             Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#

PORTNAME=   burgerspace
PORTVERSION=    1.5
CATEGORIES= games
MASTER_SITES=   http://sites.netscape.net/sarrazip/

MAINTAINER= mark@kyne.com.au

LIB_DEPENDS=    gengameng.3:${PORTSDIR}/devel/gengameng \
        gnugetopt.1:${PORTSDIR}/devel/libgnugetopt

USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
SDL_CONFIG?=    ${LOCALBASE}/bin/sdl11-config
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lgnugetopt"
CONFIGURE_ARGS+=    --with-gengameng-prefix="${X11BASE}"

MAN6=   burgerspace.6

pre-patch:
    ${PERL} -pi -e "s|sdl-config|${SDL_CONFIG}|g; \
        s|include/SDL/|include/SDL11/|g;" ${WRKSRC}/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/burgerspace ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/burgerspace.6 ${PREFIX}/man/man6

.include <bsd.port.mk>