1
0

050-libseafile-makefile-fixes.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff -rupN seafile-server-5.1.1.orig/lib/Makefile.am seafile-server-5.1.1/lib/Makefile.am
  2. --- seafile-server-5.1.1.orig/lib/Makefile.am 2016-04-21 11:05:26.000000000 +0200
  3. +++ seafile-server-5.1.1/lib/Makefile.am 2016-04-22 10:09:41.567751561 +0200
  4. @@ -1,3 +1,5 @@
  5. +include $(TOPDIR)/rules.mk
  6. +
  7. pcfiles = libseafile.pc
  8. pkgconfig_DATA = $(pcfiles)
  9. pkgconfigdir = $(libdir)/pkgconfig
  10. @@ -35,7 +37,7 @@ seafile-rpc-wrapper.c: seafile-object.h
  11. seafile-object.h: ${seafile_object_define}
  12. rm -f $@
  13. - valac --pkg posix ${seafile_object_define} -C -H seafile-object.h
  14. + "$(STAGING_DIR_HOSTPKG)/bin/valac" --pkg posix ${seafile_object_define} -C -H seafile-object.h
  15. DISTCLEANFILES = ${searpc_gen}
  16. @@ -64,7 +66,7 @@ rpc_table.stamp: ${top_srcdir}/lib/rpc_t
  17. @rm -f rpc_table.tmp
  18. @touch rpc_table.tmp
  19. @echo "[libsearpc]: generating rpc header files"
  20. - @PYTHON@ `which searpc-codegen.py` ${top_srcdir}/lib/rpc_table.py
  21. + @PYTHON@ "$(STAGING_DIR)/usr/bin/searpc-codegen.py" ${top_srcdir}/lib/rpc_table.py
  22. @echo "[libsearpc]: done"
  23. @mv -f rpc_table.tmp $@
  24. @@ -74,7 +76,7 @@ vala.stamp: ${seafile_object_define}
  25. rm -f ${seafile_object_gen}
  26. @rm -f vala.tmp
  27. @touch vala.tmp
  28. - valac -C --pkg posix $^
  29. + "$(STAGING_DIR_HOSTPKG)/bin/valac" -C --pkg posix $^
  30. @mv -f vala.tmp $@
  31. ${seafile_object_gen}: vala.stamp
  32. @@ -90,5 +92,5 @@ install-data-local:
  33. if MACOS
  34. sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
  35. else
  36. - ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
  37. + ${SED} "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
  38. endif