Ticket #10640: Makefile.2

File Makefile.2, 1.3 KB (added by jnbagale@…, 6 years ago)

Updated ZeroMQ makefile

Line 
1# Copyright (C) [2011] [TheClashingRocks.org]
2#
3# Authors: Jiva Nath Bagale <jnbagale@gmail.com>
4#
5#
6# This is free software, licensed under the GNU General Public License v2.
7# See /LICENSE for more information.
8#
9#
10include $(TOPDIR)/rules.mk
11
12PKG_NAME:=zeromq
13PKG_VERSION:=2.1.10
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://download.zeromq.org/
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/libzmq
23    MAINTAINER:=jnbagale@gmail.com
24    TITLE:=libzmq
25    SECTION:=libs
26    DEPENDS:=+libuuid
27    CATEGORY:=Libraries
28    URL:=http://www.zeromq.org/
29endef
30
31define Package/libzmq/description
32    The library provides light weight messaging services using an intelligent transport layer.
33    It can carry messages across inproc, IPC, TCP and multicast and is faster than TCP for
34    clustered products and supercomputing.
35endef
36
37
38define Build/InstallDev
39        $(INSTALL_DIR) \
40                $(1)/usr/lib    \
41                $(1)/usr/include \
42                $(1)/usr/lib/pkgconfig
43        $(CP) \
44                $(PKG_INSTALL_DIR)/usr/lib/* \
45                $(1)/usr/lib/
46        $(CP) \
47                $(PKG_INSTALL_DIR)/usr/include/* \
48                $(1)/usr/include/
49        $(CP) \
50                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
51                $(1)/usr/lib/
52
53endef
54
55define Package/libzmq/install
56        $(INSTALL_DIR) \
57                $(1)/usr/lib
58        $(CP) \
59                $(PKG_INSTALL_DIR)/usr/lib/* \
60                $(1)/usr/lib/
61
62endef
63
64$(eval $(call BuildPackage,libzmq))