openbsd-ports/games/xmris/patches/patch-Imakefile
2004-01-09 21:10:34 +00:00

62 lines
2.0 KiB
Plaintext

$OpenBSD: patch-Imakefile,v 1.2 2004/01/09 21:10:34 sturm Exp $
--- Imakefile.orig 1995-12-22 13:05:52.000000000 +0100
+++ Imakefile 2004-01-09 22:05:46.000000000 +0100
@@ -122,7 +122,7 @@ FONT = thefont
#ifndef InstallDefaultGardens
#ifdef InstallAppDefFiles
-#define InstallDefaultGardens $(DESTDIR)/$(XAPPLOADDIR)/$(APP)
+#define InstallDefaultGardens $(XAPPLOADDIR)/$(APP)
#endif
#endif
@@ -296,9 +296,9 @@ NormalProgramTarget(xmris,$(MRISOBJS),$(
InstallProgramWithFlags(xmris,$(THEBINDIR),$(INSTMRISFLAGS))
-install :: $(THEBINDIR)/xmris
- $(RM) $(THEBINDIR)/xmsit
- $(LN) ./xmris $(THEBINDIR)/xmsit
+install :: $(DESTDIR)$(THEBINDIR)/xmris
+ $(RM) $(DESTDIR)$(THEBINDIR)/xmsit
+ cd $(DESTDIR)$(THEBINDIR) && $(LN) xmris xmsit
#endif /* transputerbuild */
@@ -345,16 +345,16 @@ Xmris.ad : Xmris-ad.src
XCOMM score directory install
install ::
- MakeDir($(SCORE))
+ MakeDir($(DESTDIR)$(SCORE))
@#not all $(INSTALL) have a -d flag, have to do it explicitly
- @echo installing $(INSTSCOREFLAGS) $(SCORE)
+ @echo installing $(INSTSCOREFLAGS) $(DESTDIR)$(SCORE)
@set -- $(INSTSCOREFLAGS) ; \
while [ $$# -ne 0 ] ; \
do \
case "$$1" in \
- "-o") shift ; chown $$1 $(SCORE) ; echo owner is $$1 ;; \
- "-m") shift ; chmod $$1 $(SCORE) ;; \
- "-g") shift ; chgrp $$1 $(SCORE) ; echo group is $$1 ;; \
+ "-o") shift ; chown $$1 $(DESTDIR)$(SCORE) ; echo owner is $$1 ;; \
+ "-m") shift ; chmod $$1 $(DESTDIR)$(SCORE) ;; \
+ "-g") shift ; chgrp $$1 $(DESTDIR)$(SCORE) ; echo group is $$1 ;; \
*) echo unknown option '$$1' ;; \
esac ; \
shift ; \
@@ -363,11 +363,11 @@ install ::
#ifdef InstallDefaultGardens
XCOMM install default gardens
install :: $(GARDENS)
- MakeDir(InstallDefaultGardens)
+ MakeDir($(DESTDIR)InstallDefaultGardens)
@set dummy $(GARDENS) ; shift ; \
while [ $$# != 0 ] ; \
do \
- (set -x ; $(INSTALL) -c $(INSTAPPFLAGS) $$1 InstallDefaultGardens/$$1) ; \
+ (set -x ; $(INSTALL) -c $(INSTAPPFLAGS) $$1 $(DESTDIR)InstallDefaultGardens/$$1) ; \
shift ; \
done
#endif /* InstallDefaultGardens */