浏览代码

libmicrohttpd: new package added

Signed-off-by: Martijn Zilverschoon <martijn@friedzombie.com>
Martijn Zilverschoon 10 年前
父节点
当前提交
87ba5de76e
共有 1 个文件被更改,包括 54 次插入0 次删除
  1. 54
    0
      libs/libmicrohttpd/Makefile

+ 54
- 0
libs/libmicrohttpd/Makefile 查看文件

@@ -0,0 +1,54 @@
1
+#
2
+# Copyright (C) 2010-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=libmicrohttpd
11
+PKG_VERSION:=0.9.38
12
+PKG_RELEASE:=1.1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
+PKG_SOURCE_URL:=@GNU/libmicrohttpd
16
+PKG_MD5SUM:=b72efbfe7f290846015d460aea7091fe
17
+
18
+PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com>
19
+
20
+PKG_LICENSE:=LGPL-2.1
21
+PKG_LICENSE_FILES:=COPYING
22
+
23
+PKG_INSTALL:=1
24
+
25
+include $(INCLUDE_DIR)/package.mk
26
+
27
+define Package/libmicrohttpd
28
+	SECTION:=libs
29
+	CATEGORY:=Libraries
30
+	TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
31
+	URL:=http://www.gnu.org/software/libmicrohttpd/
32
+	DEPENDS:=+libpthread +libgcrypt +libgnutls +libgpg-error +libcrypto +libopenssl
33
+endef
34
+
35
+define Package/libmicrohttpd/description
36
+	GNU libmicrohttpd is a small C library that is supposed to make it easy
37
+	to run an HTTP server as part of another application.
38
+endef
39
+
40
+define Build/InstallDev
41
+	$(INSTALL_DIR) $(1)/usr/include/
42
+	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
43
+	$(INSTALL_DIR) $(1)/usr/lib/
44
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
45
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
46
+	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
47
+endef
48
+
49
+define Package/libmicrohttpd/install
50
+	$(INSTALL_DIR) $(1)/usr/lib/
51
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
52
+endef
53
+
54
+$(eval $(call BuildPackage,libmicrohttpd))