Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= pkgconf
  5. PKG_VERSION:= 0.9.6
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 8f5f48e52ddef0c3cbffe93f32d5148041e0030b8798b49b0b5fe72f4968d7ec
  8. PKG_DESCR:= smart pkg-config replacement
  9. PKG_SECTION:= dev/tools
  10. HOST_BUILDDEP:= sed-host
  11. PKG_URL:= https://github.com/pkgconf/pkgconf
  12. PKG_SITES:= http://rabbit.dereferenced.org/~nenolod/distfiles/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include $(ADK_TOPDIR)/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. hostpost-install:
  19. $(CP) ./files/pkg-config $(STAGING_HOST_DIR)/usr/bin
  20. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  21. PATH="$(HOST_PATH)" $(SED) "s#@@OPTS@@#--static#" $(STAGING_HOST_DIR)/usr/bin/pkg-config
  22. else
  23. PATH="$(HOST_PATH)" $(SED) "s#@@OPTS@@##" $(STAGING_HOST_DIR)/usr/bin/pkg-config
  24. endif
  25. (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkg-config $(GNU_TARGET_NAME)-pkg-config)
  26. pkgconf-install:
  27. $(INSTALL_DIR) $(IDIR_PKGCONF)/usr/bin
  28. $(INSTALL_BIN) $(WRKINST)/usr/bin/pkgconf \
  29. $(IDIR_PKGCONF)/usr/bin
  30. (cd $(IDIR_PKGCONF)/usr/bin && ln -sf pkgconf pkg-config)
  31. include ${ADK_TOPDIR}/mk/host-bottom.mk
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk