Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2013 05:36:33 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r324003 - in head/games/xgalaga: . files
Message-ID:  <201307310536.r6V5aXvC023290@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jul 31 05:36:33 2013
New Revision: 324003
URL: http://svnweb.freebsd.org/changeset/ports/324003

Log:
  - Fix parallel (-jX) builds, remove jobs unsafe mark
  - Fix MASTER_SITES, define LICENSE (GPLv2)
  - Improve COMMENT and port description, add WWW link
  - Utilize newly added option helpers, sort the knobs

Modified:
  head/games/xgalaga/Makefile
  head/games/xgalaga/files/patch-aa
  head/games/xgalaga/pkg-descr

Modified: head/games/xgalaga/Makefile
==============================================================================
--- head/games/xgalaga/Makefile	Wed Jul 31 05:25:47 2013	(r324002)
+++ head/games/xgalaga/Makefile	Wed Jul 31 05:36:33 2013	(r324003)
@@ -1,36 +1,33 @@
-# Created by: asami
+# Created by: Satoshi Asami <asami@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	xgalaga
 PORTVERSION=	2.1.1.0
 CATEGORIES=	games
-MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}/
+MASTER_SITES=	SF/${PORTNAME}
 
 MAINTAINER=	turutani@scphys.kyoto-u.ac.jp
-COMMENT=	Galaga resurrected on X
+COMMENT=	Clone of the classic game Galaga for X11
+
+LICENSE=	GPLv2
 
 USES=		gmake
-MAKE_JOBS_UNSAFE=	yes
 USE_XORG=	xpm xmu
 HAS_CONFIGURE=	yes
-MAN6=		xgalaga.6x
-MANCOMPRESSED=	yes
+
 # xgalaga has a very strange usage of these variables...
 CONFIGURE_ARGS=	--prefix=${LOCALBASE}/lib/X11/xgalaga \
 		--mandir=${LOCALBASE}/man \
 		--exec_prefix=${LOCALBASE}/bin
 
+MAN6=		xgalaga.6x
+MANCOMPRESSED=	yes
+
 OPTIONS_DEFINE=	SOUND
 OPTIONS_DEFAULT=	SOUND
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
-
-.if empty(PORT_OPTIONS:MSOUND)
-CONFIGURE_ARGS+=	--without-sound
-PLIST_SUB=	SOUND="@comment "
-.else
-PLIST_SUB=	SOUND=""
-.endif
+SOUND_CONFIGURE_OFF=	--without-sound
 
 post-install:
 	@${STRIP_CMD} ${PREFIX}/bin/xgalaga

Modified: head/games/xgalaga/files/patch-aa
==============================================================================
--- head/games/xgalaga/files/patch-aa	Wed Jul 31 05:25:47 2013	(r324002)
+++ head/games/xgalaga/files/patch-aa	Wed Jul 31 05:36:33 2013	(r324003)
@@ -13,3 +13,44 @@
  distversion = 2.1.1.0
  
  @SET_MAKE@
+@@ -74,14 +74,14 @@
+ #       chmod ${GAMEMODE} $(bindir)/$(TARGET)
+ #       chmod ${GAMEDATAMODE} $(prefix)/scores
+ 
+-subdirs:
+-	for i in $(SUBDIRS); do cd $$i ; make ; done
++$(SUBDIRS)::
++	$(MAKE) -C $@
+ 
+-$(TARGET): subdirs $(OBJS)
++$(TARGET): $(SUBDIRS) $(OBJS)
+ 	$(RM) $(TARGET)
+ 	$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+ 
+-$(TARGET2): subdirs $(OBJS_HYPER)
++$(TARGET2): $(SUBDIRS) $(OBJS_HYPER)
+ 	$(RM) $(TARGET2)
+ 	$(CC) $(LDFLAGS) -o $(TARGET2) $(OBJS_HYPER) $(LIBS)
+ 
+@@ -98,17 +98,17 @@
+ 	$(RM) core *.o $(OBJS) $(OBJS_HYPER) $(TARGET) $(TARGET2) $(MANPAGE)
+ 
+ dist: clean
+-	cd libsprite;make clean
++	$(MAKE) -C libsprite clean
+ 	if test -d xgalaga-$(distverson) ; then echo -n; else  mkdir xgalaga-$(distversion); fi
+ 	cp -rf $(SRCS) configure *.in *.sub *.guess images sounds xgal.sndsrv.*.c libsprite README* INSTALL CHANGES CREDITS xgalaga.6x *.h install-sh levels mkimgsrc* mkinstalldirs xgalaga-$(distversion)
+-	cd xgalaga-$(distversion); rm -f config.h
+-	cd xgalaga-$(distversion)/libsprite; make distclean ; rm -rf CVS
++	rm -f xgalaga-$(distversion)/config.h
++	$(MAKE) -C xgalaga-$(distversion)/libsprite distclean
+ 	find xgalaga-$(distversion) -name "CVS" -exec rm -rf {} \; -prune
+ 	tar czvf xgalaga-$(distversion).tar.gz xgalaga-$(distversion)
+ 
+ distclean: clean
+ 	$(RM) Makefile config.h config.status config.cache config.log
+-	cd libsprite;$(MAKE) distclean
++	$(MAKE) -C libsprite distclean
+ 
+ depend:
+ 	makedepend $(CFLAGS) $(SRCS)

Modified: head/games/xgalaga/pkg-descr
==============================================================================
--- head/games/xgalaga/pkg-descr	Wed Jul 31 05:25:47 2013	(r324002)
+++ head/games/xgalaga/pkg-descr	Wed Jul 31 05:36:33 2013	(r324003)
@@ -1,5 +1,4 @@
-xgalaga is a rework of the Galaga shooting game.
+XGalaga is a clone of the classic game Galaga for X11, a space-invader like
+game with additional features to produce a more interesting game.
 
-The package is built to use the sound device in /dev/dsp.  If you don't
-have a sound card and are getting core dumps, try recompiling it with
-"make -DNOSOUND".
+WWW: http://rumsey.org/xgal.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307310536.r6V5aXvC023290>