3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0aa7d3b3f5b5ec5951e7dddd6f65e891
10 PKG_SOURCE_URL
:=ftp
://ftp.gnu.org
/gnu
/gmp
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBGMP
,libgmp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
50 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
51 rm -rf
$(PKG_INSTALL_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 install -m0755
-d
$(IDIR_LIBGMP
)/usr
/lib
60 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.so.
* $(IDIR_LIBGMP
)/usr
/lib
/
61 $(RSTRIP
) $(IDIR_LIBGMP
)
62 $(IPKG_BUILD
) $(IDIR_LIBGMP
) $(PACKAGE_DIR
)
64 $(STAGING_DIR
)/usr
/lib
/libgmp.so
: $(PKG_BUILD_DIR
)/.built
65 mkdir
-p
$(STAGING_DIR
)/usr
/include
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gmp
* $(STAGING_DIR
)/usr
/include/
67 mkdir
-p
$(I_LIBPCAP_DEV
)/usr
/lib
68 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgmp.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
69 touch
$(STAGING_DIR
)/usr
/lib
/libgmp.so
71 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgmp.so
74 rm -rf
$(STAGING_DIR
)/usr
/include/gmp
*
75 rm -rf
$(STAGING_DIR
)/usr
/lib
/libgmp.
{a
,so
*}