aboutsummaryrefslogtreecommitdiffstats
path: root/games/noegnud-littlehack
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-16 21:54:16 +0800
committerpawel <pawel@FreeBSD.org>2014-04-16 21:54:16 +0800
commitad78b49fd11acbe7e10d4f060f9517c3e7b2f82a (patch)
treecf4248ef2de2dba02f9df619cc0a5195e463e25d /games/noegnud-littlehack
parent18f5bc8736a20590604072759c8edc102d6cdc18 (diff)
downloadfreebsd-ports-gnome-ad78b49fd11acbe7e10d4f060f9517c3e7b2f82a.tar.gz
freebsd-ports-gnome-ad78b49fd11acbe7e10d4f060f9517c3e7b2f82a.tar.zst
freebsd-ports-gnome-ad78b49fd11acbe7e10d4f060f9517c3e7b2f82a.zip
- Add staging support
- Fix build on 10+, bmake does not support -E option - Convert to USES=tar:bzip2 - Remove Author tag from pkg-descr, info available on homepage MFH: 2014Q2
Diffstat (limited to 'games/noegnud-littlehack')
-rw-r--r--games/noegnud-littlehack/Makefile10
-rw-r--r--games/noegnud-littlehack/files/patch-variants::Makefile49
-rw-r--r--games/noegnud-littlehack/pkg-descr1
-rw-r--r--games/noegnud-littlehack/pkg-plist4
4 files changed, 18 insertions, 46 deletions
diff --git a/games/noegnud-littlehack/Makefile b/games/noegnud-littlehack/Makefile
index 3a80cbdbd75e..9bce04fd3476 100644
--- a/games/noegnud-littlehack/Makefile
+++ b/games/noegnud-littlehack/Makefile
@@ -18,18 +18,16 @@ COMMENT= The noeGNUd UI for the LittleHack variation of Nethack
RUN_DEPENDS= ${LOCALBASE}/share/${NOEGNUDVERSION}/data/gui:${PORTSDIR}/games/noegnud-data
NOEGNUDVERSION= ${PORTNAME}-0.8.0
-USES= bison
+USES= bison tar:bzip2
USE_GL= yes
WANT_SDL= yes
USE_SDL= sdl image mixer
-USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/variants
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
ALL_TARGET= lh001
INSTALL_TARGET= install_lh001
MAKE_JOBS_UNSAFE= yes
-NO_STAGE= yes
.include <bsd.port.pre.mk>
pre-everything::
@@ -46,7 +44,11 @@ post-extract:
post-patch:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-littlehack-0.0.1)
@(${PATCH} ${PATCH_ARGS} < ${FILESDIR}/noegnud-littlehack.patch)
-
+ @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -E -e 's,ch(grp|own),true,' \
+ -e '/(^VARDIR|ln -s|sed)/! s,(GAME|SHELL|VAR)DIR),DESTDIR)$$(&,g' \
+ -e '/ln -s/ s,SHELLDIR,DESTDIR)$$(&,2' \
+ ${WRKSRC}/${NOEGNUDVERSION}-littlehack-0.0.1/sys/unix/Makefile.top
do-configure:
(cd ${WRKSRC} && ${MAKE} ${NOEGNUDVERSION}-littlehack-0.0.1/Makefile)
diff --git a/games/noegnud-littlehack/files/patch-variants::Makefile b/games/noegnud-littlehack/files/patch-variants::Makefile
index 6378ee9b5f62..5545caa33ad0 100644
--- a/games/noegnud-littlehack/files/patch-variants::Makefile
+++ b/games/noegnud-littlehack/files/patch-variants::Makefile
@@ -1,55 +1,24 @@
---- variants/Makefile.orig Mon Aug 23 12:13:51 2004
-+++ variants/Makefile Sun Nov 21 00:49:21 2004
-@@ -1,7 +1,6 @@
+--- variants/Makefile.orig 2004-08-23 19:13:51.000000000 +0200
++++ variants/Makefile 2014-04-15 14:55:14.044062891 +0200
+@@ -1,7 +1,7 @@
NOEGNUDVERSION=noegnud-0.8.0
# you __MUST__ change this if you change the prefix for any variants' install !!!!!!!!!!!!!
# although ..... " make -e foo " also works :O ;)
-PREFIX = /usr/local
++PREFIX = %%PREFIX%%
GAMEUID = games
GAMEGRP = bin
CHOWN = chown
-@@ -62,31 +61,31 @@
- install: install_all
-
- install_nh342: nh342
-- make -e -C $(NOEGNUDVERSION)-nethack-3.4.2 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-nethack-3.4.2 install
-
- install_nh343: nh343
-- make -e -C $(NOEGNUDVERSION)-nethack-3.4.3 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-nethack-3.4.3 install
-
- install_se006e4f8: se006e4f8
-- make -e -C $(NOEGNUDVERSION)-slashem-0.0.6E4F8 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-slashem-0.0.6E4F8 install
-
- install_se007e2: se007e2
-- make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E2 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-slashem-0.0.7E2 install
-
- install_se007e5: se007e5
-- make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E5 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-slashem-0.0.7E5 install
-
- install_se007e6: se007e6
-- make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E6 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-slashem-0.0.7E6 install
-
- install_se007e6f2: se007e6f2
-- make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E6F2 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-slashem-0.0.7E6F2 install
+@@ -83,7 +83,7 @@
+ make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E6F2 install
install_lh001: lh001
- make -e -C $(NOEGNUDVERSION)-littlehack-0.0.1 install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-littlehack-0.0.1 install
++ make -C $(NOEGNUDVERSION)-littlehack-0.0.1 install
install_nh342-dt: nh342-dt
-- make -e -C $(NOEGNUDVERSION)-nethack-3.4.2-deet install
-+ make -EPREFIX -C $(NOEGNUDVERSION)-nethack-3.4.2-deet install
-
- # data
-
-@@ -204,7 +203,7 @@
+ make -e -C $(NOEGNUDVERSION)-nethack-3.4.2-deet install
+@@ -204,7 +204,7 @@
patch -p0 <diffs/$(NOEGNUDVERSION)-slashem-0.0.7E6F2.diff
$(NOEGNUDVERSION)-littlehack-0.0.1: littlehack-0.0.1
diff --git a/games/noegnud-littlehack/pkg-descr b/games/noegnud-littlehack/pkg-descr
index 9c9a22aa28df..17a6db730cab 100644
--- a/games/noegnud-littlehack/pkg-descr
+++ b/games/noegnud-littlehack/pkg-descr
@@ -6,5 +6,4 @@ and an outstanding 3D-Mode.
This port installs noeGNUd for the LittleHack variation of NetHack.
-Author: Clive Crous
WWW: http://noegnud.sourceforge.net/
diff --git a/games/noegnud-littlehack/pkg-plist b/games/noegnud-littlehack/pkg-plist
index 4e4a4f6c23d1..d61be5bd8621 100644
--- a/games/noegnud-littlehack/pkg-plist
+++ b/games/noegnud-littlehack/pkg-plist
@@ -1,5 +1,7 @@
bin/noegnud-0.8.0-littlehack-0.0.1
bin/noegnud-littlehack-0.0.1
+@owner games
+@group bin
share/noegnud-0.8.0/littlehack-0.0.1/license
share/noegnud-0.8.0/littlehack-0.0.1/logfile
share/noegnud-0.8.0/littlehack-0.0.1/nhdat
@@ -7,7 +9,7 @@ share/noegnud-0.8.0/littlehack-0.0.1/noegnud-0.8.0-littlehack-0.0.1
share/noegnud-0.8.0/littlehack-0.0.1/perm
share/noegnud-0.8.0/littlehack-0.0.1/record
share/noegnud-0.8.0/littlehack-0.0.1/recover
-@exec chown games:bin %D/share/noegnud-0.8.0/littlehack-0.0.1
+@exec chown root:wheel %D/share/noegnud-0.8.0
@exec chmod 775 %D/share/noegnud-0.8.0/littlehack-0.0.1
@dirrmtry share/noegnud-0.8.0/littlehack-0.0.1/save
@dirrmtry share/noegnud-0.8.0/littlehack-0.0.1