freebsd-ports/games/f1spirit-remake/Makefile
Tijl Coosemans ff57a36a58 audio/sdl_sound:
- USES=libtool.
- Strip library.
- Replace patch+reinplace with a single reinplace.
- Remove a patch so we use the upstream library name again.  Bump
  PORTREVISION on all dependent ports.

games/alephone:
- USES=gmake tar:bzip2.
- Remove unneeded PKG_CONFIG variable.
- Staging.
- New LIB_DEPENDS syntax.

games/asc:
- USES=libtool.

games/gltron:
- New LIB_DEPENDS syntax.
- USES=gmake.
- Remove references to PTHREAD_CFLAGS and PTHREAD_LIBS.
- Use option helpers.
- Staging.

lang/kroc: (still BROKEN due to use of "python" command)
- New LIB_DEPENDS syntax.
- USES=pathfix tar:bzip2.
- Staging.
- Replace patches with post-patch.
- Replace MAKE with MAKE_CMD.

lang/smalltalk:
- USES=libtool tar:xz.
- Use BROKEN_sparc64.
2014-05-03 18:58:57 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= f1spirit-remake
PORTVERSION= 1.0
PORTREVISION= 10
CATEGORIES= games
# Original braingames site is really slow
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
http://www.braingames.getput.com/f1spirit/downloads/
DISTNAME= f1spirit-linux
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Remake of classic F1 Spirit racing game
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USES= dos2unix gmake zip
USE_SDL= sdl net image mixer sound
USE_GL= gl glu
DOS2UNIX_GLOB= *.h *.cpp
WRKSRC= "${WRKDIR}/F-1 Spirit"
BUILD_WRKSRC= ${WRKSRC}/sources
PLIST_FILES= bin/f1s
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS
post-extract:
@cd ${WRKSRC}/designs && ${RMDIR} endurance f3 f3000 # empty dirs
post-patch:
@${FIND} ${BUILD_WRKSRC} -name '*.cpp' -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e 's|"demos"|"${DATADIR}/demos"|g; s|designs/|${DATADIR}/&|g; \
s|f1spirit2.cfg|${DATADIR}/&|g; s|graphics/|${DATADIR}/&|g; \
s|sound/|${DATADIR}/&|g; s|tracks/|${DATADIR}/&|g'
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/sources/F1Shttp.cpp
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/f1s ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && ${COPYTREE_SHARE} \
'demos designs f1spirit2.cfg graphics sound tracks' \
${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>