diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2014-11-29 09:46:17 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2014-11-29 09:46:17 +0800 |
commit | 08431516e3e79cca5e1ee1bd86ddfc91577ecab5 (patch) | |
tree | 088e8c50c571bcc24963a918f422ac7764e5b68a /games/icebreaker/files | |
parent | 0c0cf2e20c868b8274799f34fffcc5191784ca38 (diff) | |
download | freebsd-ports-gnome-08431516e3e79cca5e1ee1bd86ddfc91577ecab5.tar.gz freebsd-ports-gnome-08431516e3e79cca5e1ee1bd86ddfc91577ecab5.tar.zst freebsd-ports-gnome-08431516e3e79cca5e1ee1bd86ddfc91577ecab5.zip |
- Fix binary referencing STAGEDIR
- Clarify LICENSE
- Add LICENSE_FILE
- Remove useless pkg-message
- Change huge REINPLACE to more maintainable patch
- Use BSD_INSTALL_* for correct perms and stripping
- Use @sample for highscore and set binary permissions in plist
- Drop @dirrm* from plist
MFH: 2014Q4
Diffstat (limited to 'games/icebreaker/files')
-rw-r--r-- | games/icebreaker/files/patch-Makefile | 98 | ||||
-rw-r--r-- | games/icebreaker/files/pkg-message.in | 11 |
2 files changed, 98 insertions, 11 deletions
diff --git a/games/icebreaker/files/patch-Makefile b/games/icebreaker/files/patch-Makefile new file mode 100644 index 000000000000..59095eaf5795 --- /dev/null +++ b/games/icebreaker/files/patch-Makefile @@ -0,0 +1,98 @@ +--- Makefile.orig 2003-02-25 19:31:32.000000000 +0300 ++++ Makefile 2014-11-29 04:34:05.000000000 +0300 +@@ -1,9 +1,9 @@ +-CC=gcc ++CC?=gcc + +-SDLCONFIG=sdl-config ++SDLCONFIG=${SDL_CONFIG} + + ifndef prefix +- prefix=/usr/local ++ prefix=${PREFIX} + #prefix=/usr + endif + +@@ -12,7 +12,7 @@ + endif + + ifndef mandir +- mandir=$(prefix)/share/man ++ mandir=$(prefix)/man + endif + + ifndef bindir +@@ -21,12 +21,12 @@ + + + ifndef highscoredir +- highscoredir=/var/local/lib/games ++ highscoredir=/var/games + #highscoredir=/var/lib/games + endif + + +-CFLAGS=-Wall $(OPTIMIZE) $(SDL_CFLAGS) -DDATAPREFIX=\"$(datadir)/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\" ++CFLAGS+=-Wall $(SDL_CFLAGS) -DDATAPREFIX=\"$(datadir)/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\" + + SRC=icebreaker.c cursor.c grid.c laundry.c line.c penguin.c sound.c \ + level.c intro.c text.c status.c transition.c hiscore.c dialog.c \ +@@ -40,7 +40,7 @@ + SDL_CFLAGS := $(shell $(SDLCONFIG) --cflags) + SDL_LDFLAGS := $(shell $(SDLCONFIG) --libs) + VERSION := $(shell awk '/^\#define VERSION/ { print $$3 }' icebreaker.h) +-VERDATE := $(shell date -r icebreaker.h +"%d %B %Y") ++VERDATE := $(shell date -r $(shell stat -f %m icebreaker.h) +"%d %B %Y") + + CROSSTOOLSPATH=/usr/local/cross-tools + # note that you almost certainly want to set wine to use the tty driver instead +@@ -177,7 +177,7 @@ + [ -d win32.build ] && rm -rf win32.build || true + + icebreaker: $(SRC:.c=.o) +- $(CC) $(CFLAGS) $^ -o icebreaker $(SDL_LIB) ++ $(CC) $(LDFLAGS) $^ -o icebreaker $(SDL_LIB) + + man: icebreaker.6 + +@@ -190,31 +190,25 @@ + sed 's?\$$HIGHSCOREDIR?$(highscoredir)/?' > $@ + + install-mkdirs: +- mkdir -p $(datadir)/icebreaker +- mkdir -p $(bindir) +- mkdir -p $(highscoredir) +- mkdir -p $(mandir)/man6 ++ mkdir -p ${DESTDIR}$(datadir)/icebreaker ++ mkdir -p ${DESTDIR}$(bindir) ++ mkdir -p ${DESTDIR}$(highscoredir) ++ mkdir -p ${DESTDIR}$(mandir)/man6 + + themes-install: install-themes + + install-themes: +- install -m 644 *.ibt $(datadir)/icebreaker +- install -m 644 *.wav *.bmp $(datadir)/icebreaker ++ ${BSD_INSTALL_DATA} *.ibt ${DESTDIR}$(datadir)/icebreaker ++ ${BSD_INSTALL_DATA} *.wav *.bmp ${DESTDIR}$(datadir)/icebreaker + + install-bin: icebreaker +- install -s -g games -m 2755 icebreaker $(bindir) || \ +- install -s -m 755 icebreaker $(bindir) +- @test -g $(bindir)/icebreaker || \ +- echo -e '*** Note: icebreaker binary not installed set-group-ID "games" -- shared\n*** highscores may be impossible. (Try installing as root.)' ++ ${BSD_INSTALL_PROGRAM} icebreaker ${DESTDIR}$(bindir) + + install-man: icebreaker.6 +- install -m 644 icebreaker.6 $(mandir)/man6 ++ ${BSD_INSTALL_MAN} icebreaker.6 ${DESTDIR}$(mandir)/man6 + + install-scorefile: +- touch $(highscoredir)/icebreaker.scores +- chown -f games:games $(highscoredir)/icebreaker.scores && \ +- chmod 664 $(highscoredir)/icebreaker.scores || \ +- chmod 644 $(highscoredir)/icebreaker.scores ++ touch ${DESTDIR}$(highscoredir)/icebreaker.scores.sample + + + install: all install-mkdirs install-themes install-bin install-man install-scorefile diff --git a/games/icebreaker/files/pkg-message.in b/games/icebreaker/files/pkg-message.in deleted file mode 100644 index 23d2c23763d4..000000000000 --- a/games/icebreaker/files/pkg-message.in +++ /dev/null @@ -1,11 +0,0 @@ -=============================================================================== - -IceBreaker has been installed. - -When you have problems with usage, please reinstall IceBreaker - -cd /usr/ports/games/icebreaker && make deinstall clean reinstall - -Have fun! - -=============================================================================== |