patch-Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. $OpenBSD: patch-Makefile,v 1.7 2017/06/10 14:18:37 giovanni Exp $
  2. Index: Makefile
  3. --- Makefile.orig
  4. +++ Makefile
  5. @@ -1,17 +1,17 @@
  6. -PYTHON2_CMD ?= `command -v python2`
  7. +PYTHON2_CMD ?= ${MODPY_BIN}
  8. -PREFIX ?= /usr/local
  9. +PREFIX ?= ${TRUEPREFIX}
  10. LIBINSTALLDIR ?= /lib
  11. -XDGCONFDIR ?= /etc/xdg
  12. +XDGCONFDIR ?= ${PREFIX}/share/exaile/xdg
  13. EXAILEBINDIR = ${DESTDIR}${PREFIX}/bin
  14. -EXAILELIBDIR = ${DESTDIR}${PREFIX}${LIBINSTALLDIR}/exaile
  15. -EXAILESHAREDIR = ${DESTDIR}${PREFIX}/share/exaile
  16. +EXAILELIBDIR = ${DESTDIR}${MODPY_SITEPKG}/exaile
  17. +EXAILESHAREDIR = ${DESTDIR}${TRUEPREFIX}/share/exaile
  18. EXAILECONFDIR = ${DESTDIR}${XDGCONFDIR}/exaile
  19. .PHONY: dist test coverage clean sanitycheck
  20. -all: compile locale manpage
  21. +all: compile locale
  22. @echo "Ready to install..."
  23. # The no_locale stuff is by request of BSD people, please ensure
  24. @@ -53,10 +53,10 @@ make-install-dirs:
  25. mkdir -p ${EXAILESHAREDIR}/data/ui/widgets
  26. mkdir -p ${EXAILESHAREDIR}/data/migrations
  27. mkdir -p ${EXAILESHAREDIR}/data/migrations/migration_200907100931
  28. - mkdir -p ${DESTDIR}${PREFIX}/share/pixmaps
  29. - mkdir -p ${DESTDIR}${PREFIX}/share/applications
  30. - mkdir -p ${DESTDIR}${PREFIX}/share/man/man1
  31. - mkdir -p ${DESTDIR}${PREFIX}/share/dbus-1/services
  32. + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/pixmaps
  33. + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/appdata
  34. + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/applications
  35. + mkdir -p ${DESTDIR}${TRUEPREFIX}/share/dbus-1/services
  36. mkdir -p ${EXAILECONFDIR}
  37. uninstall:
  38. @@ -108,7 +108,7 @@ install-target: make-install-dirs
  39. install -m 644 data/images/scalable/*.svg ${EXAILESHAREDIR}/data/images/scalable
  40. install -m 644 data/images/*.png ${EXAILESHAREDIR}/data/images
  41. install -m 644 data/images/128x128/exaile.png \
  42. - ${DESTDIR}${PREFIX}/share/pixmaps/exaile.png
  43. + ${DESTDIR}${TRUEPREFIX}/share/pixmaps/exaile.png
  44. install -m 644 data/ui/*.ui ${EXAILESHAREDIR}/data/ui
  45. install -m 644 data/ui/panel/*.ui ${EXAILESHAREDIR}/data/ui/panel
  46. install -m 644 data/ui/preferences/*.ui ${EXAILESHAREDIR}/data/ui/preferences
  47. @@ -117,10 +117,10 @@ install-target: make-install-dirs
  48. install -m 644 data/migrations/migration_200907100931/*.py \
  49. ${EXAILESHAREDIR}/data/migrations/migration_200907100931/
  50. install -m 644 data/exaile.desktop \
  51. - ${DESTDIR}${PREFIX}/share/applications/
  52. + ${DESTDIR}${TRUEPREFIX}/share/applications/
  53. install -m 644 data/exaile.appdata.xml \
  54. ${DESTDIR}${PREFIX}/share/appdata/
  55. - -install -m 644 exaile.1.gz ${DESTDIR}${PREFIX}/share/man/man1/
  56. + -install -m 644 exaile.1.gz ${DESTDIR}${TRUEPREFIX}/share/man/man1/
  57. install -m 644 data/config/settings.ini ${EXAILECONFDIR}
  58. tools/generate-launcher "${DESTDIR}" "${PREFIX}" "${LIBINSTALLDIR}" \
  59. "${PYTHON2_CMD}" && \
  60. @@ -135,10 +135,10 @@ locale:
  61. install-locale:
  62. for f in `find po -name exaile.mo` ; do \
  63. install -d -m 755 \
  64. - `echo $$f | sed "s|^po|${DESTDIR}${PREFIX}/share/locale|" | \
  65. + `echo $$f | sed "s|^po|${DESTDIR}${TRUEPREFIX}/share/locale|" | \
  66. xargs dirname` && \
  67. install -m 644 $$f \
  68. - `echo $$f | sed "s|^po|${DESTDIR}${PREFIX}/share/locale|"` ; \
  69. + `echo $$f | sed "s|^po|${DESTDIR}${TRUEPREFIX}/share/locale|"` ; \
  70. done
  71. plugins_dist: