openbsd-ports/games/xmris/patches/patch-Imakefile
landry b7e835036b Fix on hppa, like any port using Imake it believes that as soon as
you're on a hppa architecture you run HPUX.
2012-09-29 08:16:50 +00:00

73 lines
2.3 KiB
Plaintext

$OpenBSD: patch-Imakefile,v 1.3 2012/09/29 08:16:50 landry Exp $
--- Imakefile.orig Fri Dec 22 05:05:52 1995
+++ Imakefile Sat Sep 29 02:10:31 2012
@@ -51,10 +51,6 @@ XCOMM Allow debugging?
XCOMM CDEBUGFLAGS = -g STATICDEBUG
XCOMM debug event loop?
XCOMM CDEBUGFLAGS += -DDEBUGEVENTLOOP
-#ifdef HPArchitecture
-CCOPTIONS = -Aa -D_HPUX_SOURCE
-EXTRA_LOAD_FLAGS = -lV3
-#endif
XCOMM system environment
XCOMM
@@ -122,7 +118,7 @@ FONT = thefont
#ifndef InstallDefaultGardens
#ifdef InstallAppDefFiles
-#define InstallDefaultGardens $(DESTDIR)/$(XAPPLOADDIR)/$(APP)
+#define InstallDefaultGardens $(XAPPLOADDIR)/$(APP)
#endif
#endif
@@ -296,9 +292,9 @@ NormalProgramTarget(xmris,$(MRISOBJS),$(DEPLIBS),$(LOC
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 +341,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 +359,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 */