blob: b9c627cef733a09ebb99546da6e5d541e5df0ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
include ${TOPDIR}/toolchain/gmp/Makefile.inc
PKG_DESCR:= GNU multiprecision arithmetic library
PKG_SECTION:= libs
PKG_URL:= http://gmplib.org/
PKG_SUBPKGS:= LIBGMP LIBGMP_DEV
PKGSC_LIBGMP_DEV:= devel
PKGSD_LIBGMP_DEV:= libgmp headers
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBGMP,libgmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBGMP_DEV,libgmp-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGMP_DEV},${PKGSC_LIBGMP_DEV}))
libgmp-install:
${INSTALL_DIR} ${IDIR_LIBGMP}/usr/lib
${CP} ${WRKINST}/usr/lib/libgmp.so* ${IDIR_LIBGMP}/usr/lib
libgmp-dev-install:
${INSTALL_DIR} ${IDIR_LIBGMP_DEV}/usr/include
${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGMP_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk
|