diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-30 12:26:09 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-30 12:26:09 +0000 |
commit | 5f895d5863156fad2e2b28bb4cdee553d895f63c (patch) | |
tree | 0d153a95f25c10a0265e696cc34ef8a87c78daad /openwrt/package/libupnp/Makefile | |
parent | e66413fcd1fcdea4a38de9dac476b9e2b7381656 (diff) |
add libupnp package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1795 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/libupnp/Makefile')
-rw-r--r-- | openwrt/package/libupnp/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/openwrt/package/libupnp/Makefile b/openwrt/package/libupnp/Makefile new file mode 100644 index 0000000000..88c48e7513 --- /dev/null +++ b/openwrt/package/libupnp/Makefile @@ -0,0 +1,58 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libupnp +PKG_VERSION:=1.2.1a +PKG_RELEASE:=1 +PKG_MD5SUM:=e72b3550bf064eedf080f16f09688891 + +PKG_SOURCE_URL:=@SF/upnp +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,LIBUPNP,libupnp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR)/upnp \ + $(TARGET_CONFIGURE_OPTS) \ + OPT_FLAGS="$(TARGET_CFLAGS)" \ + STRIP=/bin/true + touch $@ + +$(IPKG_LIBUPNP): + install -m0755 -d $(IDIR_LIBUPNP)/usr/lib + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + $(RSTRIP) $(IDIR_LIBUPNP) + $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR) + +$(STAGING_DIR)/usr/lib/libupnp.so: $(PKG_BUILD_DIR)/.built + mkdir -p $(STAGING_DIR)/usr/include/upnp + cp -fpR $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/ + mkdir -p $(STAGING_DIR)/usr/lib + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \ + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \ + cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \ + touch $@ + +install-dev: $(STAGING_DIR)/usr/lib/libupnp.so + +uninstall-dev: + rm -rf \ + $(STAGING_DIR)/usr/include/upnp \ + $(STAGING_DIR)/usr/lib/libixml.so \ + $(STAGING_DIR)/usr/lib/libthreadutil.so \ + $(STAGING_DIR)/usr/lib/libupnp.so \ + +compile: install-dev +clean: uninstall-dev |