freebsd-ports/games/pipenightdreams/Makefile
2003-02-22 17:14:31 +00:00

38 lines
1009 B
Makefile

# 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
CATEGORIES= games
MASTER_SITES= http://www.libsdl.org/projects/pipenightdreams/packages/
MAINTAINER= markp@FreeBSD.org
COMMENT= A puzzle game similar to PipeMania
LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
USE_REINPLACE= yes
MAN6= pipenightdreams.6
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.mk>