Changeset 27157 for packages


Ignore:
Timestamp:
2011-06-12T03:54:28+02:00 (5 years ago)
Author:
swalker
Message:

[packages] libevent2: update to 2.0.12, add core, extra, openssl & pthreads packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libevent2/Makefile

    r25247 r27157  
    99 
    1010PKG_NAME:=libevent2 
    11 PKG_VERSION:=2.0.10 
     11PKG_VERSION:=2.0.12 
    1212PKG_RELEASE:=1 
    1313 
     
    1515PKG_SOURCE:=libevent-$(PKG_VERSION)-stable.tar.gz 
    1616PKG_SOURCE_URL:=http://www.monkey.org/~provos/ 
    17 PKG_MD5SUM:=a37401d26cbbf28185211d582741a3d4 
     17PKG_MD5SUM:=42986228baf95e325778ed328a93e070 
    1818 
    1919PKG_FIXUP:=libtool 
     
    2323include $(INCLUDE_DIR)/package.mk 
    2424 
    25 define Package/libevent2 
     25define Package/libevent2/Default 
    2626  SECTION:=libs 
    2727  CATEGORY:=Libraries 
    28   TITLE:=Event notification library (version 2.0) 
     28  TITLE:=Event notification 
    2929  URL:=http://www.monkey.org/~provos/libevent/ 
    3030endef 
    3131 
    32 define Package/libevent2/description 
     32define Package/libevent2/Default/description 
    3333        The libevent API provides a mechanism to execute a callback function 
    3434        when a specific event occurs on a file descriptor or after a timeout 
     
    4040        and then add or remove events dynamically without having to change 
    4141        the event loop. 
     42endef 
     43 
     44define Package/libevent2 
     45  $(call Package/libevent2/Default) 
     46  TITLE+=  library (version 2.0) 
     47endef 
     48 
     49define Package/libevent2/description 
     50        $(call Package/libevent2/Default/description) 
     51 
     52        This package contains the libevent shared library historically 
     53        containing both the core & extra libraries. 
     54endef 
     55 
     56define Package/libevent2-core 
     57  $(call Package/libevent2/Default) 
     58  TITLE+= core library (version 2.0) 
     59endef 
     60 
     61define Package/libevent2-core/description 
     62        $(call Package/libevent2/Default/description) 
     63 
     64        This package contains the libevent core shared library for the event, 
     65        buffer & utility functions. 
     66endef 
     67 
     68define Package/libevent2-extra 
     69  $(call Package/libevent2/Default) 
     70  TITLE+= extra library (version 2.0) 
     71endef 
     72 
     73define Package/libevent2-extra/description 
     74        $(call Package/libevent2/Default/description) 
     75 
     76        This package contains the libevent extra shared library for specific 
     77        protocols including HTTP, DNS & RPC. 
     78endef 
     79 
     80define Package/libevent2-openssl 
     81  $(call Package/libevent2/Default) 
     82  TITLE+= OpenSSL library (version 2.0) 
     83  DEPENDS:=+libopenssl 
     84endef 
     85 
     86define Package/libevent2-openssl/description 
     87        $(call Package/libevent2/Default/description) 
     88 
     89        This package contains the libevent OpenSSL shared library for encrypted 
     90        bufferevents. 
     91endef 
     92 
     93define Package/libevent2-pthreads 
     94  $(call Package/libevent2/Default) 
     95  TITLE+= Pthreads library (version 2.0) 
     96  DEPENDS:=+libpthread 
     97endef 
     98 
     99define Package/libevent2-pthreads/description 
     100        $(call Package/libevent2/Default/description) 
     101 
     102        This package contains the libevent Pthreads shared library for 
     103        threading & locking. 
    42104endef 
    43105 
     
    55117        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 
    56118        $(INSTALL_DIR) $(1)/usr/lib 
    57         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{la,a,so} $(1)/usr/lib/ 
    58         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-2.0.so* $(1)/usr/lib/ 
     119        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent*.{la,a,so} $(1)/usr/lib/ 
     120        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent*-2.0.so* $(1)/usr/lib/ 
    59121        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 
    60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevent.pc $(1)/usr/lib/pkgconfig 
     122        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevent*.pc $(1)/usr/lib/pkgconfig/ 
    61123endef 
    62124 
     
    66128endef 
    67129 
     130define Package/libevent2-core/install 
     131        $(INSTALL_DIR) $(1)/usr/lib 
     132        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_core-2.0.so.* $(1)/usr/lib/ 
     133endef 
     134 
     135define Package/libevent2-extra/install 
     136        $(INSTALL_DIR) $(1)/usr/lib 
     137        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_extra-2.0.so.* $(1)/usr/lib/ 
     138endef 
     139 
     140define Package/libevent2-openssl/install 
     141        $(INSTALL_DIR) $(1)/usr/lib 
     142        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_openssl-2.0.so.* $(1)/usr/lib/ 
     143endef 
     144 
     145define Package/libevent2-pthreads/install 
     146        $(INSTALL_DIR) $(1)/usr/lib 
     147        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_pthreads-2.0.so.* $(1)/usr/lib/ 
     148endef 
     149 
    68150$(eval $(call BuildPackage,libevent2)) 
     151$(eval $(call BuildPackage,libevent2-core)) 
     152$(eval $(call BuildPackage,libevent2-extra)) 
     153$(eval $(call BuildPackage,libevent2-openssl)) 
     154$(eval $(call BuildPackage,libevent2-pthreads)) 
Note: See TracChangeset for help on using the changeset viewer.