Changeset d419478 in freewrt for package/libupnp


Ignore:
Timestamp:
Jul 21, 2006, 1:56:32 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
50d34d3
Parents:
2029b2e
Message:
  • 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/libupnp/Makefile

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=@SF/upnp
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1613
    1714include $(TOPDIR)/package/rules.mk
     
    1916$(eval $(call PKG_template,LIBUPNP,libupnp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2017
    21 $(PKG_BUILD_DIR)/.configured:
     18$(WRKBUILD)/.configured:
    2219        touch $@
    2320
    24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
    25         $(MAKE) -C $(PKG_BUILD_DIR)/upnp \
     21$(WRKBUILD)/.built: $(WRKBUILD)/.configured
     22        $(MAKE) -C $(WRKBUILD)/upnp \
    2623                $(TARGET_CONFIGURE_OPTS) \
    2724                OPT_FLAGS="$(TARGET_CFLAGS)" \
     
    3128$(IPKG_LIBUPNP):
    3229        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/ ; \
     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/ ; \
    3633        $(RSTRIP) $(IDIR_LIBUPNP)
    3734        $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR)
    3835
    39 $(STAGING_DIR)/usr/lib/libupnp.so: $(PKG_BUILD_DIR)/.built
     36$(STAGING_DIR)/usr/lib/libupnp.so: $(WRKBUILD)/.built
    4037        mkdir -p $(STAGING_DIR)/usr/include/upnp
    41         $(CP) $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/
     38        $(CP) $(WRKBUILD)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/
    4239        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/ ; \
     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/ ; \
    4643        touch $@
    4744
Note: See TracChangeset for help on using the changeset viewer.