diff options
author | minskim <minskim@pkgsrc.org> | 2005-02-13 21:03:41 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-02-13 21:03:41 +0000 |
commit | c06e43993a21b63bc134a6edd6356b8473b4b574 (patch) | |
tree | 6d0808c103d30031a2bffaf71dbc688253d00217 /games | |
parent | e94a9acf901a5a1e05c99c4cd9451e009eac1221 (diff) | |
download | pkgsrc-c06e43993a21b63bc134a6edd6356b8473b4b574.tar.gz |
Make this package build on Linux. This fixes PR pkg/29357.
- Use -lcompat on NetBSD only.
- Define LINUXVERSION on Linux.
Diffstat (limited to 'games')
-rw-r--r-- | games/battalion/Makefile | 10 | ||||
-rw-r--r-- | games/battalion/distinfo | 4 | ||||
-rw-r--r-- | games/battalion/patches/patch-aa | 4 |
3 files changed, 13 insertions, 5 deletions
diff --git a/games/battalion/Makefile b/games/battalion/Makefile index 0a091aaa506..20cebb1262f 100644 --- a/games/battalion/Makefile +++ b/games/battalion/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2004/10/03 00:14:42 tv Exp $ +# $NetBSD: Makefile,v 1.27 2005/02/13 21:03:41 minskim Exp $ DISTNAME= battalion PKGNAME= battalion-1.4 @@ -18,6 +18,14 @@ EXTRACT_ONLY= battalionSource1.4.tar.Z USE_BUILDLINK3= yes USE_X11= yes +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +MAKE_ENV+= LIBFLAGS=-lcompat +.elif ${OPSYS} == "Linux" +MAKE_ENV+= OS="-DLINUXVERSION" +.endif + do-install: ${INSTALL} -c -s -o ${ROOT_USER} -g games -m 2755 ${WRKSRC}/battalion ${PREFIX}/bin cd ${WRKDIR} && \ diff --git a/games/battalion/distinfo b/games/battalion/distinfo index a5d203f0b65..fbcead0a094 100644 --- a/games/battalion/distinfo +++ b/games/battalion/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.4 2003/07/22 22:38:36 jmmv Exp $ +$NetBSD: distinfo,v 1.5 2005/02/13 21:03:41 minskim Exp $ SHA1 (battalionSource1.4.tar.Z) = 50891668a9b6745fcb4e070805c085487a5176d8 Size (battalionSource1.4.tar.Z) = 186221 bytes SHA1 (battalionSUN4.tar.gz) = 5cc314e192320a7505dddf730bbcccaef212ff4a Size (battalionSUN4.tar.gz) = 1593265 bytes -SHA1 (patch-aa) = 89ea9136bf959b5f3b92a04550441a5d1a5898f4 +SHA1 (patch-aa) = 1e9f44cfa4af24d422a4c9283c12c03770a508e3 SHA1 (patch-ab) = a47c5be93d82555b4fed23f5d5e71169859ebb49 diff --git a/games/battalion/patches/patch-aa b/games/battalion/patches/patch-aa index 74851230b5a..776c9fb6a2e 100644 --- a/games/battalion/patches/patch-aa +++ b/games/battalion/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.9 2003/07/22 22:38:36 jmmv Exp $ +$NetBSD: patch-aa,v 1.10 2005/02/13 21:03:41 minskim Exp $ --- Makefile.orig Thu Jan 16 17:31:58 1997 +++ Makefile Wed Apr 12 21:03:39 2000 @@ -23,7 +23,7 @@ @@ -45,7 +45,7 @@ $NetBSD: patch-aa,v 1.9 2003/07/22 22:38:36 jmmv Exp $ # (USEFUL TO POINT TO WHERE THE MESA LIBRARIES RESIDE) # ------------------------------------------------------------ -LIBFLAGS = -+LIBFLAGS = ${LDFLAGS} -L$(X11BASE)/lib -lcompat ++LIBFLAGS += ${LDFLAGS} -L$(X11BASE)/lib # you should now be able to type 'make' and everything should be fine ... |