openbsd-ports/games/xpat2/patches/patch-src_Imakefile
ajacoutot 56f799f2a3 - update to xpat2-1.07
- change MASTER_SITES
2007-12-07 16:49:36 +00:00

50 lines
1.8 KiB
Plaintext

$OpenBSD: patch-src_Imakefile,v 1.3 2007/12/07 16:49:36 ajacoutot Exp $
--- src/Imakefile.orig Sun Nov 5 20:05:10 2000
+++ src/Imakefile Fri Dec 7 17:43:10 2007
@@ -188,7 +188,7 @@ STDOBJS = rules.o commands.o messages.o hints.o layou
r_Calculatio.o r_Michaels.o r_Royal.o r_Canfield.o \
r_mdCanfield.o r_Bakers.o r_Oonsoo.o r_BlueMoon.o
-OBJS = $(STDOBJS) $(XOBJS) $(KIT_OBJS)
+OBJS = $(STDOBJS) $(XOBJS) $(KIT_OBJS) -lcompat
MYPROG = xpat2
@@ -205,23 +205,23 @@ XCOMM X-widget.c additionally requires TableauP.h
all:: $(MYPROG)
install:: $(MYPROGS)
- mkdirhier $(XPATLIBDIR)
- chmod 755 $(XPATLIBDIR)
+ mkdirhier $(DESTDIR)$(XPATLIBDIR)
+ chmod 755 $(DESTDIR)$(XPATLIBDIR)
for f in $(LANGUAGES); do \
- mkdirhier $(APPDEFSDIR)/$$f/app-defaults; \
- cp ../lib/$$f/XPat $(APPDEFSDIR)/$$f/app-defaults; \
- chmod 755 $(APPDEFSDIR)/$$f/app-defaults; \
- chmod 644 $(APPDEFSDIR)/$$f/app-defaults/XPat; \
+ mkdirhier $(DESTDIR)$(APPDEFSDIR)/$$f/app-defaults; \
+ cp ../lib/$$f/XPat $(DESTDIR)$(APPDEFSDIR)/$$f/app-defaults; \
+ chmod 755 $(DESTDIR)$(APPDEFSDIR)/$$f/app-defaults; \
+ chmod 644 $(DESTDIR)$(APPDEFSDIR)/$$f/app-defaults/XPat; \
done
- (cd ../lib; tar cf - * | (cd $(XPATLIBDIR); tar xf -))
- chown -R root $(XPATLIBDIR)
- chmod -R a+r $(XPATLIBDIR)
+ (cd ../lib; tar cf - * | (cd $(DESTDIR)$(XPATLIBDIR); tar xf -))
+ chown -R root $(DESTDIR)$(XPATLIBDIR)
+ chmod -R a+r $(DESTDIR)$(XPATLIBDIR)
for f in $(LANGUAGES); do \
- chmod 755 $(XPATLIBDIR)/$$f; \
+ chmod 755 $(DESTDIR)$(XPATLIBDIR)/$$f; \
done
- mkdirhier $(XPATMANDIR)
- cp xpat2.man $(XPATMANDIR)/xpat2.6x
- chmod 644 $(XPATMANDIR)/xpat2.6x
+ mkdirhier $(DESTDIR)$(XPATMANDIR)
+ cp xpat2.man $(DESTDIR)$(XPATMANDIR)/xpat2.6
+ chmod 644 $(DESTDIR)$(XPATMANDIR)/xpat2.6
ComplexProgramTarget($(MYPROG))
InstallAppDefaults(XPat)