1 ################################################################################
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
23 AIRCRACK_NG_MAKE_OPTS
+= libnl
=true
24 AIRCRACK_NG_DEPENDENCIES
+= libnl
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`")
32 AIRCRACK_NG_MAKE_OPTS
+= HAVE_PCAP
=no
35 ifeq ($(BR2_PACKAGE_PCRE
),y
)
36 AIRCRACK_NG_DEPENDENCIES
+= pcre
37 AIRCRACK_NG_MAKE_OPTS
+= pcre
=true
39 AIRCRACK_NG_MAKE_OPTS
+= pcre
=false
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)"
47 AIRCRACK_NG_MAKE_OPTS
+= sqlite
=false
50 define AIRCRACK_NG_BUILD_CMDS
51 $(TARGET_CONFIGURE_OPTS
) LDFLAGS
="$(AIRCRACK_NG_LDFLAGS)" \
52 $(MAKE
) -C
$(@D
) $(AIRCRACK_NG_MAKE_OPTS
)
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
60 $(eval
$(generic-package
))