libffi.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #############################################################
  2. #
  3. # libffi
  4. #
  5. #############################################################
  6. LIBFFI_VERSION = 3.0.10
  7. LIBFFI_SITE = ftp://sources.redhat.com/pub/libffi/
  8. LIBFFI_INSTALL_STAGING = YES
  9. # Move the headers to the usual location, and adjust the .pc file
  10. # accordingly
  11. define LIBFFI_MOVE_STAGING_HEADERS
  12. mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h $(STAGING_DIR)/usr/include/
  13. $(SED) '/^includedir.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
  14. $(SED) '/^Cflags:.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
  15. rm -rf $(TARGET_DIR)/usr/lib/libffi-*
  16. endef
  17. LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
  18. # Similar for target headers
  19. define LIBFFI_MOVE_TARGET_HEADERS
  20. install -d $(TARGET_DIR)/usr/include/
  21. mv $(TARGET_DIR)/usr/lib/libffi-*/include/*.h $(TARGET_DIR)/usr/include/
  22. $(SED) '/^includedir.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
  23. $(SED) '/^Cflags:.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
  24. rm -rf $(TARGET_DIR)/usr/lib/libffi-*
  25. endef
  26. LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_MOVE_TARGET_HEADERS
  27. $(eval $(call AUTOTARGETS))
  28. $(eval $(call AUTOTARGETS,host))