2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-02-18 16:49:45 +08:00
|
|
|
#
|
2013-06-06 07:53:28 +08:00
|
|
|
# aircrack-ng
|
2013-02-18 16:49:45 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-02-18 16:49:45 +08: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 21:50:09 +08:00
|
|
|
AIRCRACK_NG_MAKE_OPTS += \
|
|
|
|
LIBSQL="-lsqlite3$(if $(BR2_PREFER_STATIC_LIB), -ldl -lpthread)"
|
2013-02-18 16:49:45 +08:00
|
|
|
|
|
|
|
AIRCRACK_NG_DEPENDENCIES += sqlite
|
|
|
|
else
|
|
|
|
AIRCRACK_NG_MAKE_OPTS = sqlite=false
|
|
|
|
endif
|
|
|
|
|
2013-05-16 15:21:08 +08:00
|
|
|
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) -lz \
|
2013-05-15 06:26:50 +08:00
|
|
|
$(if $(BR2_PREFER_STATIC_LIB),-ldl -lpthread)
|
|
|
|
|
2013-02-18 16:49:45 +08:00
|
|
|
define AIRCRACK_NG_BUILD_CMDS
|
2013-05-05 13:04:25 +08:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
2013-05-15 06:26:50 +08:00
|
|
|
LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
|
2013-05-05 13:04:25 +08:00
|
|
|
-C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all
|
2013-02-18 16:49:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define AIRCRACK_NG_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
2013-05-05 13:04:25 +08:00
|
|
|
prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
|
2013-02-18 16:49:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|