openbsd-ports/audio/pacpl/patches/patch-Makefile_in
ajacoutot 937bad0998 - update pacpl to version 4.0.3
from Andreas Bihlmaier (maintainer) with some tweaks.
2008-12-23 15:52:42 +00:00

101 lines
2.9 KiB
Plaintext

$OpenBSD: patch-Makefile_in,v 1.1 2008/12/23 15:52:42 ajacoutot Exp $
--- Makefile.in.orig Sat Aug 23 17:13:47 2008
+++ Makefile.in Thu Nov 13 14:52:56 2008
@@ -70,7 +70,7 @@ MIMELNK = $(MIMEDIR)/x-ape.desktop \
#
DESTDIR =
-KDEDIR = /usr
+KDEDIR = ${LOCALBASE}
#
# Target KDE directories
@@ -112,8 +112,8 @@ docdir = @docdir@
#
# Configuration files directories and other
#
-CONF_DIR = $(DESTDIR)/etc/$(PACKAGE_NAME)
-PO_DIR = $(DESTDIR)/usr/share/pacpl/locale
+CONF_DIR = $(PREFIX)/share/examples/$(PACKAGE_NAME)
+PO_DIR = $(PREFIX)/share/pacpl/locale
MOD_DIR = $(CONF_DIR)/modules
DOC_DIR = $(DESTDIR)$(docdir)$(PACKAGE_NAME)
MAN_DIR = $(DESTDIR)$(mandir)/man1
@@ -122,10 +122,10 @@ DOC_EXTRA_DIR = $(DOC_DIR)/extra
# Explicit rules
.PHONY: all install uninstall clean distclean
-all: pacpl.1.gz
+all: pacpl.1
-pacpl.1.gz: pacpl
- $(POD2MAN) $< | $(GZIP) -9 > $@
+pacpl.1: pacpl
+ $(POD2MAN) $< > $@
touch $@
install: all main install-pacpl-plugins
@@ -139,40 +139,40 @@ main:
$(INSTALL) -d $(DOC_DIR)
$(INSTALL) -d $(DOC_EXTRA_DIR)
- $(INSTALL) pacpl -t $(DESTDIR)$(bindir)
- $(INSTALL_DATA) pacpl.conf codecs.conf -t $(CONF_DIR)
- $(INSTALL_DATA) $(LANG_MODS) -t $(PO_DIR)
- $(INSTALL_DATA) extra/sample.m -t $(MOD_DIR)
- $(INSTALL_DATA) pacpl.1.gz -t $(MAN_DIR)
- $(INSTALL_DATA) $(DOCS) -t $(DOC_DIR)
- $(INSTALL_DATA) $(EXTRAS) -t $(DOC_EXTRA_DIR)
+ $(INSTALL) pacpl $(DESTDIR)$(bindir)
+ $(INSTALL_DATA) pacpl.conf codecs.conf $(CONF_DIR)
+ $(INSTALL_DATA) $(LANG_MODS) $(PO_DIR)
+ $(INSTALL_DATA) extra/sample.m $(MOD_DIR)
+ $(INSTALL_DATA) pacpl.1 $(MAN_DIR)
+ $(INSTALL_DATA) $(DOCS) $(DOC_DIR)
+ $(INSTALL_DATA) $(EXTRAS) $(DOC_EXTRA_DIR)
install-pacpl-plugins:
ifeq '$(INSTALL_KONQ)' 'yes'
$(INSTALL) -d $(KONQ_PLUGDIR)
$(INSTALL) -d $(KONQ_MIMEDIR)
- $(INSTALL_DATA) $(KONQDIR)/pacpl.desktop -t $(KONQ_PLUGDIR)
- $(INSTALL_DATA) $(MIMELNK) -t $(KONQ_MIMEDIR)
+ $(INSTALL_DATA) $(KONQDIR)/pacpl.desktop $(KONQ_PLUGDIR)
+ $(INSTALL_DATA) $(MIMELNK) $(KONQ_MIMEDIR)
endif
ifeq '$(INSTALL_DOLP)' 'yes'
$(INSTALL) -d $(DOLP_PLUGDIR)
- $(INSTALL_DATA) $(DOLPDIR)/pacpl.desktop -t $(DOLP_PLUGDIR)
+ $(INSTALL_DATA) $(DOLPDIR)/pacpl.desktop $(DOLP_PLUGDIR)
endif
ifeq '$(INSTALL_D3LP)' 'yes'
$(INSTALL) -d $(D3LP_PLUGDIR)
- $(INSTALL_DATA) $(D3LPDIR)/pacpl.desktop -t $(D3LP_PLUGDIR)
+ $(INSTALL_DATA) $(D3LPDIR)/pacpl.desktop $(D3LP_PLUGDIR)
endif
ifeq '$(INSTALL_AMAROK)' 'yes'
$(INSTALL) -d $(AMAROK_PLUGDIR)
- $(INSTALL) $(AMAROKDIR)/pacx -t $(AMAROK_PLUGDIR)
+ $(INSTALL) $(AMAROKDIR)/pacx $(AMAROK_PLUGDIR)
endif
clean:
- $(RM) pacpl.1.gz
+ $(RM) pacpl.1
distclean: clean
$(RM) config.log
@@ -182,7 +182,7 @@ distclean: clean
uninstall: uninstall-pacpl-plugins
$(RM) $(DESTDIR)$(bindir)/pacpl
- $(RM) $(MAN_DIR)/pacpl.1.gz
+ $(RM) $(MAN_DIR)/pacpl.1
$(RM) -r $(CONF_DIR)
$(RM) -r $(DOC_DIR)
$(RM) -r $(DESTDIR)/usr/share/pacpl