aboutsummaryrefslogtreecommitdiff
path: root/games/cosmo
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-24 17:53:04 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-24 17:53:04 +0000
commit4f5572be01c47ad1fc647e82274c830cc9232c5f (patch)
tree0055ec0904a6b8b80e58dbeb32ccb4325aa62f0a /games/cosmo
parentb4bcfafe3b3ff7481c6aedc8d72149fe699ac441 (diff)
downloadports-4f5572be01c47ad1fc647e82274c830cc9232c5f.tar.gz
ports-4f5572be01c47ad1fc647e82274c830cc9232c5f.zip
Notes
Diffstat (limited to 'games/cosmo')
-rw-r--r--games/cosmo/Makefile5
-rw-r--r--games/cosmo/files/patch-Imakefile14
-rw-r--r--games/cosmo/pkg-plist14
3 files changed, 13 insertions, 20 deletions
diff --git a/games/cosmo/Makefile b/games/cosmo/Makefile
index 64d845f69077..fae39845ed9b 100644
--- a/games/cosmo/Makefile
+++ b/games/cosmo/Makefile
@@ -3,7 +3,7 @@
PORTNAME= cosmo
PORTVERSION= 2.0.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://hanzubon.jp/mirrors/Vine/%SUBDIR%/ \
http://ftp.jaist.ac.jp/pub/Linux/Vine/%SUBDIR%/ \
@@ -29,7 +29,8 @@ do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/cosmo
${INSTALL_PROGRAM} ${WRKSRC}/cosmo ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/cosmorc ${STAGEDIR}${PREFIX}/lib/X11/cosmo
- ${ECHO} > ${STAGEDIR}${PREFIX}/lib/X11/cosmo/best.dat
+ ${MKDIR} ${STAGEDIR}/var/games/cosmo
+ ${ECHO_CMD} > ${STAGEDIR}/var/games/cosmo/best.dat.sample
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/moon.tif.gz \
${STAGEDIR}${PREFIX}/lib/X11/cosmo
diff --git a/games/cosmo/files/patch-Imakefile b/games/cosmo/files/patch-Imakefile
index 94a1bf891099..f3a1d9044b00 100644
--- a/games/cosmo/files/patch-Imakefile
+++ b/games/cosmo/files/patch-Imakefile
@@ -1,5 +1,5 @@
---- Imakefile.orig Sat May 11 16:06:00 1996
-+++ Imakefile Wed Oct 18 08:09:08 2000
+--- Imakefile.orig 1996-05-11 11:06:00.000000000 +0400
++++ Imakefile 2015-01-24 20:35:32.000000000 +0300
@@ -1,21 +1,22 @@
-BINDIR = /usr/local/games
+XCOMM BINDIR = /usr/local/games
@@ -12,8 +12,9 @@
+XCOMM CC = gcc
REGULATE_TIMER = -DREG_TIMER
-DATADIR = $(BINDIR)/cosmodir
+-DATAFILE = $(DATADIR)/best.dat
+DATADIR = $(LIBDIR)/cosmo
- DATAFILE = $(DATADIR)/best.dat
++DATAFILE = /var/games/cosmo/best.dat
PROTO_DEFINES = -DRANK_FILE=\"$(DATAFILE)\" $(PAD) $(REGULATE_TIMER) $(SIGNAL)
-CDEBUGFLAGS = -O2 # -g
+XCOMM CDEBUGFLAGS = -O2 # -g
@@ -28,7 +29,7 @@
hd: hd.c
$(CC) -o hd hd.c
-@@ -27,11 +28,12 @@
+@@ -27,11 +28,10 @@
install::
@if [ -d $(DATADIR) ]; then echo cosmodir exists, not created.;\
@@ -36,10 +37,9 @@
+ else $(MKDIRHIER) $(DATADIR); fi
$(CHMOD) 711 $(DATADIR)
@if [ -f $(DATAFILE) ]; then echo ranking file exists, not created.;\
- else echo > $(DATAFILE); fi
+- else echo > $(DATAFILE); fi
- $(CHMOD) 666 $(DATAFILE)
-+ $(CHOWN) root:games $(DATAFILE)
-+ $(CHMOD) 664 $(DATAFILE)
++ else echo > $(DATAFILE).sample; fi
pack::
$(TAR) cfz cosmo.tgz *.c *.h Imakefile chara.dat *.doc
diff --git a/games/cosmo/pkg-plist b/games/cosmo/pkg-plist
index 65d0eac4a7f0..2cdb1607be44 100644
--- a/games/cosmo/pkg-plist
+++ b/games/cosmo/pkg-plist
@@ -1,13 +1,5 @@
-@group games
-@mode 2555
-bin/cosmo
-@mode
-@mode 664
-lib/X11/cosmo/best.dat
-@mode
-@group
+@(,games,2555) bin/cosmo
lib/X11/cosmo/cosmorc
lib/X11/cosmo/moon.tif.gz
-@mode 711
-@dirrm lib/X11/cosmo
-@mode
+@sample(,games,664) /var/games/cosmo/best.dat.sample
+@dir /var/games/cosmo