You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

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