pkgsrc/graphics/urt/patches/patch-az
heinz d6f795d011 - Updated outdated download URLs (taken from FreeBSD's Makefile).
- Added HOMEPAGE.
- Libraries should be installed with BSD_INSTALL_LIB, not BSD_INSTALL_DATA
  (see patch-ak).
- Added support for installation to DESTDIR (Makefile, patch-ac, patch-ak,
  patch-am, patch-az).
2007-05-28 20:14:00 +00:00

28 lines
819 B
Text

$NetBSD: patch-az,v 1.1 2007/05/28 20:14:00 heinz Exp $
Prepend DESTDIR for staged installation.
--- include/makefile.src.orig 1991-06-07 17:56:22.000000000 +0200
+++ include/makefile.src
@@ -35,8 +35,8 @@ install: $(HDRS)
@sh -c "if test 'x$(DEST)' != x ; then \
if test 'x$(HDRS)' != x ; then eval \
'for hdr in $?; do \
- echo cp \$$hdr $(DEST)/\$$hdr ; \
- cp \$$hdr $(DEST)/\$$hdr; \
+ echo cp \$$hdr $(DESTDIR)$(DEST)/\$$hdr ; \
+ cp \$$hdr $(DESTDIR)$(DEST)/\$$hdr; \
done' ; \
else \
true ; \
@@ -54,8 +54,8 @@ clean:
pristine:
@-if test "x$(DEST)" != x ; then eval \
'for hdr in $(HDRS); do \
- echo rm -f $(DEST)/$$hdr; \
- rm -f $(DEST)/$$hdr; \
+ echo rm -f $(DESTDIR)$(DEST)/$$hdr; \
+ rm -f $(DESTDIR)$(DEST)/$$hdr; \
done' ; \
else \
true ; \