402062128c
PR: 117076 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
# New ports collection makefile for: blinkensisters
|
|
# Date created: 26 Mar 2006
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= blinkensisters
|
|
PORTVERSION= 0.5
|
|
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 <bsd.port.pre.mk>
|
|
|
|
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 <bsd.port.post.mk>
|