aboutsummaryrefslogtreecommitdiff
path: root/package/quazip/quazip.mk
blob: caf112eba70a770e7bd33438adfeddf0a0055f16 (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
################################################################################
#
# quazip
#
################################################################################

QUAZIP_VERSION = 0.7.3
QUAZIP_SITE = http://sourceforge.net/projects/quazip/files/quazip/$(QUAZIP_VERSION)
QUAZIP_INSTALL_STAGING = YES
QUAZIP_DEPENDENCIES = \
	zlib \
	$(if $(BR2_PACKAGE_QT),qt) \
	$(if $(BR2_PACKAGE_QT5),qt5base)
QUAZIP_LICENSE = LGPLv2.1
QUAZIP_LICENSE_FILES = COPYING

ifeq ($(BR2_PACKAGE_QT5),y)
QUAZIP_QMAKE = $(QT5_QMAKE)
else
QUAZIP_QMAKE = $(QT_QMAKE)
endif

define QUAZIP_CONFIGURE_CMDS
	(cd $(@D); $(TARGET_MAKE_ENV) $(QUAZIP_QMAKE) PREFIX=/usr)
endef

define QUAZIP_BUILD_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef

define QUAZIP_INSTALL_STAGING_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install INSTALL_ROOT=$(STAGING_DIR)
endef

define QUAZIP_INSTALL_TARGET_CMDS
	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install INSTALL_ROOT=$(TARGET_DIR)
endef

$(eval $(generic-package))