aboutsummaryrefslogtreecommitdiffstats
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
parent9d4d23a9f1ac52b5a5e0d199da5184497aa13292 (diff)
downloadfreebsd-ports-graphics-e94460811306ddeebb9d1ba2ada8e61fcfccb530.tar.gz
freebsd-ports-graphics-e94460811306ddeebb9d1ba2ada8e61fcfccb530.tar.zst
freebsd-ports-graphics-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
-rw-r--r--MOVED1
-rw-r--r--UPDATING8
-rw-r--r--games/Makefile3
-rw-r--r--games/trigger-data/Makefile25
-rw-r--r--games/trigger-data/distinfo (renamed from games/trigger/distinfo)2
-rw-r--r--games/trigger-data/pkg-descr (renamed from games/trigger/pkg-descr)0
-rw-r--r--games/trigger-data/pkg-plist (renamed from games/trigger/pkg-plist)1
-rw-r--r--games/trigger-rally/Makefile42
-rw-r--r--games/trigger-rally/distinfo2
-rw-r--r--games/trigger-rally/pkg-descr7
-rw-r--r--games/trigger/Makefile66
11 files changed, 87 insertions, 70 deletions
diff --git a/MOVED b/MOVED
index 63042e60c0a..407a9fecb8e 100644
--- a/MOVED
+++ b/MOVED
@@ -7426,3 +7426,4 @@ sysutils/rsyslog8-devel|sysutils/rsyslog8|2015-02-13|Has expired: EoL, use sysut
japanese/mozc-additions||2015-02-15|Obsoleted by mozc script in japanese/mozc-server
math/ruby-numru_units|math/rubygem-numru-units|2015-02-22|Long time broken. Please use math/rubygem-numru-units instead
lang/ruby19|lang/ruby20|2015-02-24|Upstream support ended February 23, 2015
+games/trigger|games/trigger-rally|2015-02-26|Follow upstream naming
diff --git a/UPDATING b/UPDATING
index 327418bc998..cf84ad61785 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,14 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20150227:
+ AFFECTS: Users of games/trigger
+ AUTHOR: makc@FreeBSD.org
+
+ games/trigger has been split and renamed to games/trigger-rally
+ and games/trigger-data ports. Deinstall previous version
+ before upgrading.
+
20150224:
AFFECTS: Users of devel/qt4-linguist
AUTHOR: makc@FreeBSD.org
diff --git a/games/Makefile b/games/Makefile
index 2badfeedbae..731d2653e92 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -966,7 +966,8 @@
SUBDIR += traindirector
SUBDIR += traingame
SUBDIR += tremulous
- SUBDIR += trigger
+ SUBDIR += trigger-data
+ SUBDIR += trigger-rally
SUBDIR += trimines
SUBDIR += triplane
SUBDIR += trojka
diff --git a/games/trigger-data/Makefile b/games/trigger-data/Makefile
new file mode 100644
index 00000000000..934c49e40b3
--- /dev/null
+++ b/games/trigger-data/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= trigger-data
+PORTVERSION= 0.6.0
+CATEGORIES= games
+MASTER_SITES= SF/trigger-rally/trigger-rally/trigger-${PORTVERSION}
+DISTNAME= trigger-rally-${PORTVERSION}-data
+
+MAINTAINER= makc@FreeBSD.org
+COMMENT= Data files for trigger-rally
+
+USES= tar:bzip2
+
+DATADIR= ${PREFIX}/share/trigger-rally
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+do-install:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+# Avoid conflict with trigger-rally
+ @${RM} -f ${STAGEDIR}${DATADIR}/COPYING* \
+ ${STAGEDIR}${DATADIR}/README*
+
+.include <bsd.port.mk>
diff --git a/games/trigger/distinfo b/games/trigger-data/distinfo
index 9d160df64b2..5a0d8bdf328 100644
--- a/games/trigger/distinfo
+++ b/games/trigger-data/distinfo
@@ -1,4 +1,2 @@
-SHA256 (trigger-rally-0.6.0-src.tar.bz2) = dc818f359fff71a8ba5e147886f233cca6478e5b007ef0a38a2974cca855a662
-SIZE (trigger-rally-0.6.0-src.tar.bz2) = 333977
SHA256 (trigger-rally-0.6.0-data.tar.bz2) = 9ec81472051c890eb2c69e3036299059c7ae82fe445fd4c210c25764f6733598
SIZE (trigger-rally-0.6.0-data.tar.bz2) = 21204146
diff --git a/games/trigger/pkg-descr b/games/trigger-data/pkg-descr
index d1526b283ce..d1526b283ce 100644
--- a/games/trigger/pkg-descr
+++ b/games/trigger-data/pkg-descr
diff --git a/games/trigger/pkg-plist b/games/trigger-data/pkg-plist
index b6a0e10737e..4ea225f98b3 100644
--- a/games/trigger/pkg-plist
+++ b/games/trigger-data/pkg-plist
@@ -1,4 +1,3 @@
-bin/trigger
%%DATADIR%%/events/triggercup/bigjump/colormap.jpg
%%DATADIR%%/events/triggercup/bigjump/foliagemap.png
%%DATADIR%%/events/triggercup/bigjump/heightmap.png
diff --git a/games/trigger-rally/Makefile b/games/trigger-rally/Makefile
new file mode 100644
index 00000000000..49e2edeaeee
--- /dev/null
+++ b/games/trigger-rally/Makefile
@@ -0,0 +1,42 @@
+# Created by: Jean-Yves Lefort <jylefort@brutele.be>
+# $FreeBSD$
+
+PORTNAME= trigger-rally
+PORTVERSION= 0.6.0
+PORTREVISION= 4
+CATEGORIES= games
+MASTER_SITES= SF/trigger-rally/trigger-rally/trigger-${PORTVERSION}
+DISTVERSIONSUFFIX= -src
+
+MAINTAINER= makc@FreeBSD.org
+COMMENT= Rally car racing game
+
+BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
+LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs
+RUN_DEPENDS= ${DATADIR}/trigger.config.defs:${PORTSDIR}/games/trigger-data
+
+USES= openal:al,alut tar:bzip2
+USE_SDL= sdl image
+USE_GL= glu
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --datadir=${DATADIR} \
+ --with-libAlut=${LOCALBASE} \
+ --with-libPhysFS=${LOCALBASE}
+
+DESKTOP_ENTRIES="Trigger" "" "" \
+ "trigger" "" false
+
+PLIST_FILES= bin/trigger
+PORTDOCS= README-stereo.txt README.txt
+
+OPTIONS_DEFINE= DOCS
+
+do-build:
+ @cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/trigger ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/games/trigger-rally/distinfo b/games/trigger-rally/distinfo
new file mode 100644
index 00000000000..40d261c58c8
--- /dev/null
+++ b/games/trigger-rally/distinfo
@@ -0,0 +1,2 @@
+SHA256 (trigger-rally-0.6.0-src.tar.bz2) = dc818f359fff71a8ba5e147886f233cca6478e5b007ef0a38a2974cca855a662
+SIZE (trigger-rally-0.6.0-src.tar.bz2) = 333977
diff --git a/games/trigger-rally/pkg-descr b/games/trigger-rally/pkg-descr
new file mode 100644
index 00000000000..d1526b283ce
--- /dev/null
+++ b/games/trigger-rally/pkg-descr
@@ -0,0 +1,7 @@
+Trigger is a free rally car racing game. Fun for all the family! You
+race a sequence of 6 courses, with increasing levels of difficulty.
+
+Trigger is highly customisable, and it's easy to add new levels and
+vehicles.
+
+WWW: http://trigger-rally.sourceforge.net
diff --git a/games/trigger/Makefile b/games/trigger/Makefile
deleted file mode 100644
index 824b5b672d8..00000000000
--- 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>