1
0

Makefile 972 B

12345678910111213141516171819202122232425262728
  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. include ${TOPDIR}/toolchain/gmp/Makefile.inc
  5. PKG_DESCR:= GNU multiprecision arithmetic library
  6. PKG_SECTION:= libs
  7. PKG_URL:= http://gmplib.org/
  8. PKG_SUBPKGS:= LIBGMP LIBGMP_DEV
  9. PKGSC_LIBGMP_DEV:= devel
  10. PKGSD_LIBGMP_DEV:= libgmp headers
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,LIBGMP,libgmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. $(eval $(call PKG_template,LIBGMP_DEV,libgmp-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGMP_DEV},${PKGSC_LIBGMP_DEV}))
  14. libgmp-install:
  15. ${INSTALL_DIR} ${IDIR_LIBGMP}/usr/lib
  16. ${CP} ${WRKINST}/usr/lib/libgmp.so* ${IDIR_LIBGMP}/usr/lib
  17. libgmp-dev-install:
  18. ${INSTALL_DIR} ${IDIR_LIBGMP_DEV}/usr/include
  19. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGMP_DEV}/usr/include
  20. include ${TOPDIR}/mk/pkg-bottom.mk