2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-18 09:49:45 +01:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# aircrack-ng
|
2013-02-18 09:49:45 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-18 09:49:45 +01:00
|
|
|
|
|
|
|
AIRCRACK_NG_VERSION = 1.1
|
|
|
|
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
|
|
|
|
AIRCRACK_NG_LICENSE = GPLv2+
|
|
|
|
AIRCRACK_NG_LICENSE_FILES = LICENSE
|
|
|
|
AIRCRACK_NG_DEPENDENCIES = openssl
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
AIRCRACK_NG_MAKE_OPTS = sqlite=true
|
2013-08-12 15:50:09 +02:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += \
|
|
|
|
LIBSQL="-lsqlite3$(if $(BR2_PREFER_STATIC_LIB), -ldl -lpthread)"
|
2013-02-18 09:49:45 +01:00
|
|
|
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += sqlite
|
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS = sqlite=false
|
|
|
|
endif
|
|
|
|
|
2013-05-16 09:21:08 +02:00
|
|
|
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) -lz \
|
2013-05-15 00:26:50 +02:00
|
|
|
$(if $(BR2_PREFER_STATIC_LIB),-ldl -lpthread)
|
|
|
|
|
2013-02-18 09:49:45 +01:00
|
|
|
define AIRCRACK_NG_BUILD_CMDS
|
2013-05-05 07:04:25 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
2013-05-15 00:26:50 +02:00
|
|
|
LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
|
2013-05-05 07:04:25 +02:00
|
|
|
-C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all
|
2013-02-18 09:49:45 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define AIRCRACK_NG_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
2013-05-05 07:04:25 +02:00
|
|
|
prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
|
2013-02-18 09:49:45 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|