source: freewrt/package/libupnp/Makefile@ 50d34d3

freewrt_1_0 freewrt_2_0
Last change on this file since 50d34d3 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[475ad56]1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=libupnp
6PKG_VERSION:=1.2.1a
7PKG_RELEASE:=1
8PKG_MD5SUM:=e72b3550bf064eedf080f16f09688891
9
10PKG_SOURCE_URL:=@SF/upnp
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,LIBUPNP,libupnp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
[d419478]18$(WRKBUILD)/.configured:
[475ad56]19 touch $@
20
[d419478]21$(WRKBUILD)/.built: $(WRKBUILD)/.configured
22 $(MAKE) -C $(WRKBUILD)/upnp \
[475ad56]23 $(TARGET_CONFIGURE_OPTS) \
24 OPT_FLAGS="$(TARGET_CFLAGS)" \
25 STRIP=/bin/true
26 touch $@
27
28$(IPKG_LIBUPNP):
29 install -m0755 -d $(IDIR_LIBUPNP)/usr/lib
[d419478]30 $(CP) $(WRKBUILD)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \
31 $(CP) $(WRKBUILD)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \
32 $(CP) $(WRKBUILD)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \
[475ad56]33 $(RSTRIP) $(IDIR_LIBUPNP)
34 $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR)
35
[d419478]36$(STAGING_DIR)/usr/lib/libupnp.so: $(WRKBUILD)/.built
[475ad56]37 mkdir -p $(STAGING_DIR)/usr/include/upnp
[d419478]38 $(CP) $(WRKBUILD)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/
[475ad56]39 mkdir -p $(STAGING_DIR)/usr/lib
[d419478]40 $(CP) $(WRKBUILD)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \
41 $(CP) $(WRKBUILD)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \
42 $(CP) $(WRKBUILD)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \
[475ad56]43 touch $@
44
45install-dev: $(STAGING_DIR)/usr/lib/libupnp.so
46
47uninstall-dev:
48 rm -rf \
49 $(STAGING_DIR)/usr/include/upnp \
50 $(STAGING_DIR)/usr/lib/libixml.so \
51 $(STAGING_DIR)/usr/lib/libthreadutil.so \
52 $(STAGING_DIR)/usr/lib/libupnp.so \
53
54compile-targets: install-dev
55clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.