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
:=9278907a6f571b391aab9644fd646a5108ed97311ec66f6359cebbedb0a4e3bb
18 PKG_MAINTAINER
:=Alexander Couzens
<lynxis@fe80.eu
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libmicrohttpd
/default
30 TITLE
:=GNU libmicrohttpd is a library that runs an HTTP server.
31 URL
:=https
://www.gnu.org
/software
/libmicrohttpd
/
34 define Package
/libmicrohttpd-no-ssl
35 $(call Package
/libmicrohttpd
/default
)
38 PROVIDES
:=libmicrohttpd
41 define Package
/libmicrohttpd-ssl
42 $(call Package
/libmicrohttpd
/default
)
43 TITLE
+= with SSL support
45 DEPENDS
:=+libgcrypt
+libgnutls
+libgpg-error
46 PROVIDES
:=libmicrohttpd
49 define Package
/libmicrohttpd
/description
50 GNU libmicrohttpd is a small C library that is supposed to make it easy
51 to run an HTTP server
as part of another application.
63 ifeq ($(BUILD_VARIANT
),ssl
)
73 define Build
/InstallDev
74 $(INSTALL_DIR
) $(1)/usr
/include/
75 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/microhttpd.h
$(1)/usr
/include/
76 $(INSTALL_DIR
) $(1)/usr
/lib
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.
{so
*,a
,la
} $(1)/usr
/lib
/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
79 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmicrohttpd.
pc $(1)/usr
/lib
/pkgconfig
/
82 define Package
/libmicrohttpd-no-ssl
/install
83 $(INSTALL_DIR
) $(1)/usr
/lib
/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.so
* $(1)/usr
/lib
/
87 define Package
/libmicrohttpd-ssl
/install
88 $(INSTALL_DIR
) $(1)/usr
/lib
/
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmicrohttpd.so
* $(1)/usr
/lib
/
92 $(eval
$(call BuildPackage
,libmicrohttpd-no-ssl
))
93 $(eval
$(call BuildPackage
,libmicrohttpd-ssl
))