mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cultivation
|
|
PORTVERSION= 8
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
|
|
DISTNAME= Cultivation_${PORTVERSION}_UnixSource
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Unique game of conflict and cooperation in a gardening community
|
|
|
|
LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio
|
|
|
|
USE_XORG= x11 xi xext xmu
|
|
USE_GL= glut
|
|
USE_GMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/game2
|
|
BUILD_WRKSRC= ${WRKSRC}/gameSource
|
|
MAKE_ARGS= CXX=${CXX}
|
|
|
|
PORTDOCS= changeLog.txt how_to_play.txt
|
|
|
|
NO_STAGE= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.common \
|
|
../minorGems/build/Makefile.minorGems gameSource/Makefile.all \
|
|
../minorGems/build/Makefile.minorGems_targets > gameSource/Makefile
|
|
@${REINPLACE_CMD} -e 's|font\.tga|${DATADIR}/font.tga|; \
|
|
s|language\.txt|${DATADIR}/language.txt|; \
|
|
s|features\.txt|${DATADIR}/features.txt|' \
|
|
${BUILD_WRKSRC}/game.cpp
|
|
@${REINPLACE_CMD} -e 's|"languages"|"${DATADIR}/languages"|' \
|
|
${WRKSRC}/../minorGems/util/TranslationManager.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Cultivation ${PREFIX}/bin
|
|
${MKDIR} ${DATADIR}/languages
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/font.tga ${DATADIR}
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/features.txt ${DATADIR}
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/language.txt ${DATADIR}
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/languages/* ${DATADIR}/languages
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/documentation/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|