mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
9250d94365
It brings bison as a build dependency in case it is set the following way: USES= bison or USES= bison:build it brings bison as a run dependency in case it is set the following way: USES= bison:run it brings bison both as a run and build dependency in case it the set the following way: USES= bison:both While here trim some headers Convert some USE_GNOME= gnomehack to USES= pathfix
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= windstille
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 15
|
|
CATEGORIES= games
|
|
MASTER_SITES= BERLIOS CENKES
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Classic 2D jump-n-shoot game
|
|
|
|
LIB_DEPENDS= physfs.1:${PORTSDIR}/devel/physfs \
|
|
ogg:${PORTSDIR}/audio/libogg \
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis \
|
|
png15:${PORTSDIR}/graphics/png \
|
|
squirrel.0:${PORTSDIR}/lang/squirrel \
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
USE_BZIP2= yes
|
|
USE_SCONS= yes
|
|
USE_OPENAL= al
|
|
USE_GL= glew
|
|
USE_SDL= sdl image
|
|
USES= bison
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
post-extract:
|
|
@${RM} -rf ${WRKSRC}/lib ${WRKSRC}/data/music/*
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC}/src/ && ${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' \
|
|
particles/deform_drawer.cpp windstille_main.cpp objects/shockwave.cpp
|
|
@${REINPLACE_CMD} -e "s|glew|GLEW|;/LIBS/s|'squirrel'|'squirrel', 'sqstdlib'|"\
|
|
${WRKSRC}/src/SConscript
|
|
@${REINPLACE_CMD} -e 's|PHYSFS_getBaseDir()|""|' ${WRKSRC}/src/windstille_main.cpp
|
|
@${REINPLACE_CMD} -e 's|bison|${LOCALBASE}/bin/&|' ${WRKSRC}/tools/SConscript
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|; s|freetype-config|${LOCALBASE}/bin/&|' \
|
|
${WRKSRC}/SConstruct ${WRKSRC}/src/SConscript
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/windstille ${PREFIX}/bin/
|
|
${INSTALL} -d ${DATADIR}/
|
|
@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}/
|
|
|
|
.include <bsd.port.mk>
|