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

PORTNAME=   pipenightdreams
PORTVERSION=    0.10.0
PORTREVISION=   6
CATEGORIES= games
MASTER_SITES=   http://www.libsdl.org/projects/pipenightdreams/packages/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A puzzle game similar to PipeMania

USE_SDL=    image sdl
GNU_CONFIGURE=  yes
USE_BZIP2=  yes
USE_GMAKE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include"

MAN6=       pipenightdreams.6

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g; \
        s|SDL_LIBSS|SDL_LIBS|g; s|datadir/games|datadir|;' \
        ${WRKSRC}/configure
    ${FIND} ${WRKSRC} -name Makefile.in | \
        ${XARGS} ${REINPLACE_CMD} 's|/games/|/|g; \
            s/^pipenightdreams_LDADD.+//g;'
    ${REINPLACE_CMD} "s|/usr/share/games|${LOCALBASE}/share|g" \
        ${WRKSRC}/src/main.cpp

.include <bsd.port.post.mk>