aboutsummaryrefslogtreecommitdiffstats
path: root/games/trigger/Makefile
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2015-02-27 22:49:23 +0800
committermakc <makc@FreeBSD.org>2015-02-27 22:49:23 +0800
commite94460811306ddeebb9d1ba2ada8e61fcfccb530 (patch)
treec74b4e5a8764b146c778be8c6f9adfa9475bd12c /games/trigger/Makefile
parent9d4d23a9f1ac52b5a5e0d199da5184497aa13292 (diff)
downloadfreebsd-ports-gnome-e94460811306ddeebb9d1ba2ada8e61fcfccb530.tar.gz
freebsd-ports-gnome-e94460811306ddeebb9d1ba2ada8e61fcfccb530.tar.zst
freebsd-ports-gnome-e94460811306ddeebb9d1ba2ada8e61fcfccb530.zip
Rename games/trigger to games/trigger-rally (follow upstream naming) and
create separate port for game data. games/trigger-rally: - Pass required bits via arguments instead of patching configure script - Clean up Makefile - Stop using plist in favour one line PLIST_FILES games/trigger-data: - Mark port as architecture neutral
Diffstat (limited to 'games/trigger/Makefile')
-rw-r--r--games/trigger/Makefile66
1 files changed, 0 insertions, 66 deletions
diff --git a/games/trigger/Makefile b/games/trigger/Makefile
deleted file mode 100644
index 824b5b672d8d..000000000000
--- a/games/trigger/Makefile
+++ /dev/null
@@ -1,66 +0,0 @@
-# Created by: Jean-Yves Lefort <jylefort@brutele.be>
-# $FreeBSD$
-
-PORTNAME= trigger
-PORTVERSION= 0.6.0
-PORTREVISION= 3
-CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}-rally/${PORTNAME}-rally/${PORTNAME}-${PORTVERSION}
-DISTFILES= trigger-rally-${PORTVERSION}-src${EXTRACT_SUFX} \
- trigger-rally-${DATAVERSION}-data${EXTRACT_SUFX}
-
-MAINTAINER= makc@FreeBSD.org
-COMMENT= Rally car racing game
-
-BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
-LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs
-
-USES= openal:al,alut tar:bzip2
-USE_SDL= sdl image
-USE_GL= glu
-GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-
-WRKSRC= ${WRKDIR}/trigger-rally-${PORTVERSION}-src
-DATASRC= ${WRKDIR}/trigger-rally-${DATAVERSION}-data
-
-DATAVERSION= 0.6.0
-
-DESKTOP_ENTRIES="Trigger" "${COMMENT}" "" \
- "trigger" "" false
-
-PORTDOCS= README-stereo.txt README.txt
-
-OPTIONS_DEFINE= DOCS
-
-.include <bsd.port.options.mk>
-
-post-patch:
- @${REINPLACE_CMD} -e 's|SDL/||' \
- ${WRKSRC}/src/trigger/main.cpp \
- ${WRKSRC}/src/pengine/texture.cpp
- @${REINPLACE_CMD} -e 's|\$${prefix}/share|${DATADIR}|; \
- s|-lopenal|& -lalut|g' \
- ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/Jamrules
-
-do-build:
- @cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam
-
-do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/trigger ${STAGEDIR}${PREFIX}/bin
-
- ${MKDIR} ${STAGEDIR}${DATADIR}
-.for d in events fonts maps plugins sounds textures vehicles
- cd ${DATASRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}
-.endfor
- ${INSTALL_DATA} ${DATASRC}/trigger.config.defs ${STAGEDIR}${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
-
-.include <bsd.port.mk>