aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-02 03:04:18 +0800
committerantoine <antoine@FreeBSD.org>2014-11-02 03:04:18 +0800
commit14c754ede57dd93630a4e10079d1f45cdf602006 (patch)
treeccdb89ec054c0f2ee1673d5f22d6fd4f5a9585d4
parent13d49ff2008797814d9ddaa625ad44bcb2ba9b28 (diff)
downloadfreebsd-ports-gnome-14c754ede57dd93630a4e10079d1f45cdf602006.tar.gz
freebsd-ports-gnome-14c754ede57dd93630a4e10079d1f45cdf602006.tar.zst
freebsd-ports-gnome-14c754ede57dd93630a4e10079d1f45cdf602006.zip
- Allow staging as a regular user
- Bump portrevision as some files were not packaged with intended group
-rw-r--r--games/xtrojka/Makefile9
-rw-r--r--games/xtrojka/files/old-patch-Makefile83
-rw-r--r--games/xtrojka/files/patch-Makefile19
-rw-r--r--games/xtrojka/pkg-plist5
4 files changed, 13 insertions, 103 deletions
diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile
index 5c01f5018b19..c3535fdc4254 100644
--- a/games/xtrojka/Makefile
+++ b/games/xtrojka/Makefile
@@ -2,9 +2,9 @@
PORTNAME= xtrojka
PORTVERSION= 1.2.3
+PORTREVISION= 1
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= games/arcade/tetris
+MASTER_SITES= SUNSITE/games/arcade/tetris
DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//g}
MAINTAINER= ports@edwinm.ik.nu
@@ -13,12 +13,9 @@ COMMENT= Game of skill similar to T*tris
USE_XORG= x11 xt xproto xaw xmu xext
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
-MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
+INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX}
pre-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/xtrojka
-post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xtrojka
-
.include <bsd.port.mk>
diff --git a/games/xtrojka/files/old-patch-Makefile b/games/xtrojka/files/old-patch-Makefile
deleted file mode 100644
index fc405e53b436..000000000000
--- a/games/xtrojka/files/old-patch-Makefile
+++ /dev/null
@@ -1,83 +0,0 @@
---- Makefile.orig Sat Oct 21 22:38:22 1995
-+++ Makefile Wed Jul 12 08:50:34 2000
-@@ -8,7 +8,7 @@
-
- # your favorite C-compiler
- #
--CC=gcc
-+CC?=gcc
- #CC=cc
-
-
-@@ -22,13 +22,13 @@
- # Touch 'hiscore.c' and 'score_status_mgr.c' when you change
- # these variables!
- #
--HSFILE=/usr/local/games/lib/xtrojka.scores
-+HSFILE=${PREFIX}/share/xtrojka/xtrojka.scores
- #HSFILE=/tmp/xtrojka.scores
- CFLAGS= -DSCOREFILE='"$(HSFILE)"'
-
- # add library search path
- #
--CFLAGS+=-L/usr/X11/lib
-+CFLAGS+=-L${LOCALBASE}/lib
-
- # on some systems you might add this line, because gcc starts wining
- # about 'sizeof(Display)', since Display might be an empty struct;
-@@ -42,24 +42,28 @@
-
- # location of xtrojka game
- #
--TARGET_DIR=/usr/games
-+TARGET_DIR=${PREFIX}/bin
-
-
- # location of the manualpage
- #
--MANDIR=/usr/local/man/man6
-+MANDIR=${PREFIX}/man/man6
-
-
- # please comment out for the system you use
- #
- # sunos 4.1.3
--XDIR=/usr/openwin/include
--LIBS=-lm
-+#XDIR=/usr/openwin/include
-+#LIBS=-lm
-
- # solaris
- #XDIR=/usr/openwin/include
- #LIBS=-lnsl
-
-+# FreeBSD
-+XDIR=${LOCALBASE}/include
-+LIBS=-lm
-+
- #
- #
- # main
-@@ -101,11 +105,17 @@
- #
- #
- install:
-- @echo $(HSFILE)|sed -e 's/\//\\\//g'>/tmp/hsn; \
-- sed -e "s/__SCOREDIR__/`cat /tmp/hsn`/g" manpage > xtrojka.6; \
-- cp xtrojka.6 $(MANDIR); chmod go+r xtrojka.6; \
-- cp xtrojka $(TARGET_DIR);chmod go+rx xtrojka; \
-- touch $(HSFILE); chmod go+rwx $(HSFILE);
-+ @rm -f hsn
-+ echo $(HSFILE)|sed -e 's/\//\\\//g'>hsn
-+ sed -e "s/__SCOREDIR__/`cat hsn`/g" manpage > xtrojka.6
-+ gzip -c xtrojka.6 >$(MANDIR)/xtrojka.6.gz
-+ cp xtrojka $(TARGET_DIR)
-+ chmod 2755 $(TARGET_DIR)/xtrojka
-+ chgrp games $(TARGET_DIR)/xtrojka
-+ touch $(HSFILE)
-+ chmod 664 $(HSFILE)
-+ chgrp games $(HSFILE)
-+ @rm -f hsn
-
- clean:
- rm -rf *.o core xtrojka xtrojka.6
diff --git a/games/xtrojka/files/patch-Makefile b/games/xtrojka/files/patch-Makefile
index 6ef78229eb8a..89c3d61786bd 100644
--- a/games/xtrojka/files/patch-Makefile
+++ b/games/xtrojka/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 1996-07-27 20:05:03.000000000 +0200
-+++ Makefile 2013-09-12 11:55:14.000000000 +0200
-@@ -10,15 +10,15 @@
+--- Makefile.orig 1996-07-27 18:05:03 UTC
++++ Makefile
+@@ -10,15 +10,15 @@ PROGS= xtrojka
# xtrojka version (do not change!)
VERSION=123
# where to put the binary
@@ -20,7 +20,7 @@
# used X libraries
XLIBS= -lXaw -lXmu -lXt -lX11 -lXext
# some more X libraries
-@@ -48,7 +48,7 @@
+@@ -48,7 +48,7 @@ HSF=-DSCOREFILE='"$(HSFILE)"'
# comment out your favorite system (the one you use, that is...)
#
# search the libaries here
@@ -29,7 +29,7 @@
# doesn't work too well on all systems
#LCK=-DLOCKING
# add debug info
-@@ -75,7 +75,13 @@
+@@ -75,7 +75,13 @@ XPMLIB=-lXpm
#
# Linux
#
@@ -44,7 +44,7 @@
#
#
-@@ -105,11 +111,17 @@
+@@ -105,11 +111,14 @@ tar:
rm -rf xtrojka$(VERSION);
install:
@@ -57,17 +57,14 @@
+ echo $(HSFILE)|sed -e 's/\//\\\//g'>hsn
+ sed -e "s/__SCOREDIR__/`cat hsn`/g" xtrojka.man > xtrojka.6
+ gzip -c xtrojka.6 >$(MANDIR)/xtrojka.6.gz
-+ cp xtrojka $(TARGET_DIR)
-+ chmod 2755 $(TARGET_DIR)/xtrojka
-+ chgrp games $(TARGET_DIR)/xtrojka
++ $(BSD_INSTALL_PROGRAM) xtrojka $(TARGET_DIR)
+ touch $(HSFILE)
+ chmod 664 $(HSFILE)
-+ chgrp games $(HSFILE)
+ @rm -f hsn
clean:
rm -rf tags *.o core xtrojka xtrojka.6
-@@ -119,7 +131,7 @@
+@@ -119,7 +128,7 @@ clean:
# DEPENDENCIES
#
diff --git a/games/xtrojka/pkg-plist b/games/xtrojka/pkg-plist
index a76921978c5c..ca4c5737a62e 100644
--- a/games/xtrojka/pkg-plist
+++ b/games/xtrojka/pkg-plist
@@ -1,4 +1,3 @@
-bin/xtrojka
-share/xtrojka/xtrojka.scores
+@(,games,2755) bin/xtrojka
+@(,games,) share/xtrojka/xtrojka.scores
man/man6/xtrojka.6.gz
-@dirrm share/xtrojka