2013-01-11 05:17:19 -05:00
|
|
|
$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
|
2012-10-18 04:15:41 -04:00
|
|
|
@@ -1,17 +1,17 @@
|
2013-01-11 05:17:19 -05:00
|
|
|
-PYTHON2_CMD ?= `command -v python2`
|
2012-10-18 04:15:41 -04:00
|
|
|
+PYTHON2_CMD ?= ${MODPY_BIN}
|
|
|
|
|
2010-04-21 03:02:42 -04:00
|
|
|
-PREFIX ?= /usr/local
|
|
|
|
+PREFIX ?= ${TRUEPREFIX}
|
|
|
|
LIBINSTALLDIR ?= /lib
|
|
|
|
-XDGCONFDIR ?= /etc/xdg
|
|
|
|
+XDGCONFDIR ?= ${PREFIX}/share/exaile/xdg
|
2009-07-23 04:02:36 -04:00
|
|
|
|
2012-10-18 04:15:41 -04:00
|
|
|
EXAILEBINDIR = ${DESTDIR}${PREFIX}/bin
|
|
|
|
-EXAILELIBDIR = ${DESTDIR}${PREFIX}${LIBINSTALLDIR}/exaile
|
|
|
|
-EXAILESHAREDIR = ${DESTDIR}${PREFIX}/share/exaile
|
2010-04-21 03:02:42 -04:00
|
|
|
+EXAILELIBDIR = $(DESTDIR)${MODPY_SITEPKG}/exaile
|
|
|
|
+EXAILESHAREDIR = $(DESTDIR)${TRUEPREFIX}/share/exaile
|
2012-10-18 04:15:41 -04:00
|
|
|
EXAILECONFDIR = ${DESTDIR}${XDGCONFDIR}/exaile
|
2009-07-23 04:02:36 -04:00
|
|
|
|
2010-04-21 03:02:42 -04:00
|
|
|
.PHONY: dist test coverage clean sanitycheck
|
2010-10-13 13:11:10 -04:00
|
|
|
|
|
|
|
-all: compile locale manpage
|
|
|
|
+all: compile locale
|
|
|
|
@echo "Ready to install..."
|
|
|
|
|
|
|
|
# The no_locale stuff is by request of BSD people, please ensure
|
2012-10-18 04:15:41 -04:00
|
|
|
@@ -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}
|
2009-07-23 04:02:36 -04:00
|
|
|
|
2010-04-21 03:02:42 -04:00
|
|
|
uninstall:
|
2012-10-18 04:15:41 -04:00
|
|
|
@@ -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
|
2010-04-21 03:02:42 -04:00
|
|
|
install -m 644 data/migrations/migration_200907100931/*.py \
|
2012-10-18 04:15:41 -04:00
|
|
|
${EXAILESHAREDIR}/data/migrations/migration_200907100931/
|
2010-04-21 03:02:42 -04:00
|
|
|
install -m 644 data/exaile.desktop \
|
2012-10-18 04:15:41 -04:00
|
|
|
- ${DESTDIR}${PREFIX}/share/applications/
|
|
|
|
- -install -m 644 exaile.1.gz ${DESTDIR}${PREFIX}/share/man/man1/
|
2010-04-21 03:02:42 -04:00
|
|
|
+ $(DESTDIR)${TRUEPREFIX}/share/applications/
|
2010-10-13 13:11:10 -04:00
|
|
|
+ -install -m 644 exaile.1 $(DESTDIR)${TRUEPREFIX}/man/man1/
|
2012-10-18 04:15:41 -04:00
|
|
|
install -m 644 data/config/settings.ini ${EXAILECONFDIR}
|
|
|
|
tools/generate-launcher "${DESTDIR}" "${PREFIX}" "${LIBINSTALLDIR}" \
|
|
|
|
"${PYTHON2_CMD}" && \
|
|
|
|
@@ -130,10 +129,10 @@ locale:
|
2010-04-21 03:02:42 -04:00
|
|
|
install-locale:
|
|
|
|
for f in `find po -name exaile.mo` ; do \
|
|
|
|
install -d -m 755 \
|
2012-10-18 04:15:41 -04:00
|
|
|
- `echo $$f | sed "s|^po|${DESTDIR}${PREFIX}/share/locale|" | \
|
|
|
|
+ `echo $$f | sed "s|^po|${DESTDIR}${TRUEPREFIX}/share/locale|" | \
|
2010-04-21 03:02:42 -04:00
|
|
|
xargs dirname` && \
|
|
|
|
install -m 644 $$f \
|
2012-10-18 04:15:41 -04:00
|
|
|
- `echo $$f | sed "s|^po|${DESTDIR}${PREFIX}/share/locale|"` ; \
|
|
|
|
+ `echo $$f | sed "s|^po|${DESTDIR}${TRUEPREFIX}/share/locale|"` ; \
|
2010-04-21 03:02:42 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
plugins_dist:
|