3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0aa7d3b3f5b5ec5951e7dddd6f65e891
10 PKG_SOURCE_URL
:=ftp
://ftp.gnu.org
/gnu
/gmp
/ \
11 ftp
://ftp.belnet.be
/mirror
/ftp.gnu.org
/gnu
/gmp
/ \
12 ftp
://ftp.mirror.nl
/pub
/mirror
/gnu
/gmp
/ \
13 http
://mirror.switch.ch
/ftp
/mirror
/gnu
/gmp
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,LIBGMP
,libgmp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
53 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
54 rm -rf
$(PKG_INSTALL_DIR
)
55 mkdir
-p
$(PKG_INSTALL_DIR
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
62 install -m0755
-d
$(IDIR_LIBGMP
)/usr
/lib
63 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(IDIR_LIBGMP
)/usr
/lib
/
64 $(RSTRIP
) $(IDIR_LIBGMP
)
65 $(IPKG_BUILD
) $(IDIR_LIBGMP
) $(PACKAGE_DIR
)
67 $(STAGING_DIR
)/usr
/lib
/libgmp.so
: $(PKG_BUILD_DIR
)/.built
68 mkdir
-p
$(STAGING_DIR
)/usr
/include
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(STAGING_DIR
)/usr
/include/
70 mkdir
-p
$(I_LIBPCAP_DEV
)/usr
/lib
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
74 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgmp.so
78 $(STAGING_DIR
)/usr
/include/gmp
* \
79 $(STAGING_DIR
)/usr
/lib
/libgmp.
{a
,so
*} \