update ndisc6 to new upstream release (v0.5.0),
[openwrt.git] / package / gmp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gmp
6 PKG_VERSION:=4.1.4
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0aa7d3b3f5b5ec5951e7dddd6f65e891
9
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
15 PKG_CAT:=bzcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,LIBGMP,libgmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
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)" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_NLS) \
47 $(DISABLE_LARGEFILE) \
48 --enable-shared \
49 --enable-static \
50 );
51 touch $@
52
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)" \
58 all install
59 touch $@
60
61 $(IPKG_LIBGMP):
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)
66
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 $(STAGING_DIR)/usr/lib
71 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(STAGING_DIR)/usr/lib/
72 touch $@
73
74 install-dev: $(STAGING_DIR)/usr/lib/libgmp.so
75
76 uninstall-dev:
77 rm -rf \
78 $(STAGING_DIR)/usr/include/gmp* \
79 $(STAGING_DIR)/usr/lib/libgmp.{a,so*} \
80
81 compile: install-dev
82 clean: uninstall-dev
This page took 0.0540350000000001 seconds and 5 git commands to generate.