12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- $OpenBSD: patch-Makefile,v 1.7 2017/06/10 14:18:37 giovanni Exp $
- Index: Makefile
- --- Makefile.orig
- +++ Makefile
- @@ -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
- @@ -53,10 +53,10 @@ 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/appdata
- + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/applications
- + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/dbus-1/services
- mkdir -p ${EXAILECONFDIR}
-
- uninstall:
- @@ -108,7 +108,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
- @@ -117,10 +117,10 @@ 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/
- + ${DESTDIR}${TRUEPREFIX}/share/applications/
- install -m 644 data/exaile.appdata.xml \
- ${DESTDIR}${PREFIX}/share/appdata/
- - -install -m 644 exaile.1.gz ${DESTDIR}${PREFIX}/share/man/man1/
- + -install -m 644 exaile.1.gz ${DESTDIR}${TRUEPREFIX}/share/man/man1/
- install -m 644 data/config/settings.ini ${EXAILECONFDIR}
- tools/generate-launcher "${DESTDIR}" "${PREFIX}" "${LIBINSTALLDIR}" \
- "${PYTHON2_CMD}" && \
- @@ -135,10 +135,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:
|