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_DIST_VERSION
:=$(subst .
,_
,$(strip $(PKG_VERSION
)))
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_DIST_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=https
://gnunet.org
/sites
/default
/files
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_DIST_VERSION
)
19 PKG_MD5SUM
:=2f0200d38eca6c9567447d2b8ac4676911ec73b9613a15bef31bbe9f9f22f4e5
22 PKG_LICENSE_FILES
:=COPYING
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/gnurl
/Default
32 URL
:=https
://gnunet.org
/gnurl
33 MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
37 $(call Package
/gnurl
/Default
)
38 SUBMENU
:=File Transfer
40 TITLE
:=A client-side HTTP
/HTTPS transfer utility
43 define Package
/libgnurl
44 $(call Package
/gnurl
/Default
)
47 DEPENDS
:=+libgnutls
+libidn
+zlib
48 TITLE
:=A client-side HTTP
/HTTPS transfer library
51 TARGET_CFLAGS
+= $(FPIC
)
54 $(call autoconf_bool
,CONFIG_IPV6
,ipv6
) \
55 --with-gnutls
="$(STAGING_DIR)/usr" \
56 --with-libidn
="$(STAGING_DIR)/usr" \
57 --with-zlib
="$(STAGING_DIR)/usr" \
58 --with-ca-path
="/etc/ssl/certs/" \
63 --without-libmetalink \
94 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
95 DESTDIR
="$(PKG_INSTALL_DIR)" \
100 define Build
/InstallDev
101 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
$(1)/usr
/include/gnurl
$(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
102 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gnurl-config
$(1)/usr
/bin
/
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/curl
/*.h
$(1)/usr
/include/gnurl
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgnurl.
{a
,so
*} $(1)/usr
/lib
/
105 $(CP
) $(PKG_BUILD_DIR
)/libgnurl.
pc $(1)/usr
/lib
/pkgconfig
/
106 $(SED
) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr
/bin
/gnurl-config
107 [ -n
"$(TARGET_LDFLAGS)" ] && $(SED
) 's#$(TARGET_LDFLAGS)##g' $(1)/usr
/lib
/pkgconfig
/libgnurl.
pc || true
108 $(LN
) $(STAGING_DIR
)/usr
/bin
/gnurl-config
$(2)/bin
/
111 define Package
/gnurl
/install
112 $(INSTALL_DIR
) $(1)/usr
/bin
113 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gnurl
$(1)/usr
/bin
/
116 define Package
/libgnurl
/install
117 $(INSTALL_DIR
) $(1)/usr
/lib
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgnurl.so.
* $(1)/usr
/lib
/
121 $(eval
$(call BuildPackage
,gnurl
))
122 $(eval
$(call BuildPackage
,libgnurl
))