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_MD5SUM
:=3209aa2ac6199b874a6325342b86edbc
18 PKG_MAINTAINER
:=Alexander Couzens
<lynxis@fe80.eu
>
21 PKG_LICENSE_FILES
:=COPYING
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libmicrohttpd
/Default
33 TITLE
:=GNU libmicrohttpd is a library that runs an HTTP server.
34 URL
:=http
://www.gnu.org
/software
/libmicrohttpd
/
37 define Package
/libmicrohttpd
38 $(call Package
/libmicrohttpd
/Default
)
40 DEPENDS
:=+libpthread
+libgcrypt
+libgnutls
+libgpg-error
43 define Package
/libmicrohttpd-no-ssl
44 $(call Package
/libmicrohttpd
/Default
)
48 PROVIDES
:=libmicrohttpd
49 CONFLICTS
:=libmicrohttpd
52 define Package
/libmicrohttpd
/description
/Default
53 GNU libmicrohttpd is a small C library that is supposed to make it easy
54 to run an HTTP server
as part of another application.
57 define Package
/libmicrohttpd-no-ssl
/description
58 $(call Package
/libmicrohttp
/description
/Default
)
66 ifeq ($(BUILD_VARIANT
),no-ssl
)
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include/
78 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
79 $(INSTALL_DIR
) $(1)/usr
/lib
/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} $(1)/usr
/lib
/
81 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
82 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
85 define Package
/libmicrohttpd
/install
86 $(INSTALL_DIR
) $(1)/usr
/lib
/
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
90 define Package
/libmicrohttpd-no-ssl
/install
91 $(call Package
/libmicrohttpd
/install,$1)
94 $(eval
$(call BuildPackage
,libmicrohttpd
))
95 $(eval
$(call BuildPackage
,libmicrohttpd-no-ssl
))