1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Support staging

- Add LICENSE (MIT)
This commit is contained in:
Jason E. Hale 2014-08-02 15:08:03 +00:00
parent c9eb3747b1
commit a8e818f5eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363818
3 changed files with 20 additions and 14 deletions

View File

@ -11,7 +11,9 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Text-based puzzle game
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE
GNU_CONFIGURE= yes
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.in.orig Sun Feb 29 15:42:32 2004
+++ Makefile.in Mon Sep 15 01:39:29 2008
--- ./Makefile.in.orig 2004-02-29 09:42:32.000000000 -0500
+++ ./Makefile.in 2014-08-02 10:45:11.000000000 -0400
@@ -9,10 +9,12 @@
datadir = @datadir@
localstatedir = @localstatedir@
@ -15,7 +15,7 @@
@CURSES@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
@@ -32,15 +34,15 @@
@@ -32,15 +34,13 @@
$(CC) $(LDFLAGS) -o enigma $(ENIGMA) $(LIBS)
install: enigma
@ -23,18 +23,16 @@
- -chown root.games $(bindir)/enigma && chmod 2755 $(bindir)/enigma
- #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/enigma.1
- mkdir -p $(datadir)/enigma
+ $(INSTALL_PROGRAM) enigma $(bindir)/$(PACKAGE_NAME)
+ -chown root:games $(bindir)/$(PACKAGE_NAME) && chmod 2755 $(bindir)/$(PACKAGE_NAME)
+ #$(INSTALL_DATA) $(srcdir)/enigma.1 $(mandir)/man1/$(PACKAGE_NAME).1
+ mkdir -p $(datadir)/$(PACKAGE_NAME)
+ $(INSTALL_PROGRAM) enigma $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
+ #$(INSTALL_DATA) $(srcdir)/enigma.1 $(DESTDIR)$(mandir)/man1/$(PACKAGE_NAME).1
+ mkdir -p $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
for i in $(srcdir)/levels/*.set $(srcdir)/levels/*.level; do \
- $(INSTALL_DATA) $$i $(datadir)/enigma; \
+ $(INSTALL_DATA) $$i $(datadir)/$(PACKAGE_NAME); \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(datadir)/$(PACKAGE_NAME); \
done
- mkdir -p $(localstatedir)/enigma
- -chown root.games $(localstatedir)/enigma && chmod 2770 $(localstatedir)/enigma
+ mkdir -p $(localstatedir)/$(PACKAGE_NAME)
+ -chown root:games $(localstatedir)/$(PACKAGE_NAME) && chmod 2770 $(localstatedir)/$(PACKAGE_NAME)
+ mkdir -p $(DESTDIR)$(localstatedir)/$(PACKAGE_NAME)
clean:
rm -f *.o enigma

View File

@ -1,4 +1,8 @@
@mode 2755
@group games
bin/enygma
@group
@mode
%%DATADIR%%/original.set
%%DATADIR%%/original01.level
%%DATADIR%%/original02.level
@ -13,8 +17,10 @@ bin/enygma
%%DATADIR%%/original11.level
%%DATADIR%%/original12.level
@dirrm %%DATADIR%%
@exec mkdir -p %D/var/enygma
@exec chgrp games %D/var/enygma
@exec chmod 2770 %D/var/enygma
@mode 2770
@group games
@exec install -d -g games -m 2770 %D/var/enygma
@dirrm var/enygma
@group
@mode
@dirrmtry var