View | Details | Raw Unified | Return to bug 217513
Collapse All | Expand All

(-)Makefile (-22 / +29 lines)
Lines 2-41 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	trigger-rally
4
PORTNAME=	trigger-rally
5
PORTVERSION=	0.6.1
5
PORTVERSION=	0.6.5
6
DISTVERSIONSUFFIX=	-src
7
CATEGORIES=	games
6
CATEGORIES=	games
8
MASTER_SITES=	SF/trigger-rally/trigger-${PORTVERSION}
7
MASTER_SITES=	SF/trigger-rally/trigger-${PORTVERSION}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	alfix86@gmail.com
11
COMMENT=	Rally car racing game
10
COMMENT=	Rally car racing game
12
11
13
BUILD_DEPENDS=	jam:devel/jam
12
LICENSE=	GPLv2
13
14
LIB_DEPENDS=	libphysfs.so:devel/physfs
14
LIB_DEPENDS=	libphysfs.so:devel/physfs
15
RUN_DEPENDS=	${LOCALBASE}/${DATADIR_REL}/trigger.config.defs:games/trigger-data
15
LIB_DEPENDS+=	libalut.so:audio/freealut
16
16
17
USES=		openal:al,alut tar:bzip2
17
WRKSRC_SUBDIR=	src
18
USE_SDL=	sdl image
18
USES=		gmake openal:al,alut
19
USE_GL=		glu
19
USE_SDL=	sdl2 image2
20
GNU_CONFIGURE=	yes
20
USE_GL=		glu gl glew
21
CONFIGURE_ARGS=	--datadir=${DATADIR} \
21
MAKEFILE=	GNUmakefile
22
		--with-libAlut=${LOCALBASE} \
22
ALL_TARGET=	build
23
		--with-libPhysFS=${LOCALBASE}
24
23
24
WORKINGSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
25
DATADIR=	${PREFIX}/share/games/trigger-rally
26
25
DESKTOP_ENTRIES="Trigger" "" "trigger" \
27
DESKTOP_ENTRIES="Trigger" "" "trigger" \
26
		"trigger" "" false
28
		"trigger-rally" "" false
27
29
28
PLIST_FILES=	bin/trigger
30
PORTDOCS=	README-stereo.txt README.txt DATA_AUTHORS.txt
29
PORTDOCS=	README-stereo.txt README.txt
30
31
31
OPTIONS_DEFINE=	DOCS
32
33
do-build:
34
	@cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam
35
36
do-install:
32
do-install:
37
	${INSTALL_PROGRAM} ${WRKSRC}/trigger ${STAGEDIR}${PREFIX}/bin
33
	${INSTALL_PROGRAM} ${WORKINGSRC}/bin/trigger-rally ${STAGEDIR}${PREFIX}/bin
34
	${MKDIR} ${STAGEDIR}${DATADIR}
35
	cd ${WORKINGSRC}/bin && ${CP} trigger-rally.config.defs ${STAGEDIR}${DATADIR}
38
	${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	${MKDIR} ${STAGEDIR}${DOCSDIR}
39
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
37
	cd ${WORKINGSRC}/doc && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
38
	cd ${WORKINGSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
39
.for i in 16 22 24 32 36 48 64 72 96 128 192 256
40
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/ && \
41
	${MV} ${STAGEDIR}${DATADIR}/icon/trigger-${i}.png \
42
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/trigger.png
43
.endfor
44
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/ && \
45
	${MV} ${STAGEDIR}${DATADIR}/icon/trigger-rally-icons.svg \
46
		${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/trigger-rally-icons.svg
40
47
41
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (trigger-rally-0.6.1-src.tar.bz2) = 5ac2d2cbaa5aa472abd99e76aefa2cec3389accbfe79e441af94f15568336bbb
1
TIMESTAMP = 1488474378
2
SIZE (trigger-rally-0.6.1-src.tar.bz2) = 368032
2
SHA256 (trigger-rally-0.6.5.tar.gz) = f2db8784d8c0dd51c7a2812a9d294db05bb2e9df992038b3a232060dba26ba24
3
SIZE (trigger-rally-0.6.5.tar.gz) = 82290843
(-)files/patch-GNUmakefile (+17 lines)
Line 0 Link Here
1
--- GNUmakefile.orig	2016-11-05 17:27:10 UTC
2
+++ GNUmakefile
3
@@ -125,7 +125,7 @@ $(TR_EXEFILE): $(OBJFILES)
4
 		printf "\t%s\n" $$file; \
5
 		done;
6
 	@printf "\t-> %s\n" $@
7
-	@$(CXX) -o $@ $(OBJFILES) $(LDFLAGS)
8
+	@$(CXX) `sdl2-config --libs`  -o $@ $(OBJFILES) $(LDFLAGS)
9
 	@printf "strip\t%s\n" $@
10
 	@strip $@
11
 
12
@@ -155,4 +155,4 @@ clean:
13
 #
14
 %.o: %.cpp GNUmakefile
15
 	@printf "%s\t%s -> %s\n" $(CXX) $< $@
16
-	@$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MMD -MP -c $< -o $@
17
+	@$(CXX) `sdl2-config --cflags` $(CXXFLAGS) $(CPPFLAGS) -MMD -MP -c $< -o $@
(-)files/patch-Trigger_main.cpp (+11 lines)
Line 0 Link Here
1
--- Trigger/main.cpp.orig	2017-03-02 19:21:27 UTC
2
+++ Trigger/main.cpp
3
@@ -469,7 +469,7 @@ void MainApp::loadConfig()
4
   if (!PHYSFS_exists(cfgfilename.c_str())) {
5
 #ifdef UNIX
6
     const std::vector<std::string> cfghidingplaces {
7
-        "/usr/share/games/trigger-rally/"
8
+        "/usr/local/share/games/trigger-rally/"
9
     };
10
 
11
     for (const std::string &cfgpath: cfghidingplaces)
(-)pkg-plist (+23 lines)
Line 0 Link Here
1
bin/trigger-rally
2
%%PORTDOCS%%%%DOCSDIR%%/DATA_AUTHORS.txt
3
%%PORTDOCS%%%%DOCSDIR%%/README-stereo.txt
4
%%PORTDOCS%%%%DOCSDIR%%/README.txt
5
%%DATADIR%%/data.md5
6
%%DATADIR%%/data.zip
7
%%DATADIR%%/icon/trigger-rally-win.ico
8
%%DATADIR%%/trigger-rally.config.defs
9
share/icons/hicolor/128x128/apps/trigger.png
10
share/icons/hicolor/16x16/apps/trigger.png
11
share/icons/hicolor/192x192/apps/trigger.png
12
share/icons/hicolor/22x22/apps/trigger.png
13
share/icons/hicolor/24x24/apps/trigger.png
14
share/icons/hicolor/256x256/apps/trigger.png
15
share/icons/hicolor/32x32/apps/trigger.png
16
share/icons/hicolor/36x36/apps/trigger.png
17
share/icons/hicolor/48x48/apps/trigger.png
18
share/icons/hicolor/64x64/apps/trigger.png
19
share/icons/hicolor/72x72/apps/trigger.png
20
share/icons/hicolor/96x96/apps/trigger.png
21
share/icons/hicolor/scalable/apps/trigger-rally-icons.svg
22
@dir %%DATADIR%%/defplayers
23
@dir %%DATADIR%%/plugins

Return to bug 217513