# New ports collection makefile for: blinkensisters # Date created: 26 Mar 2006 # Whom: Dmitry Marakasov # # $FreeBSD$ # PORTNAME= blinkensisters PORTVERSION= 0.5 PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF DISTNAME= LostPixels-${PORTVERSION}-source MAINTAINER= amdmi3@amdmi3.ru COMMENT= Parallax-style 2D scrolling platform game BUILD_DEPENDS= ${CMAKE}:${PORTSDIR}/devel/cmake CMAKE?= ${LOCALBASE}/bin/cmake USE_SDL= sdl image ttf WRKSRC= ${WRKDIR}//blinkensisters/lostpixels/game/software CMAKE_DEFS= -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_C_FLAGS:STRING="${CFLAGS} -I${LOCALBASE}/include" \ -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} -I${LOCALBASE}/include" \ -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} OPTIONS= SOUND "Build with souns support" on \ NETWORK "Build with network support" on .include post-patch: .if defined(WITHOUT_SOUND) @${REINPLACE_CMD} -e '/FIND_PACKAGE.*SDL_mixer/ d' \ ${WRKSRC}/CMakeLists.txt .endif .if defined(WITHOUT_NETWORK) @${REINPLACE_CMD} -e '/FIND_PACKAGE.*SDL_net/ d' \ ${WRKSRC}/CMakeLists.txt .endif .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e '/^INSTALL.*doc/ d' ${WRKSRC}/CMakeLists.txt .endif @${REINPLACE_CMD} -e 's|share/blinkensisters|${DATADIR:S,${PREFIX}/,,}|; \ s|share/doc/blinkensisters|${DOCSDIR:S,${PREFIX}/,,}|' \ ${WRKSRC}/CMakeLists.txt do-configure: cd ${WRKSRC} && ${CMAKE} . ${CMAKE_DEFS} .include