freebsd-ports/games/pipenightdreams/Makefile

44 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: pipenightdreams
# Date created: Apr 12, 2001
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= pipenightdreams
2002-06-04 13:24:24 +02:00
PORTVERSION= 0.10.0
CATEGORIES= games
2001-08-29 13:18:40 +02:00
MASTER_SITES= http://www.libsdl.org/projects/pipenightdreams/packages/
MAINTAINER= markp@FreeBSD.org
2003-02-22 18:14:31 +01:00
COMMENT= A puzzle game similar to PipeMania
LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image
2003-05-18 11:55:25 +02:00
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile (bad C++ code)"
.endif
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
GNU_CONFIGURE= yes
2001-08-29 13:18:40 +02:00
USE_BZIP2= yes
USE_GMAKE= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
USE_REINPLACE= yes
2001-11-10 15:07:19 +01:00
MAN6= pipenightdreams.6
post-patch:
${REINPLACE_CMD} 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g; \
2001-11-10 15:07:19 +01:00
s|SDL_LIBSS|SDL_LIBS|g; s|datadir/games|datadir|;' \
${WRKSRC}/configure
${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} 's|/games/|/|g; \
2001-08-29 13:18:40 +02:00
s/^pipenightdreams_LDADD.+//g;'
${REINPLACE_CMD} "s|/usr/share/games|${LOCALBASE}/share|g" \
${WRKSRC}/src/main.cpp
2003-05-18 11:55:25 +02:00
.include <bsd.port.post.mk>