2 # Copyright (C) 2007-2015 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=https
://gnunet.org
/sites
/default
/files
17 PKG_HASH
:=761b3ddb32946965c62676ca4acf2ebaab38d09068aebeea78caaf6cce8c2b45
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/gnurl
/Default
30 URL
:=https
://gnunet.org
/gnurl
31 MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
35 $(call Package
/gnurl
/Default
)
36 SUBMENU
:=File Transfer
38 TITLE
:=A client-side HTTP
/HTTPS transfer utility
41 define Package
/libgnurl
42 $(call Package
/gnurl
/Default
)
45 DEPENDS
:=+libgnutls
+libidn
+zlib
46 TITLE
:=A client-side HTTP
/HTTPS transfer library
49 TARGET_CFLAGS
+= $(FPIC
)
52 $(call autoconf_bool
,CONFIG_IPV6
,ipv6
) \
53 --with-gnutls
="$(STAGING_DIR)/usr" \
54 --with-libidn
="$(STAGING_DIR)/usr" \
55 --with-zlib
="$(STAGING_DIR)/usr" \
56 --with-ca-path
="/etc/ssl/certs/" \
61 --without-libmetalink \
92 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
93 DESTDIR
="$(PKG_INSTALL_DIR)" \
98 define Build
/InstallDev
99 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
$(1)/usr
/include/gnurl
$(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
100 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gnurl-config
$(1)/usr
/bin
/
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/curl
/*.h
$(1)/usr
/include/gnurl
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgnurl.
{a
,so
*} $(1)/usr
/lib
/
103 $(CP
) $(PKG_BUILD_DIR
)/libgnurl.
pc $(1)/usr
/lib
/pkgconfig
/
104 $(SED
) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr
/bin
/gnurl-config
105 [ -n
"$(TARGET_LDFLAGS)" ] && $(SED
) 's#$(TARGET_LDFLAGS)##g' $(1)/usr
/lib
/pkgconfig
/libgnurl.
pc || true
106 $(LN
) $(STAGING_DIR
)/usr
/bin
/gnurl-config
$(2)/bin
/
109 define Package
/gnurl
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gnurl
$(1)/usr
/bin
/
114 define Package
/libgnurl
/install
115 $(INSTALL_DIR
) $(1)/usr
/lib
116 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgnurl.so.
* $(1)/usr
/lib
/
119 $(eval
$(call BuildPackage
,gnurl
))
120 $(eval
$(call BuildPackage
,libgnurl
))