# Created by: nbm # $FreeBSD$ PORTNAME= criticalmass PORTVERSION= 1.0.0 PORTREVISION= 11 PORTEPOCH= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/Critical%20Mass/${PORTVERSION} DISTNAME= CriticalMass-${PORTVERSION} MAINTAINER= acm@FreeBSD.org COMMENT= SDL/OpenGL space shoot\'em up game LIB_DEPENDS= png15:${PORTSDIR}/graphics/png CONFLICTS= shaaft-[0-9]* USE_BZIP2= yes USE_SDL= image mixer sdl USE_GL= gl USE_XORG= x11 GNU_CONFIGURE= yes CFLAGS= -I${LOCALBASE}/include/libpng15 CONFIGURE_ARGS= --disable-optimize MAN6= critter.6 PLIST_FILES= bin/Packer \ bin/critter \ share/Critical_Mass/lg-criti.xm \ share/Critical_Mass/resource.dat PLIST_DIRS= share/Critical_Mass NO_STAGE= yes .include post-patch: @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ 's|SDL/SDL|SDL|g' @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \ s|^CXXFLAGS|#CXXFLAGS|g ; \ s|/usr/X11R6|${LOCALBASE}|g ; \ s|-lSDL | |g ; \ s|-lpng12|-lpng|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|and def|\&\& def|g' ${WRKSRC}/utils/OSName.hpp .include