Ticket #10640: Makefile

File Makefile, 1.4 KB (added by jnbagale@…, 6 years ago)

Makefile

Line 
1# Copyright (C) [2011] [TheClashingRocks.org]
2#
3# Authors: Antonio Kheirkhahzadeh <antoniodariush@gmail.com> Jiva 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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/libzmq
25    MAINTAINER:=team@theclashingrocks.org
26    TITLE:=libzmq
27    SECTION:=libs
28    DEPENDS:=+libuuid
29    CATEGORY:=Libraries
30    URL:=http://www.zeromq.org/
31endef
32
33define Package/libzmq/description
34    this is libzmq.
35endef
36
37define Build/Configure
38        $(call Build/Configure/Default)
39endef
40
41define Build/Compile
42        $(call Build/Compile/Default)
43endef
44
45define Build/InstallDev
46        $(INSTALL_DIR) \
47                $(1)/usr/lib    \
48                $(1)/usr/include \
49                $(1)/usr/lib/pkgconfig
50        $(CP) \
51                $(PKG_INSTALL_DIR)/usr/lib/* \
52                $(1)/usr/lib/
53        $(CP) \
54                $(PKG_INSTALL_DIR)/usr/include/* \
55                $(1)/usr/include/
56        $(CP) \
57                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
58                $(1)/usr/lib/
59
60endef
61
62define Package/libzmq/install
63        $(INSTALL_DIR) \
64                $(1)/usr/lib \
65                $(1)/usr/man
66        $(CP) \
67                $(PKG_INSTALL_DIR)/usr/lib/* \
68                $(1)/usr/lib/
69        $(CP) \
70                $(PKG_INSTALL_DIR)/usr/man/* \
71                $(1)/usr/man/
72
73endef
74
75$(eval $(call BuildPackage,libzmq))