source: branches/packages_10.03.1/libs/libmicrohttpd/Makefile @ 27594

Last change on this file since 27594 was 25573, checked in by hcg, 6 years ago

[packages] Add new package libmicrohttpd

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libmicrohttpd
11PKG_VERSION:=0.4.4
12
13ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.4.4.tar.gz
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@GNU/libmicrohttpd
17PKG_MD5SUM:=bcd61ebb10286379f55c7db9c79e0465
18
19PKG_FIXUP:=libtool
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/libmicrohttpd
25  SECTION:=libs
26  CATEGORY:=Libraries
27  TITLE:=Microhttpd
28  URL:=http://www.gnu.org/software/libmicrohttpd
29endef
30
31define Package/libmicrohttpd/description
32 GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application.
33endef
34
35define Build/InstallDev
36        $(INSTALL_DIR) $(1)/usr/include/
37        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
38        $(INSTALL_DIR) $(1)/usr/lib/
39        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
40endef
41
42define Package/libmicrohttpd/install
43        $(INSTALL_DIR) $(1)/usr/lib
44        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
45endef
46
47$(eval $(call BuildPackage,libmicrohttpd))
48
Note: See TracBrowser for help on using the repository browser.