summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--games/xgalaga/Makefile11
-rw-r--r--games/xgalaga/files/patch-aa11
-rw-r--r--games/xgalaga/pkg-plist.nosound27
3 files changed, 42 insertions, 7 deletions
diff --git a/games/xgalaga/Makefile b/games/xgalaga/Makefile
index 551e323acf48..e22249570be9 100644
--- a/games/xgalaga/Makefile
+++ b/games/xgalaga/Makefile
@@ -3,7 +3,7 @@
# Date created: 27 August 1995
# Whom: asami
#
-# $Id: Makefile,v 1.9 1998/09/15 11:13:13 asami Exp $
+# $Id: Makefile,v 1.10 1998/09/17 00:32:37 asami Exp $
#
DISTNAME= xgalaga-2.0
@@ -15,6 +15,10 @@ MAINTAINER= ports@FreeBSD.ORG
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
+.if ${MACHINE_ARCH} == "alpha"
+NOSOUND= yes
+.endif
+
HAS_CONFIGURE= yes
USE_X_PREFIX= yes
# xgalaga has a very strange usage of these variables...
@@ -23,8 +27,8 @@ CONFIGURE_ARGS= --prefix=${X11BASE}/lib/X11/xgalaga \
.if defined(NOSOUND)
CONFIGURE_ARGS+= --without-sound
-.endif
-
+PLIST= ${PKGDIR}/PLIST.nosound
+.else
pre-configure:
@${ECHO} "*****************************************************"
@${ECHO} "* Note that you can build a version of xgalaga that *"
@@ -34,5 +38,6 @@ pre-configure:
@${ECHO} "* Try it if you don't have a sound card and are *"
@${ECHO} "* getting core dumps. *"
@${ECHO} "*****************************************************"
+.endif
.include <bsd.port.mk>
diff --git a/games/xgalaga/files/patch-aa b/games/xgalaga/files/patch-aa
index 486e40928c02..4a7dcc0c8f68 100644
--- a/games/xgalaga/files/patch-aa
+++ b/games/xgalaga/files/patch-aa
@@ -1,6 +1,6 @@
---- Makefile.in.orig Sun Apr 12 10:10:46 1998
-+++ Makefile.in Thu May 28 09:41:05 1998
-@@ -43,11 +43,12 @@
+--- Makefile.in.orig Sun Apr 12 03:10:46 1998
++++ Makefile.in Sun Jun 20 18:59:18 1999
+@@ -43,11 +43,14 @@
$(CC) $(LDFLAGS) -o $(SOUNDSRV) $(SOUNDOBJS) $(SOUNDLIBS)
install: all
@@ -8,9 +8,12 @@
+ ./mkinstalldirs $(bindir)
+ ./mkinstalldirs $(prefix)
$(INSTALL) $(TARGET) $(bindir)/$(TARGET)
- $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
+- $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV)
- mkinstalldirs $(prefix)/sounds
- mkinstalldirs $(prefix)/levels
++ if [ "X$(SOUNDSRV)" != "X"]; then \
++ $(INSTALL) $(SOUNDSRV) $(prefix)/$(SOUNDSRV); \
++ fi
+ ./mkinstalldirs $(prefix)/sounds
+ ./mkinstalldirs $(prefix)/levels
for i in levels/*.xgl; do $(INSTALL) $$i $(prefix)/$$i ; done
diff --git a/games/xgalaga/pkg-plist.nosound b/games/xgalaga/pkg-plist.nosound
new file mode 100644
index 000000000000..8a4495d65d74
--- /dev/null
+++ b/games/xgalaga/pkg-plist.nosound
@@ -0,0 +1,27 @@
+bin/xgalaga
+lib/X11/xgalaga/sounds/ddloo.raw
+lib/X11/xgalaga/sounds/explode.raw
+lib/X11/xgalaga/sounds/explode_big.raw
+lib/X11/xgalaga/sounds/firetorp.raw
+lib/X11/xgalaga/sounds/shield.raw
+lib/X11/xgalaga/sounds/smart.raw
+lib/X11/xgalaga/sounds/torphit.raw
+lib/X11/xgalaga/sounds/warp.raw
+lib/X11/xgalaga/levels/level1.xgl
+lib/X11/xgalaga/levels/level2.xgl
+lib/X11/xgalaga/levels/level3.xgl
+lib/X11/xgalaga/levels/level4.xgl
+lib/X11/xgalaga/levels/level5.xgl
+lib/X11/xgalaga/levels/level6.xgl
+lib/X11/xgalaga/levels/level7.xgl
+lib/X11/xgalaga/levels/level8.xgl
+lib/X11/xgalaga/levels/level9.xgl
+lib/X11/xgalaga/levels/level10.xgl
+lib/X11/xgalaga/levels/level11.xgl
+lib/X11/xgalaga/levels/level12.xgl
+lib/X11/xgalaga/levels/level13.xgl
+lib/X11/xgalaga/levels/level14.xgl
+lib/X11/xgalaga/levels/level15.xgl
+@dirrm lib/X11/xgalaga/levels
+@dirrm lib/X11/xgalaga/sounds
+@dirrm lib/X11/xgalaga