openbsd-ports/audio/exaile/patches/patch-Makefile
giovanni 6ea3d66dea Update to 0.3.2.0
ok stephan@
2010-10-13 17:11:10 +00:00

91 lines
3.5 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.4 2010/10/13 17:11:10 giovanni Exp $
--- Makefile.orig Sat Jun 26 01:21:23 2010
+++ Makefile Tue Oct 12 12:54:09 2010
@@ -1,14 +1,14 @@
-PREFIX ?= /usr/local
+PREFIX ?= ${TRUEPREFIX}
LIBINSTALLDIR ?= /lib
-XDGCONFDIR ?= /etc/xdg
+XDGCONFDIR ?= ${PREFIX}/share/exaile/xdg
-EXAILELIBDIR = $(DESTDIR)$(PREFIX)$(LIBINSTALLDIR)/exaile
-EXAILESHAREDIR = $(DESTDIR)$(PREFIX)/share/exaile
+EXAILELIBDIR = $(DESTDIR)${MODPY_SITEPKG}/exaile
+EXAILESHAREDIR = $(DESTDIR)${TRUEPREFIX}/share/exaile
EXAILECONFDIR = $(DESTDIR)$(XDGCONFDIR)/exaile
.PHONY: dist test coverage clean sanitycheck
-all: compile locale manpage
+all: compile locale
@echo "Ready to install..."
# The no_locale stuff is by request of BSD people, please ensure
@@ -17,12 +17,12 @@ all_no_locale: compile
@echo "Ready to install..."
compile:
- python -m compileall -q xl xlgui
- -python -O -m compileall -q xl xlgui
+ ${MODPY_BIN} -m compileall -q xl xlgui
+ -${MODPY_BIN} -O -m compileall -q xl xlgui
$(MAKE) -C plugins compile
make-install-dirs:
- mkdir -p $(DESTDIR)$(PREFIX)/bin
+ mkdir -p $(DESTDIR)${TRUEPREFIX}/bin
mkdir -p $(EXAILELIBDIR)
mkdir -p $(EXAILELIBDIR)/xl
mkdir -p $(EXAILELIBDIR)/xl/metadata
@@ -48,9 +48,9 @@ make-install-dirs:
mkdir -p $(EXAILESHAREDIR)/data/ui/widgets
mkdir -p $(EXAILESHAREDIR)/data/migrations
mkdir -p $(EXAILESHAREDIR)/data/migrations/migration_200907100931
- mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
- mkdir -p $(DESTDIR)$(PREFIX)/share/applications
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
+ mkdir -p $(DESTDIR)${TRUEPREFIX}/share/pixmaps
+ mkdir -p $(DESTDIR)${TRUEPREFIX}/share/applications
+ mkdir -p $(DESTDIR)${TRUEPREFIX}/man/man1
mkdir -p $(EXAILECONFDIR)
uninstall:
@@ -99,7 +99,7 @@ install-target: make-install-dirs
install -m 644 data/images/scalable/*.svg $(EXAILESHAREDIR)/data/images/scalable
install -m 644 data/images/*.png $(EXAILESHAREDIR)/data/images
install -m 644 data/images/48x48/exaile.png \
- $(DESTDIR)$(PREFIX)/share/pixmaps/exaile.png
+ $(DESTDIR)${TRUEPREFIX}/share/pixmaps/exaile.png
install -m 644 data/ui/*.ui $(EXAILESHAREDIR)/data/ui
install -m 644 data/ui/preferences/*.ui $(EXAILESHAREDIR)/data/ui/preferences
install -m 644 data/ui/widgets/*.ui $(EXAILESHAREDIR)/data/ui/widgets
@@ -107,11 +107,11 @@ install-target: make-install-dirs
install -m 644 data/migrations/migration_200907100931/*.py \
$(EXAILESHAREDIR)/data/migrations/migration_200907100931/
install -m 644 data/exaile.desktop \
- $(DESTDIR)$(PREFIX)/share/applications/
- -install -m 644 exaile.1.gz $(DESTDIR)$(PREFIX)/share/man/man1/
+ $(DESTDIR)${TRUEPREFIX}/share/applications/
+ -install -m 644 exaile.1 $(DESTDIR)${TRUEPREFIX}/man/man1/
install -m 644 data/config/settings.ini $(EXAILECONFDIR)
- tools/generate-launcher "$(DESTDIR)" "$(PREFIX)" "$(LIBINSTALLDIR)" && \
- chmod 755 $(DESTDIR)$(PREFIX)/bin/exaile
+ tools/generate-launcher "$(DESTDIR)" "${TRUEPREFIX}" "$(LIBINSTALLDIR)" && \
+ chmod 755 $(DESTDIR)${TRUEPREFIX}/bin/exaile
$(MAKE) -C plugins install
locale:
@@ -120,10 +120,10 @@ locale:
install-locale:
for f in `find po -name exaile.mo` ; do \
install -d -m 755 \
- `echo $$f | sed "s|^po|$(DESTDIR)$(PREFIX)/share/locale|" | \
+ `echo $$f | sed "s|^po|$(DESTDIR)${TRUEPREFIX}/share/locale|" | \
xargs dirname` && \
install -m 644 $$f \
- `echo $$f | sed "s|^po|$(DESTDIR)$(PREFIX)/share/locale|"` ; \
+ `echo $$f | sed "s|^po|$(DESTDIR)${TRUEPREFIX}/share/locale|"` ; \
done
plugins_dist: