summaryrefslogtreecommitdiff
path: root/unzip/Makefile
blob: 614ec69912dd5c2a69a4051272f05d29c1a895db (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
44
45
46
47
48
49
50
51
package ?= ips

include /usr/share/cibs/rules/$(package).mk
include /usr/share/cibs/rules/archive.mk
include /usr/share/cibs/rules/64.mk
include /usr/share/cibs/rules/copy.mk
include /usr/share/cibs/rules/patch.mk


summary := De-archiver for .zip files
license-file := $(sourcedir)/LICENSE
license := Info-ZIP license

home     := http://www.info-zip.org/UnZip.html
name     := zip
version  := 6.0
archive  := unzip60.tar.gz
download := http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/$(archive)

checksum-unzip60.tar.gz := \
     md5:62b490407489521db863b523a7f86375 \
    sha1:abf7de8a4018a983590ed6f5cbd990d4740f8a22 \
  sha256:036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37 \
    size:1376845


build-depends += \
	library/libbz2

CFLAGS += -Wall -I. -DUNIX

configure-%-stamp:
	touch $@

CPPFLAGS += -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
 -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
 -DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DIZ_HAVE_UXUIDGID -DNOMEMCPY

build-%-stamp:
	$(MAKE) -C $(builddir) \
		-f unix/Makefile D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
		CC="$(CC)" LF2="$(LDFLAGS)" \
		CF="$(CFLAGS) $(CPPFLAGS) -I." unzips
	touch $@

install-%-stamp:
	cd $(builddir) && $(MAKE) -f unix/Makefile install prefix=$(topdir)/$(protodir)/usr
	cd $(protodir)/usr && mkdir share && mv man share/
	gzip -r9 $(protodir)/usr/share/man
	touch $@