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
:=0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada80ed0f8
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 CONFLICTS
:=libmicrohttpd
51 define Package
/libmicrohttpd
/description
/Default
52 GNU libmicrohttpd is a small C library that is supposed to make it easy
53 to run an HTTP server
as part of another application.
56 define Package
/libmicrohttpd-no-ssl
/description
57 $(call Package
/libmicrohttp
/description
/Default
)
65 ifeq ($(BUILD_VARIANT
),no-ssl
)
75 define Build
/InstallDev
76 $(INSTALL_DIR
) $(1)/usr
/include/
77 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} $(1)/usr
/lib
/
80 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
81 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
84 define Package
/libmicrohttpd
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
89 define Package
/libmicrohttpd-no-ssl
/install
90 $(call Package
/libmicrohttpd
/install,$1)
93 $(eval
$(call BuildPackage
,libmicrohttpd
))
94 $(eval
$(call BuildPackage
,libmicrohttpd-no-ssl
))