pkgsrc/chat/gtmess/patches/patch-ab
2005-09-28 23:11:27 +00:00

119 lines
4.7 KiB
Text

$NetBSD: patch-ab,v 1.1 2005/09/28 23:11:27 rafal Exp $
--- data/Makefile.in.orig 2005-03-18 13:38:19.000000000 -0500
+++ data/Makefile.in 2005-09-23 01:12:03.000000000 -0400
@@ -54,7 +54,7 @@
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = data
-DIST_COMMON = $(dist_man1_MANS) $(dist_pixmap_DATA) \
+DIST_COMMON = $(dist_man1_MANS) $(dist_pixmap_DATA) $(dist_snd_DATA) \
$(nobase_dist_pkgdata_DATA) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -67,12 +67,15 @@
SOURCES =
DIST_SOURCES =
man1dir = $(mandir)/man1
-am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgdatadir)"
+am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pixmapdir)" \
+ "$(DESTDIR)$(snddir)" "$(DESTDIR)$(pkgdatadir)"
NROFF = nroff
MANS = $(dist_man1_MANS)
dist_pixmapDATA_INSTALL = $(INSTALL_DATA)
+dist_sndDATA_INSTALL = $(INSTALL_DATA)
nobase_dist_pkgdataDATA_INSTALL = $(install_sh_DATA)
-DATA = $(dist_pixmap_DATA) $(nobase_dist_pkgdata_DATA)
+DATA = $(dist_pixmap_DATA) $(dist_snd_DATA) \
+ $(nobase_dist_pkgdata_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
@@ -148,7 +151,9 @@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
dist_man1_MANS = gtmess.1 gtmess-gw.1 gtmess-notify.1
-nobase_dist_pkgdata_DATA = root.pem snd/meout.wav snd/newemail.wav snd/offline.wav snd/online.wav snd/ring.wav snd/type.wav
+nobase_dist_pkgdata_DATA = root.pem
+snddir = $(pkgdatadir)/snd
+dist_snd_DATA = snd/meout.wav snd/newemail.wav snd/offline.wav snd/online.wav snd/ring.wav snd/type.wav
pixmapdir = $(datadir)/pixmaps
dist_pixmap_DATA = gtmess_icon-64.png gtmess_icon-48.png gtmess_icon2-64.png gtmess_icon2-48.png gtmess_icon2-32.png gtmess_icon2-16.png
all: all-am
@@ -246,6 +251,23 @@
echo " rm -f '$(DESTDIR)$(pixmapdir)/$$f'"; \
rm -f "$(DESTDIR)$(pixmapdir)/$$f"; \
done
+install-dist_sndDATA: $(dist_snd_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(snddir)" || $(mkdir_p) "$(DESTDIR)$(snddir)"
+ @list='$(dist_snd_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(dist_sndDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(snddir)/$$f'"; \
+ $(dist_sndDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(snddir)/$$f"; \
+ done
+
+uninstall-dist_sndDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(dist_snd_DATA)'; for p in $$list; do \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+ echo " rm -f '$(DESTDIR)$(snddir)/$$f'"; \
+ rm -f "$(DESTDIR)$(snddir)/$$f"; \
+ done
install-nobase_dist_pkgdataDATA: $(nobase_dist_pkgdata_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
@@ -310,7 +332,7 @@
check: check-am
all-am: Makefile $(MANS) $(DATA)
installdirs:
- for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgdatadir)"; do \
+ for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(snddir)" "$(DESTDIR)$(pkgdatadir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-am
@@ -355,8 +377,8 @@
info-am:
-install-data-am: install-dist_pixmapDATA install-man \
- install-nobase_dist_pkgdataDATA
+install-data-am: install-dist_pixmapDATA install-dist_sndDATA \
+ install-man install-nobase_dist_pkgdataDATA
install-exec-am:
@@ -382,22 +404,24 @@
ps-am:
-uninstall-am: uninstall-dist_pixmapDATA uninstall-info-am \
- uninstall-man uninstall-nobase_dist_pkgdataDATA
+uninstall-am: uninstall-dist_pixmapDATA uninstall-dist_sndDATA \
+ uninstall-info-am uninstall-man \
+ uninstall-nobase_dist_pkgdataDATA
uninstall-man: uninstall-man1
.PHONY: all all-am check check-am clean clean-generic distclean \
distclean-generic distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am \
- install-dist_pixmapDATA install-exec install-exec-am \
- install-info install-info-am install-man install-man1 \
- install-nobase_dist_pkgdataDATA install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
+ install-dist_pixmapDATA install-dist_sndDATA install-exec \
+ install-exec-am install-info install-info-am install-man \
+ install-man1 install-nobase_dist_pkgdataDATA install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am uninstall uninstall-am \
- uninstall-dist_pixmapDATA uninstall-info-am uninstall-man \
- uninstall-man1 uninstall-nobase_dist_pkgdataDATA
+ uninstall-dist_pixmapDATA uninstall-dist_sndDATA \
+ uninstall-info-am uninstall-man uninstall-man1 \
+ uninstall-nobase_dist_pkgdataDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.