Fix Imakefile breakage under XFree86 4.x

PR: 22364
Submitted by: Ports Fury
This commit is contained in:
Kevin Lo 2000-10-28 15:46:30 +00:00
parent 1d349d2977
commit e671ca93b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34363
3 changed files with 23 additions and 17 deletions

View File

@ -16,18 +16,13 @@ MAINTAINER= ports@FreeBSD.org
USE_IMAKE= yes
MAN6= xdigger.6
MANCOMPRESSED= no
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/configure.h
do-install:
${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/xdigger ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/xdigger.man ${PREFIX}/man/man6/xdigger.6
@${MKDIR} ${PREFIX}/share/xdigger
${INSTALL_DATA} ${WRKSRC}/xdigger.level ${PREFIX}/share/xdigger
${INSTALL_DATA} ${WRKSRC}/audio/*.au ${PREFIX}/share/xdigger
@${TOUCH} ${PREFIX}/share/xdigger/xdigger.hiscore
post-install:
@${CHMOD} 2755 ${PREFIX}/bin/xdigger
@${CHOWN} root:games ${PREFIX}/bin/xdigger
@${CHMOD} 664 ${PREFIX}/share/xdigger/xdigger.hiscore
@${CHOWN} root:games ${PREFIX}/share/xdigger/xdigger.hiscore
.if !defined(NOPORTDOCS)

View File

@ -1,16 +1,13 @@
--- configure.h.orig Thu Jan 1 00:06:00 1998
+++ configure.h Thu Mar 30 03:40:23 2000
@@ -19,8 +19,13 @@
--- configure.h.orig Sun Jul 4 18:50:04 1999
+++ configure.h Thu Oct 26 04:40:37 2000
@@ -19,8 +19,8 @@
#define _CONFIGURE_H
/* Directories */
+#ifdef __FreeBSD__
-#define XDIGGER_LIB_DIR "/usr/lib/X11/xdigger"
-#define XDIGGER_HISCORE_DIR "/var/X11R6/scores"
+#define XDIGGER_LIB_DIR "%%PREFIX%%/share/xdigger"
+#define XDIGGER_HISCORE_DIR "%%PREFIX%%/share/xdigger"
+#else
#define XDIGGER_LIB_DIR "/usr/lib/X11/xdigger"
#define XDIGGER_HISCORE_DIR "/var/X11R6/scores"
+#endif
#define SOUND_DSP_AUDIO

View File

@ -1,5 +1,5 @@
--- Imakefile.orig Sun Jul 4 18:47:11 1999
+++ Imakefile Thu Mar 30 03:59:25 2000
+++ Imakefile Fri Oct 27 03:04:18 2000
@@ -1,12 +1,12 @@
#include "configure.h"
@ -16,3 +16,17 @@
#ifdef SOUND_RPLAY
RPLAYLIB = -lrplay
@@ -23,12 +23,10 @@
ComplexProgramTarget(xdigger)
InstallNonExecFile(xdigger.level,XDIGGER_LIB_DIR)
-#ifdef SOUND_RPLAY
InstallNamedNonExec(audio/diamond.au,diamond.au,XDIGGER_LIB_DIR)
InstallNamedNonExec(audio/step.au,step.au,XDIGGER_LIB_DIR)
InstallNamedNonExec(audio/stone.au,stone.au,XDIGGER_LIB_DIR)
-#endif
-InstallNamedNonExec(pixmaps/xdigger.xpm,xdigger.xpm,$(ICONDIR))
+/* InstallNamedNonExec(pixmaps/xdigger.xpm,xdigger.xpm,$(ICONDIR)) */
/* InstallNonExecFileNoClobber(xdigger.hiscore,XDIGGER_HISCORE_DIR) */
install::