Makefile 1.2 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= popt
  5. PKG_VERSION:= 1.16
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 3743beefa3dd6247a73f8f7a32c14c33
  8. PKG_DESCR:= a command line option parsing library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libiconv
  11. PKG_BUILDDEP:= libiconv
  12. PKG_URL:= http://rpm5.org/
  13. PKG_SITES:= http://rpm5.org/files/popt/
  14. PKG_SUBPKGS:= LIBPOPT LIBPOPT_DEV
  15. PKGSC_LIBPOPT_DEV:= devel
  16. ifeq ($(ADK_STATIC),y)
  17. PKG_OPTS:= libonly
  18. endif
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,LIBPOPT,libpopt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. $(eval $(call PKG_template,LIBPOPT_DEV,libpopt-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBPOPT_DEV},${PKG_OPTS}))
  22. TARGET_LDFAGS+= -liconv
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_LIBPOPT}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/libpopt.so* ${IDIR_LIBPOPT}/usr/lib
  26. libpopt-dev-install:
  27. ${INSTALL_DIR} ${IDIR_LIBPOPT_DEV}/usr/include
  28. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBPOPT_DEV}/usr/include
  29. include ${TOPDIR}/mk/pkg-bottom.mk