mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- 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
This commit is contained in:
parent
e0822b98f2
commit
6d613e2879
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324003
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user