Mon Dec 12 07:08:48 2011 UTC ()
games/orbital_eunuchs_sniper: Fix DragonFly

The makefile and PLIST says that x86_64 platforms will produce a file
called snipe2d.amd64.dynamic, but on DragonFly the file created was
snipe2d.x86_64.dynamic.  The Makefile adjusted accordingly.


(marino)
diff -r1.19 -r1.20 pkgsrc/games/orbital_eunuchs_sniper/Makefile

cvs diff -r1.19 -r1.20 pkgsrc/games/orbital_eunuchs_sniper/Makefile (expand / switch to unified diff)

--- pkgsrc/games/orbital_eunuchs_sniper/Makefile 2011/01/13 13:37:49 1.19
+++ pkgsrc/games/orbital_eunuchs_sniper/Makefile 2011/12/12 07:08:48 1.20
@@ -1,38 +1,40 @@ @@ -1,38 +1,40 @@
1# $NetBSD: Makefile,v 1.19 2011/01/13 13:37:49 wiz Exp $ 1# $NetBSD: Makefile,v 1.20 2011/12/12 07:08:48 marino Exp $
2# 2#
3 3
4DISTNAME= orbital_eunuchs_sniper-1.30 4DISTNAME= orbital_eunuchs_sniper-1.30
5PKGREVISION= 4 5PKGREVISION= 4
6CATEGORIES= games 6CATEGORIES= games
7MASTER_SITES= http://icculus.org/oes/ 7MASTER_SITES= http://icculus.org/oes/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://icculus.org/oes/ 10HOMEPAGE= http://icculus.org/oes/
11COMMENT= Overhead shooting game 11COMMENT= Overhead shooting game
12 12
13GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
14CONFIGURE_ARGS+= --with-games-dir=${PREFIX}/libexec 14CONFIGURE_ARGS+= --with-games-dir=${PREFIX}/libexec
15 15
16INSTALLATION_DIRS= share/doc/orbital_eunuchs_sniper 16INSTALLATION_DIRS= share/doc/orbital_eunuchs_sniper
17PKG_DESTDIR_SUPPORT= user-destdir 17PKG_DESTDIR_SUPPORT= user-destdir
18 18
19USE_LANGUAGES= c c++ 19USE_LANGUAGES= c c++
20REPLACE_INTERPRETER+= bash 20REPLACE_INTERPRETER+= bash
21REPLACE.bash.old= .*/bin/bash 21REPLACE.bash.old= .*/bin/bash
22REPLACE.bash.new= ${SH} 22REPLACE.bash.new= ${SH}
23REPLACE_FILES.bash= src/snipe2d.in 23REPLACE_FILES.bash= src/snipe2d.in
24 24
25.if ${MACHINE_ARCH} == "x86_64" 25.include "../../mk/bsd.prefs.mk"
 26
 27.if ${MACHINE_ARCH} == "x86_64" && ${OPSYS} != "DragonFly"
26PLIST_SUBST+= CPU=amd64 28PLIST_SUBST+= CPU=amd64
27.else 29.else
28PLIST_SUBST+= CPU=${MACHINE_ARCH} 30PLIST_SUBST+= CPU=${MACHINE_ARCH}
29.endif 31.endif
30 32
31post-install: 33post-install:
32 ${INSTALL_DATA} ${WRKSRC}/README \ 34 ${INSTALL_DATA} ${WRKSRC}/README \
33 ${DESTDIR}${PREFIX}/share/doc/orbital_eunuchs_sniper 35 ${DESTDIR}${PREFIX}/share/doc/orbital_eunuchs_sniper
34 ${INSTALL_DATA} ${WRKSRC}/readme.txt \ 36 ${INSTALL_DATA} ${WRKSRC}/readme.txt \
35 ${DESTDIR}${PREFIX}/share/doc/orbital_eunuchs_sniper 37 ${DESTDIR}${PREFIX}/share/doc/orbital_eunuchs_sniper
36 38
37.include "../../audio/SDL_mixer/buildlink3.mk" 39.include "../../audio/SDL_mixer/buildlink3.mk"
38.include "../../devel/SDL/buildlink3.mk" 40.include "../../devel/SDL/buildlink3.mk"