source: packages/libs/libmicrohttpd/Makefile @ 31287

Last change on this file since 31287 was 31287, checked in by jow, 4 years ago

packages: update libmicrohttpd to 0.9.19

Also include all library symlinks in the package.

Signed-off-by: Michael Heimpold <mhei@…>

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2011-2012 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.9.19
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@GNU/libmicrohttpd
16PKG_MD5SUM:=0f4c55ba224ce75b3b993b558e072a6b
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libmicrohttpd
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=Microhttpd
27  URL:=http://www.gnu.org/software/libmicrohttpd
28  DEPENDS:=+libpthread
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
35CONFIGURE_ARGS+= \
36        --disable-curl \
37        --disable-https \
38
39define Build/InstallDev
40        $(INSTALL_DIR) $(1)/usr/include
41        $(CP) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/
42        $(INSTALL_DIR) $(1)/usr/lib
43        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.{a,so*} $(1)/usr/lib/
44        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
45        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmicrohttpd.pc $(1)/usr/lib/pkgconfig/
46endef
47
48define Package/libmicrohttpd/install
49        $(INSTALL_DIR) $(1)/usr/lib
50        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmicrohttpd.so* $(1)/usr/lib/
51endef
52
53$(eval $(call BuildPackage,libmicrohttpd))
Note: See TracBrowser for help on using the repository browser.