jpilot-1.8.2-fix-paths.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. * Modify Makefile.am's to be compliant with GNU and Gentoo filesystem conventions
  2. * Use redefinable variables instead of hard-replacing @VAR@-style variables
  3. * Replace abuse of 'libdir' install path variables
  4. --- a/docs/Makefile.am
  5. +++ b/docs/Makefile.am
  6. @@ -3,19 +3,17 @@
  7. man_MANS = jpilot.1 jpilot-dial.1 jpilot-sync.1 jpilot-dump.1 jpilot-merge.1
  8. # Install the standard GNU doc files
  9. -miscdir = $(datadir)/doc/$(PACKAGE)
  10. +miscdir = $(docdir)
  11. misc_DATA = \
  12. ../BUGS \
  13. ../ChangeLog \
  14. - ../COPYING \
  15. ../AUTHORS \
  16. - ../INSTALL \
  17. ../README \
  18. ../TODO
  19. # Install the manual docs
  20. -docdir = $(miscdir)/manual
  21. -doc_DATA = \
  22. +manualdir = $(htmldir)
  23. +manual_DATA = \
  24. manual.html \
  25. plugin.html \
  26. jpilot-address.png \
  27. --- a/Expense/Makefile.am
  28. +++ b/Expense/Makefile.am
  29. @@ -1,11 +1,11 @@
  30. -libdir = @libdir@/@PACKAGE@/plugins
  31. +pluginsdir = $(libdir)/$(PACKAGE)/plugins
  32. if MAKE_EXPENSE
  33. -lib_LTLIBRARIES = libexpense.la
  34. +plugins_LTLIBRARIES = libexpense.la
  35. libexpense_la_SOURCES = expense.c
  36. -libexpense_la_CFLAGS = @PILOT_FLAGS@ @GTK_CFLAGS@ -I$(top_srcdir)
  37. +libexpense_la_CFLAGS = $(PILOT_FLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
  38. libexpense_la_LDFLAGS = -module -avoid-version
  39. -libexpense_la_LIBADD = @GTK_LIBS@
  40. +libexpense_la_LIBADD = $(GTK_LIBS)
  41. endif
  42. --- a/icons/Makefile.am
  43. +++ b/icons/Makefile.am
  44. @@ -1,4 +1,4 @@
  45. -icondir = $(datadir)/doc/$(PACKAGE)/icons
  46. +icondir = $(docdir)/icons
  47. icon_DATA = \
  48. jpilot-icon1.xpm \
  49. jpilot-icon2.xpm \
  50. --- a/KeyRing/Makefile.am
  51. +++ b/KeyRing/Makefile.am
  52. @@ -1,13 +1,13 @@
  53. -libdir = @libdir@/@PACKAGE@/plugins
  54. +pluginsdir = $(libdir)/$(PACKAGE)/plugins
  55. EXTRA_DIST = README
  56. if MAKE_KEYRING
  57. -lib_LTLIBRARIES = libkeyring.la
  58. +plugins_LTLIBRARIES = libkeyring.la
  59. libkeyring_la_SOURCES = keyring.c
  60. -libkeyring_la_CFLAGS = @PILOT_FLAGS@ @GTK_CFLAGS@ @LIBGCRYPT_CFLAGS@ -I$(top_srcdir)
  61. +libkeyring_la_CFLAGS = $(PILOT_FLAGS) $(GTK_CFLAGS) $(LIBGCRYPT_CFLAGS) -I$(top_srcdir)
  62. libkeyring_la_LDFLAGS = -module -avoid-version
  63. -libkeyring_la_LIBADD = @OPENSSL_LIBS@ @GTK_LIBS@ @LIBGCRYPT_LIBS@
  64. +libkeyring_la_LIBADD = $(OPENSSL_LIBS) $(GTK_LIBS) $(LIBGCRYPT_LIBS)
  65. endif
  66. --- a/Makefile.am
  67. +++ b/Makefile.am
  68. @@ -161,18 +161,17 @@
  69. ACLOCAL_AMFLAGS = -I m4
  70. # Add i18n support
  71. -localedir = $(datadir)/locale
  72. I18NDEFS = -DLOCALEDIR=\"$(localedir)\"
  73. -AM_CFLAGS= @PILOT_FLAGS@ @GTK_CFLAGS@ ${I18NDEFS}
  74. +AM_CFLAGS= $(PILOT_FLAGS) $(GTK_CFLAGS) $(I18NDEFS)
  75. # Add linkflags
  76. jpilot_LDFLAGS = -export-dynamic
  77. -jpilot_LDADD=@LIBS@ @PILOT_LIBS@ @GTK_LIBS@
  78. -jpilot_dump_LDADD=@LIBS@ @PILOT_LIBS@ @GTK_LIBS@
  79. +jpilot_LDADD=$(LIBS) $(PILOT_LIBS) $(GTK_LIBS)
  80. +jpilot_dump_LDADD=$(LIBS) $(PILOT_LIBS) $(GTK_LIBS)
  81. jpilot_sync_LDFLAGS = -export-dynamic
  82. -jpilot_sync_LDADD=@LIBS@ @PILOT_LIBS@ @GTK_LIBS@
  83. -jpilot_merge_LDADD=@LIBS@ @PILOT_LIBS@ @GTK_LIBS@
  84. +jpilot_sync_LDADD=$(LIBS) $(PILOT_LIBS) $(GTK_LIBS)
  85. +jpilot_merge_LDADD=$(LIBS) $(PILOT_LIBS) $(GTK_LIBS)
  86. ################################################################################
  87. ## The rest of the file is copied over to the Makefile with only variable
  88. --- a/SyncTime/Makefile.am
  89. +++ b/SyncTime/Makefile.am
  90. @@ -1,11 +1,11 @@
  91. -libdir = @libdir@/@PACKAGE@/plugins
  92. +pluginsdir = $(libdir)/$(PACKAGE)/plugins
  93. if MAKE_SYNCTIME
  94. -lib_LTLIBRARIES = libsynctime.la
  95. +plugins_LTLIBRARIES = libsynctime.la
  96. libsynctime_la_SOURCES = synctime.c
  97. -libsynctime_la_CFLAGS = @PILOT_FLAGS@ @GTK_CFLAGS@ -I$(top_srcdir)
  98. +libsynctime_la_CFLAGS = $(PILOT_FLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
  99. libsynctime_la_LDFLAGS = -module -avoid-version
  100. -libsynctime_la_LIBADD = @GTK_LIBS@
  101. +libsynctime_la_LIBADD = $(GTK_LIBS)
  102. endif