openbsd-ports/audio/exaile/patches/patch-Makefile
giovanni 5f7541e0e3 bugfix update to 3.3.1
many plugins fixed, dynamic playlists are now working correctly
2013-01-11 10:17:19 +00:00

75 lines
3.0 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.6 2013/01/11 10:17:19 giovanni Exp $
--- Makefile.orig Thu Nov 15 18:28:50 2012
+++ Makefile Thu Jan 3 18:01:36 2013
@@ -1,17 +1,17 @@
-PYTHON2_CMD ?= `command -v python2`
+PYTHON2_CMD ?= ${MODPY_BIN}
-PREFIX ?= /usr/local
+PREFIX ?= ${TRUEPREFIX}
LIBINSTALLDIR ?= /lib
-XDGCONFDIR ?= /etc/xdg
+XDGCONFDIR ?= ${PREFIX}/share/exaile/xdg
EXAILEBINDIR = ${DESTDIR}${PREFIX}/bin
-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
@@ -52,10 +52,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}${PREFIX}/share/dbus-1/services
+ mkdir -p ${DESTDIR}${TRUEPREFIX}/share/pixmaps
+ mkdir -p ${DESTDIR}${TRUEPREFIX}/share/applications
+ mkdir -p ${DESTDIR}${TRUEPREFIX}/share/dbus-1/services
mkdir -p ${EXAILECONFDIR}
uninstall:
@@ -105,7 +104,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/128x128/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/panel/*.ui ${EXAILESHAREDIR}/data/ui/panel
install -m 644 data/ui/preferences/*.ui ${EXAILESHAREDIR}/data/ui/preferences
@@ -114,8 +113,8 @@ 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}" \
"${PYTHON2_CMD}" && \
@@ -130,10 +129,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: