2 # Copyright (C) 2010-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libmicrohttpd
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/libmicrohttpd
16 PKG_HASH
:=9e7023a151120060d2806a6ea4c13ca9933ece4eacfc5c9464d20edddb76b0a0
18 PKG_MAINTAINER
:=Alexander Couzens
<lynxis@fe80.eu
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:libmicrohttpd
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libmicrohttpd
/default
31 TITLE
:=GNU libmicrohttpd is a library that runs an HTTP server.
32 URL
:=https
://www.gnu.org
/software
/libmicrohttpd
/
35 define Package
/libmicrohttpd-no-ssl
36 $(call Package
/libmicrohttpd
/default
)
39 PROVIDES
:=libmicrohttpd
42 define Package
/libmicrohttpd-ssl
43 $(call Package
/libmicrohttpd
/default
)
44 TITLE
+= with SSL support
46 DEPENDS
:=+libgcrypt
+libgnutls
+libgpg-error
47 PROVIDES
:=libmicrohttpd
50 define Package
/libmicrohttpd
/description
51 GNU libmicrohttpd is a small C library that is supposed to make it easy
52 to run an HTTP server
as part of another application.
64 ifeq ($(BUILD_VARIANT
),ssl
)
74 define Build
/InstallDev
75 $(INSTALL_DIR
) $(1)/usr
/include/
76 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/microhttpd.h
$(1)/usr
/include/
77 $(INSTALL_DIR
) $(1)/usr
/lib
/
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.
{so
*,a
,la
} $(1)/usr
/lib
/
79 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
80 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmicrohttpd.
pc $(1)/usr
/lib
/pkgconfig
/
83 define Package
/libmicrohttpd-no-ssl
/install
84 $(INSTALL_DIR
) $(1)/usr
/lib
/
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.so
* $(1)/usr
/lib
/
88 define Package
/libmicrohttpd-ssl
/install
89 $(INSTALL_DIR
) $(1)/usr
/lib
/
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.so
* $(1)/usr
/lib
/
93 $(eval
$(call BuildPackage
,libmicrohttpd-no-ssl
))
94 $(eval
$(call BuildPackage
,libmicrohttpd-ssl
))