tcpreplay: Bump version to v4.2.0
[buildroot-gz.git] / package / aircrack-ng / aircrack-ng.mk
blob7e5464d382e66b740b211dcd29bbef3a62e4f75d
1 ################################################################################
3 # aircrack-ng
5 ################################################################################
7 AIRCRACK_NG_VERSION = 1.2-rc1
8 AIRCRACK_NG_SITE = http://download.aircrack-ng.org
9 AIRCRACK_NG_LICENSE = GPLv2+
10 AIRCRACK_NG_LICENSE_FILES = LICENSE
11 AIRCRACK_NG_DEPENDENCIES = openssl zlib host-pkgconf
12 # Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
13 AIRCRACK_NG_MAKE_OPTS = unstable=true
15 # Account for libpthread in static
16 AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) \
17 $(if $(BR2_STATIC_LIBS),-lpthread -lz)
19 # libnl support has issues when building static
20 ifeq ($(BR2_STATIC_LIBS),y)
21 AIRCRACK_NG_MAKE_OPTS += libnl=false
22 else
23 AIRCRACK_NG_MAKE_OPTS += libnl=true
24 AIRCRACK_NG_DEPENDENCIES += libnl
25 endif
27 ifeq ($(BR2_PACKAGE_LIBPCAP),y)
28 AIRCRACK_NG_DEPENDENCIES += libpcap
29 AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=yes \
30 $(if $(BR2_STATIC_LIBS),LIBPCAP="-lpcap `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`")
31 else
32 AIRCRACK_NG_MAKE_OPTS += HAVE_PCAP=no
33 endif
35 ifeq ($(BR2_PACKAGE_PCRE),y)
36 AIRCRACK_NG_DEPENDENCIES += pcre
37 AIRCRACK_NG_MAKE_OPTS += pcre=true
38 else
39 AIRCRACK_NG_MAKE_OPTS += pcre=false
40 endif
42 # Duplicate -lpthread, because it is also needed by sqlite
43 ifeq ($(BR2_PACKAGE_SQLITE),y)
44 AIRCRACK_NG_DEPENDENCIES += sqlite
45 AIRCRACK_NG_MAKE_OPTS += sqlite=true LIBSQL="-lsqlite3 $(if $(BR2_STATIC_LIBS),-lpthread)"
46 else
47 AIRCRACK_NG_MAKE_OPTS += sqlite=false
48 endif
50 define AIRCRACK_NG_BUILD_CMDS
51 $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
52 $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS)
53 endef
55 define AIRCRACK_NG_INSTALL_TARGET_CMDS
56 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
57 prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
58 endef
60 $(eval $(generic-package))