Hi,

I'm just following up on this - I attach the original patch submitted in
2012

Regards,

Daniel



On 22/09/12 00:12, Daniel Pocock wrote:
> 
> 
> 
> I've now got this working satisfactorily - revised Makefile attached
> 
> 
> 
> On 21/09/12 19:10, Daniel Pocock wrote:
> 
> 
> 
>> This is another dependency for reSIProcate (actually, for the TURN 
>> server component).  It is also popular for boost users.
> 
>> I've tried to create a Makefile, but asio.hpp and the other
>> asio/*.hpp files never get installed to staging_dir.  Can anyone
>> identify what I have missed?
> 
>> Please note this package doesn't provide binary artifacts, just
>> C++ headers
> 
>> I've put the file in trunk/package/asio/Makefile
> 
>> I've been using these commands to build:
> 
>> make V=s -j12 package/asio/compile && \ make V=s -j12
>> package/asio/install
> 
> 
>> If I type
> 
>> find . -name asio.hpp
> 
>> I don't see it in the staging_dir
> 
> 
> 
> 
> 
>> _______________________________________________ openwrt-devel
>> mailing list [email protected] 
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 
> 
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
#
# Copyright (C) 2012 OpenWrt.org
# Copyright (C) 2012 Daniel Pocock <[email protected]>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=asio
PKG_VERSION:=1.4.8
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/asio-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/asio
PKG_MD5SUM:=0e2ebaa1e5569e415908c8d0ede95044

#PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

#TARGET_CFLAGS += $(FPIC)

define Package/libasio
  SECTION:=libs
  CATEGORY:=Libraries
  DEFAULT:=m
  TITLE:=libasio
  URL:=http://think-async.com/
  DEPENDS:=+boost
endef

define Package/libasio/description
 Async IO library
endef

define Build/Configure
        $(call Build/Configure/Default, --enable-maintainer-mode )
endef

define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/include
endef

define Package/libasio/install
        $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR)/include install
endef

define Build/InstallDev
        $(MAKE) DESTDIR=$(1) -C $(PKG_BUILD_DIR)/include install
#       $(INSTALL_DIR) $(1)/usr/include/asio
#       $(CP) $(PKG_INSTALL_DIR)/usr/include/asio.hpp $(1)/usr/include/
#       $(CP) $(PKG_BUILD_DIR)/usr/include/asio/* $(1)/usr/include/asio/
endef

$(eval $(call BuildPackage,libasio))

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to