Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. PKG_URL:= https://github.com/pkgconf/pkgconf
  11. PKG_SITES:= http://rabbit.dereferenced.org/~nenolod/distfiles/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. include $(ADK_TOPDIR)/mk/host.mk
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call HOST_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE}))
  16. $(eval $(call PKG_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. hostpost-install:
  18. $(CP) ./files/pkg-config $(STAGING_HOST_DIR)/usr/bin
  19. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  20. $(SED) "s#@@OPTS@@#--static#" $(STAGING_HOST_DIR)/usr/bin/pkg-config
  21. else
  22. $(SED) "s#@@OPTS@@##" $(STAGING_HOST_DIR)/usr/bin/pkg-config
  23. endif
  24. (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkg-config $(GNU_TARGET_NAME)-pkg-config)
  25. pkgconf-install:
  26. $(INSTALL_DIR) $(IDIR_PKGCONF)/usr/bin
  27. $(INSTALL_BIN) $(WRKINST)/usr/bin/pkgconf \
  28. $(IDIR_PKGCONF)/usr/bin
  29. (cd $(IDIR_PKGCONF)/usr/bin && ln -sf pkgconf pkg-config)
  30. include ${ADK_TOPDIR}/mk/host-bottom.mk
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk