aboutsummaryrefslogtreecommitdiffstats
path: root/package/aircrack-ng/aircrack-ng.mk
blob: 48897da7c2c067177be80058c79643cfe4cf967e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#############################################################
#
# 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)" -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) \
		$(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))