Update to new upstream release (v2.2.0)
[openwrt.git] / package / libosip2 / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libosip2
6 PKG_VERSION:=2.2.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=f1237af0250c59b318bd64a59f5750ea
9
10 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/osip/ \
11 ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/osip/ \
12 ftp://ftp.mirror.nl/pub/mirror/gnu/osip/ \
13 http://mirror.switch.ch/ftp/mirror/gnu/osip/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
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,LIBOSIP2,libosip2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(strip $(TARGET_CFLAGS))" \
28 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --enable-shared \
51 --enable-static \
52 --with-gnu-ld \
53 --disable-debug \
54 --disable-trace \
55 --enable-pthread \
56 --enable-semaphore \
57 --enable-ntimer \
58 );
59 touch $@
60
61 $(PKG_BUILD_DIR)/.built:
62 rm -rf $(PKG_INSTALL_DIR)
63 mkdir -p $(PKG_INSTALL_DIR)
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 all install
67 touch $@
68
69 $(IPKG_LIBOSIP2):
70 install -m0755 -d $(IDIR_LIBOSIP2)/usr/lib
71 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(IDIR_LIBOSIP2)/usr/lib/
72 $(RSTRIP) $(IDIR_LIBOSIP2)
73 $(IPKG_BUILD) $(IDIR_LIBOSIP2) $(PACKAGE_DIR)
74
75 $(STAGING_DIR)/usr/lib/libosip2.so: $(PKG_BUILD_DIR)/.built
76 mkdir -p $(STAGING_DIR)/usr/include
77 cp -fpR $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(STAGING_DIR)/usr/include/
78 mkdir -p $(STAGING_DIR)/usr/lib
79 cp -fp $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(STAGING_DIR)/usr/lib/
80 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
81 cp -fp $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(STAGING_DIR)/usr/lib/pkgconfig/
82 touch $@
83
84 install-dev: $(STAGING_DIR)/usr/lib/libosip2.so
85
86 uninstall-dev:
87 rm -rf \
88 $(STAGING_DIR)/usr/include/osip{,parser}2 \
89 $(STAGING_DIR)/usr/lib/libosip{,parser}2.{a,so*} \
90 $(STAGING_DIR)/usr/lib/pkgconfig/libosip2.pc \
91
92 compile: install-dev
93 clean: uninstall-dev
This page took 0.039341 seconds and 5 git commands to generate.