pkgsrc/graphics/povray/patches/patch-ad

63 lines
2.5 KiB
Text

$NetBSD: patch-ad,v 1.5 2011/07/31 17:58:09 jakllsch Exp $
--- Makefile.in.orig 2004-08-02 23:20:09.000000000 +0000
+++ Makefile.in
@@ -169,7 +169,7 @@ program_transform_name = @program_transf
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
subdirs = @subdirs@
-sysconfdir = @sysconfdir@
+sysconfdir = @datadir@/examples/@PACKAGE@
target_alias = @target_alias@
# Directories.
@@ -343,12 +343,12 @@ uninstall-man1:
dist_povconfDATA_INSTALL = $(INSTALL_DATA)
install-dist_povconfDATA: $(dist_povconf_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(povconfdir)
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
@list='$(dist_povconf_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(dist_povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(povconfdir)/$$f"; \
- $(dist_povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(povconfdir)/$$f; \
+ echo " $(dist_povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+ $(dist_povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
done
uninstall-dist_povconfDATA:
@@ -361,12 +361,12 @@ uninstall-dist_povconfDATA:
povconfDATA_INSTALL = $(INSTALL_DATA)
install-povconfDATA: $(povconf_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(povconfdir)
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
@list='$(povconf_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(povconfdir)/$$f"; \
- $(povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(povconfdir)/$$f; \
+ echo " $(povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+ $(povconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
done
uninstall-povconfDATA:
@@ -813,17 +813,6 @@ install-data-local:
for f in $$filelist ; do \
$(INSTALL_DATA) $(top_srcdir)/doc/$$f $(DESTDIR)$(povdocdir)/$$f ; \
done
- @echo "Copying user configuration and INI files..."; \
- $(mkinstalldirs) $(povconfuser); \
- filelist='povray.conf povray.ini'; \
- for f in $$filelist ; do \
- if test -e $(povconfuser)/$$f; then \
- echo "Creating backup of $(povconfuser)/$$f"; \
- mv -f $(povconfuser)/$$f $(povconfuser)/$$f.bak; \
- fi; \
- done; \
- $(INSTALL_DATA) $(top_srcdir)/povray.conf $(povconfuser)/povray.conf ; \
- $(INSTALL_DATA) $(top_builddir)/povray.ini $(povconfuser)/povray.ini
# For 'make uninstall' we remove the whole POV-Ray data directory.
# We have to use uninstall-local and not uninstall-data-local.