Added mrd6 package : IPv6 multicast routing daemon
[openwrt.git] / openwrt / 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:=@GNU/gmp
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBGMP,libgmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 --enable-shared \
46 --enable-static \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 rm -rf $(PKG_INSTALL_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 touch $@
57
58 $(IPKG_LIBGMP):
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)
63
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 $(STAGING_DIR)/usr/lib
68 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(STAGING_DIR)/usr/lib/
69 touch $@
70
71 install-dev: $(STAGING_DIR)/usr/lib/libgmp.so
72
73 uninstall-dev:
74 rm -rf \
75 $(STAGING_DIR)/usr/include/gmp* \
76 $(STAGING_DIR)/usr/lib/libgmp.{a,so*} \
77
78 compile-targets: install-dev
79 clean-targets: uninstall-dev
This page took 0.049805 seconds and 5 git commands to generate.