update openssl to 0.9.8
[openwrt.git] / openwrt / package / libupnp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libupnp
6 PKG_VERSION:=1.2.1a
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=e72b3550bf064eedf080f16f09688891
9
10 PKG_SOURCE_URL:=@SF/upnp
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
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,LIBUPNP,libupnp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
25 $(MAKE) -C $(PKG_BUILD_DIR)/upnp \
26 $(TARGET_CONFIGURE_OPTS) \
27 OPT_FLAGS="$(TARGET_CFLAGS)" \
28 STRIP=/bin/true
29 touch $@
30
31 $(IPKG_LIBUPNP):
32 install -m0755 -d $(IDIR_LIBUPNP)/usr/lib
33 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \
34 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \
35 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \
36 $(RSTRIP) $(IDIR_LIBUPNP)
37 $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR)
38
39 $(STAGING_DIR)/usr/lib/libupnp.so: $(PKG_BUILD_DIR)/.built
40 mkdir -p $(STAGING_DIR)/usr/include/upnp
41 $(CP) $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/
42 mkdir -p $(STAGING_DIR)/usr/lib
43 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \
44 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \
45 $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \
46 touch $@
47
48 install-dev: $(STAGING_DIR)/usr/lib/libupnp.so
49
50 uninstall-dev:
51 rm -rf \
52 $(STAGING_DIR)/usr/include/upnp \
53 $(STAGING_DIR)/usr/lib/libixml.so \
54 $(STAGING_DIR)/usr/lib/libthreadutil.so \
55 $(STAGING_DIR)/usr/lib/libupnp.so \
56
57 compile-targets: install-dev
58 clean-targets: uninstall-dev
This page took 0.040176 seconds and 5 git commands to generate.