libiconv symbol was removed
[openadk.git] / package / hostapd / Makefile
blob22cfeba7db45e7bd0f88f340efd216787487c784
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= hostapd
7 PKG_VERSION:= 2.5
8 PKG_RELEASE:= 1
9 PKG_HASH:= 8e272d954dc0d7026c264b79b15389ec2b2c555b32970de39f506b9f463ec74a
10 PKG_DESCR:= wireless authenticator
11 PKG_SECTION:= net/wifi
12 PKG_DEPENDS:= libnl
13 PKG_BUILDDEP:= libnl
14 PKG_URL:= http://hostap.epitest.fi/
15 PKG_SITES:= http://hostap.epitest.fi/releases/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_SUBPKGS:= HOSTAPD HOSTAPD_UTILS
20 PKG_CHOICES_HOSTAPD:= WITH_LIBRESSL WITH_GNUTLS
21 PKGCD_WITH_LIBRESSL:= use libressl for crypto
22 PKGCS_WITH_LIBRESSL:= libressl
23 PKGCB_WITH_LIBRESSL:= libressl
24 PKGCD_WITH_GNUTLS:= use gnutls for crypto
25 PKGCS_WITH_GNUTLS:= libgnutls
26 PKGCB_WITH_GNUTLS:= gnutls
27 PKGSN_HOSTAPD_UTILS:= hostapd
29 WRKSRC= ${WRKDIST}/${PKG_NAME}
31 include ${ADK_TOPDIR}/mk/package.mk
33 $(eval $(call PKG_template,HOSTAPD,hostapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
34 $(eval $(call PKG_template,HOSTAPD_UTILS,hostapd-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
36 CONFIG_STYLE:= manual
37 INSTALL_STYLE:= manual
39 TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
41 do-configure:
42 ${CP} ./files/hostapd.config ${WRKBUILD}/.config
43 ifneq (${ADK_PACKAGE_HOSTAPD_WITH_GNUTLS},)
44 ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
45 endif
47 do-install:
48 ${INSTALL_DIR} ${IDIR_HOSTAPD_UTILS}/usr/sbin
49 ${INSTALL_BIN} ${WRKBUILD}/hostapd_cli ${IDIR_HOSTAPD_UTILS}/usr/sbin/
50 ${INSTALL_DIR} ${IDIR_HOSTAPD}/etc
51 ${INSTALL_DIR} ${IDIR_HOSTAPD}/usr/sbin
52 ${INSTALL_BIN} ${WRKBUILD}/hostapd ${IDIR_HOSTAPD}/usr/sbin/
53 ${INSTALL_DATA} ./files/hostapd.conf ${IDIR_HOSTAPD}/etc
55 include ${ADK_TOPDIR}/mk/pkg-bottom.mk