mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= motogt
|
|
PORTVERSION= 20110505
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/motogt/
|
|
DISTNAME= MotoGT-${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= 2D top-viewed motorcycle racing game
|
|
|
|
LIB_DEPENDS= libsfml1-system.so:${PORTSDIR}/devel/sfml1 \
|
|
libpng.so:${PORTSDIR}/graphics/png
|
|
|
|
LICENSE= GPLv2 CCbySA
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_CCbySA= Creative Commons Attribution-ShareAlike
|
|
LICENSE_PERMS_CCbySA= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
LICENSE_FILE_CCbySA= ${WRKSRC}/doc/cc-by-sa.txt
|
|
|
|
USES= zip
|
|
USE_GL= gl
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
MAKEFILE= Makefile.lnx
|
|
MAKE_JOBS_UNSAFE= yes
|
|
SUB_FILES= motogt
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PLIST_FILES= bin/${PORTNAME} libexec/MotoGT.bin
|
|
PORTDATA= *
|
|
|
|
WRKSRC= ${WRKDIR}/MotoGT
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/#include/ s|SFML|&1|' ${WRKSRC}/data/src/editor.cpp ${WRKSRC}/src/*.h
|
|
@${REINPLACE_CMD} -e 's|-lsfml|&1|g' ${WRKSRC}/src/Makefile.lnx
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/MotoGT.bin ${STAGEDIR}${PREFIX}/libexec/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/motogt ${STAGEDIR}${PREFIX}/bin/
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}/
|
|
|
|
.include <bsd.port.mk>
|