summaryrefslogtreecommitdiffstats
path: root/package/lzip/lzip.mk
blob: 7b1fdf48afbb23204ceb29caf6364a3e455fdd1e (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
################################################################################
#
# lzip
#
################################################################################

LZIP_VERSION = 1.15
LZIP_SITE = http://download.savannah.gnu.org/releases/lzip
LZIP_LICENSE = GPLv3+
LZIP_LICENSE_FILES = COPYING

define LZIP_CONFIGURE_CMDS
	(cd $(@D); ./configure --prefix=/usr \
		$(TARGET_CONFIGURE_OPTS) )
endef

define HOST_LZIP_CONFIGURE_CMDS
	(cd $(@D); ./configure --prefix=/usr \
		$(HOST_CONFIGURE_OPTS) )
endef

define LZIP_BUILD_CMDS
	$(MAKE) -C $(@D)
endef

define HOST_LZIP_BUILD_CMDS
	$(MAKE) -C $(@D)
endef

define LZIP_INSTALL_TARGET_CMDS
	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef

define HOST_LZIP_INSTALL_CMDS
	$(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install
endef

# It's not autotools-based
$(eval $(generic-package))
$(eval $(host-generic-package))