kumquat-buildroot/package/aircrack-ng/aircrack-ng.mk
Gustavo Zacarias 1ed86a0791 aircrack-ng: fix build failure and install path
aircrack-ng doesn't account that openssl needs zlib so fix it.
Fixes:
http://autobuild.buildroot.net/results/97f4f90a7d60a0e3ea81c77f6986f1c1bae8d575/

Also fix the install prefix since it was getting installed to /usr/local

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-05 21:08:27 +02:00

45 lines
1.2 KiB
Makefile

#############################################################
#
# Aircrack-ng
#
#############################################################
AIRCRACK_NG_VERSION = 1.1
AIRCRACK_NG_SOURCE = aircrack-ng-$(AIRCRACK_NG_VERSION).tar.gz
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
AIRCRACK_NG_MAKE_OPTS += LIBSQL="-lsqlite3"
AIRCRACK_NG_DEPENDENCIES += sqlite
else
AIRCRACK_NG_MAKE_OPTS = sqlite=false
endif
define AIRCRACK_NG_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
LDFLAGS="$(TARGET_LDFLAGS) -lz" \
-C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all
endef
define AIRCRACK_NG_CLEAN_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
-C $(@D) $(AIRCRACK_NG_MAKE_OPTS) clean
endef
define AIRCRACK_NG_INSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \
prefix=/usr $(AIRCRACK_NG_MAKE_OPTS) install
endef
define AIRCRACK_NG_UNINSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \
$(AIRCRACK_NG_MAKE_OPTS) uninstall
endef
$(eval $(generic-package))