Fake.
1/4 of the ports tree uses Fake !
This commit is contained in:
parent
6690c8a6a7
commit
241663e2af
@ -1,12 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2000/02/15 05:04:23 turan Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2000/03/19 19:36:53 espie Exp $
|
||||
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
|
||||
|
||||
DISTNAME= nethack-3.2.3
|
||||
CATEGORIES= games
|
||||
NEED_VERSION= 1.191
|
||||
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.2/src/ \
|
||||
ftp://ftp.uu.net/pub/games/nethack/sources/ \
|
||||
${MASTER_SITE_GNU}
|
||||
NEED_VERSION= 1.191
|
||||
|
||||
DISTFILES= nethack-3.2.2.tar.gz
|
||||
WRKDIST=${WRKDIR}/nethack-3.2.2
|
||||
@ -20,15 +20,17 @@ MASTER_SITE_SUBDIR= nethack
|
||||
MAINTAINER= espie@openbsd.org
|
||||
|
||||
LICENSE_TYPE= GPL
|
||||
PERMIT_PACKAGE_CDROM= YES
|
||||
PERMIT_PACKAGE_FTP= YES
|
||||
PERMIT_DISTFILES_CDROM= YES
|
||||
PERMIT_DISTFILES_FTP= YES
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
USE_GMAKE= Yes
|
||||
USE_X11= Yes
|
||||
FAKE= Yes
|
||||
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
||||
|
||||
NHDIR= ${PREFIX}/lib/nethackdir
|
||||
NHDIR= ${DESTDIR}${PREFIX}/lib/nethackdir
|
||||
MAKE_ENV+= NHDIR=${NHDIR}
|
||||
|
||||
pre-configure:
|
||||
@ -40,14 +42,14 @@ post-install:
|
||||
@cd ${WRKSRC}/doc; chmod 644 *.6
|
||||
@cd ${WRKSRC}/doc; PREFIX='${PREFIX}' INSTALL_MAN='${INSTALL_MAN}' make manpages
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
|
||||
@mkdir -p ${PREFIX}/lib/X11/app-defaults
|
||||
@cd ${WRKSRC}/win/X11 && \
|
||||
cp NetHack.ad NetHack && \
|
||||
${INSTALL_DATA} NetHack ${PREFIX}/lib/X11/app-defaults && \
|
||||
${X11BASE}/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
|
||||
${X11BASE}/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz && \
|
||||
/usr/X11R6/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
|
||||
/usr/X11R6/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz && \
|
||||
${INSTALL_DATA} ibm.pcf.gz ${PREFIX}/lib/X11/fonts/hack && \
|
||||
${INSTALL_DATA} nh10.pcf.gz ${PREFIX}/lib/X11/fonts/hack
|
||||
${X11BASE}/bin/mkfontdir ${X11BASE}/lib/X11/fonts/hack
|
||||
@cat ${PKGDIR}/DESCR
|
||||
/usr/X11R6/bin/mkfontdir ${PREFIX}/lib/X11/fonts/hack
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +1,12 @@
|
||||
--- sys/unix/Makefile.top.orig Tue Dec 10 21:20:10 1996
|
||||
+++ sys/unix/Makefile.top Fri Jul 24 15:21:39 1998
|
||||
@@ -16,14 +16,14 @@
|
||||
+++ sys/unix/Makefile.top Sun Mar 19 20:10:34 2000
|
||||
@@ -15,15 +15,15 @@
|
||||
|
||||
# make NetHack
|
||||
GAME = nethack
|
||||
GAMEUID = games
|
||||
-GAMEUID = games
|
||||
-GAMEGRP = bin
|
||||
+GAMEUID = bin
|
||||
+GAMEGRP = games
|
||||
|
||||
# Permissions - some places use setgid instead of setuid, for instance
|
||||
@ -19,14 +21,15 @@
|
||||
|
||||
# GAMEDIR also appears in config.h as "HACKDIR".
|
||||
#
|
||||
@@ -32,13 +32,13 @@
|
||||
@@ -32,13 +32,14 @@
|
||||
# therefore there should not be anything in GAMEDIR that you want to keep
|
||||
# (if there is, you'll have to do the installation by hand or modify the
|
||||
# instructions)
|
||||
-GAMEDIR = /usr/games/lib/$(GAME)dir
|
||||
-SHELLDIR = /usr/games
|
||||
+GAMEDIR = ${PREFIX}/lib/$(GAME)dir
|
||||
+SHELLDIR = ${PREFIX}/bin
|
||||
+GAMEDIR = ${DESTDIR}${PREFIX}/lib/$(GAME)dir
|
||||
+REALGAMEDIR = ${PREFIX}/lib/$(GAME)dir
|
||||
+SHELLDIR = ${DESTDIR}${PREFIX}/bin
|
||||
|
||||
# per discussion in Install.X11
|
||||
-VARDATND =
|
||||
@ -37,3 +40,12 @@
|
||||
|
||||
VARDATD = data oracles options quest.dat rumors
|
||||
VARDAT = $(VARDATD) $(VARDATND)
|
||||
@@ -137,7 +138,7 @@
|
||||
$(MAKE) dofiles-$${target-nodlb}
|
||||
cp src/$(GAME) $(GAMEDIR)
|
||||
-rm -f $(SHELLDIR)/$(GAME)
|
||||
- sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
|
||||
+ sed -e 's;/usr/games/lib/nethackdir;$(REALGAMEDIR);' \
|
||||
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
|
||||
< sys/unix/nethack.sh \
|
||||
> $(SHELLDIR)/$(GAME)
|
||||
|
@ -1,4 +1,3 @@
|
||||
@owner games
|
||||
@group games
|
||||
bin/nethack
|
||||
man/man6/dgn_comp.6
|
||||
@ -129,7 +128,7 @@ lib/nethackdir/perm
|
||||
@mode 2555
|
||||
lib/nethackdir/nethack
|
||||
@exec mkdir %D/lib/nethackdir/save
|
||||
@exec chown games:games %D/lib/nethackdir/save
|
||||
@exec chgrp games %D/lib/nethackdir/save
|
||||
@exec chmod -R 575 %D/lib/nethackdir/save
|
||||
@unexec rm -rf %D/lib/nethackdir/save
|
||||
@dirrm lib/nethackdir
|
||||
|
Loading…
Reference in New Issue
Block a user