-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
meta.yaml
160 lines (150 loc) · 4.69 KB
/
meta.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{% set version = "1.3.1" %}
{% set build_num = 2 %}
package:
name: zlib-split
version: {{ version }}
source:
url:
- http://zlib.net/zlib-{{ version }}.tar.gz
- https://gnupg.org/ftp/gcrypt/zlib/zlib-{{ version }}.tar.gz
sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
build:
number: {{ build_num }}
requirements:
build:
- cmake # [win]
- {{ compiler('c') }}
- {{ stdlib('c') }}
- make # [unix]
run:
outputs:
- name: libzlib
build:
run_exports:
- {{ pin_subpackage('libzlib', max_pin='x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
run:
run_constrained:
- zlib {{ version }} *_{{ build_num }}
files:
- lib/libz.so.* # [linux]
- lib/libz.*.dylib # [osx]
- Library/bin/zlib.dll # [win]
- zlib.dll # [win]
test:
commands:
- test ! -f ${PREFIX}/lib/libz.a # [unix]
- test ! -f ${PREFIX}/lib/libz${SHLIB_EXT} # [unix]
- test ! -f ${PREFIX}/include/zlib.h # [unix]
- if not exist %LIBRARY_BIN%\zlib.dll exit 1 # [win]
- if not exist %PREFIX%\zlib.dll exit 1 # [win]
- name: libzlib-wapi
build:
skip: true # [not win]
run_exports:
- {{ pin_subpackage('libzlib-wapi', max_pin='x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
run:
run_constrained:
- zlib {{ version }} *_{{ build_num }}
- zlib-wapi {{ version }} *_{{ build_num }}
files:
- Library/bin/zlibwapi.dll # [win]
test:
commands:
- if not exist "%LIBRARY_BIN%\zlibwapi.dll" exit 1 # [win]
- name: zlib
build:
run_exports:
- {{ pin_subpackage('libzlib', max_pin='x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
- {{ pin_subpackage('libzlib', exact=True) }}
run:
- {{ pin_subpackage('libzlib', exact=True) }}
files:
- lib/libz.so # [linux]
- lib/libz.dylib # [osx]
- include # [unix]
- lib/pkgconfig # [unix]
- lib/libz.a # [unix]
- Library/include # [win]
- Library/share # [win]
- Library/lib/zlib.lib # [win]
- Library/lib/zdll.lib # [win]
- Library/lib/z.lib # [win]
- Library/lib/zlibstatic.lib # [win]
- Library/lib/pkgconfig # [win]
test:
requires:
- {{ compiler('c') }}
files:
- test_compile_flags.bat
- test_compile_flags.c
commands:
- test -f ${PREFIX}/lib/libz.a # [unix]
- test -f ${PREFIX}/lib/libz${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/include/zlib.h # [unix]
- if not exist %LIBRARY_LIB%\zlibstatic.lib exit 1 # [win]
- if not exist %LIBRARY_LIB%\zlib.lib exit 1 # [win]
- if not exist %LIBRARY_LIB%\pkgconfig\zlib.pc exit 1 # [win]
- if not exist %LIBRARY_INC%\zlib.h exit 1 # [win]
- if exist %LIBRARY_LIB%\zlibwapi.lib exit 1 # [win]
- call test_compile_flags.bat # [win]
- name: zlib-wapi
build:
skip: true # [not win]
run_exports:
- {{ pin_subpackage('libzlib-wapi', max_pin='x') }}
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
host:
- {{ pin_subpackage('libzlib-wapi', exact=True) }}
- {{ pin_subpackage('zlib', exact=True) }}
run:
- {{ pin_subpackage('libzlib-wapi', exact=True) }}
- {{ pin_subpackage('zlib', exact=True) }}
files:
- Library/lib/zlibwapi.lib # [win]
- Library/include/zlib.h # [win]
test:
requires:
- {{ compiler('c') }}
files:
- test_compile_flags.bat
- test_compile_flags.c
commands:
- if not exist %LIBRARY_LIB%\zlibwapi.lib exit 1 # [win]
- if not exist %LIBRARY_INC%\zlib.h exit 1 # [win]
- call test_compile_flags.bat "wapi" # [win]
about:
home: http://zlib.net/
license: Zlib
summary: Massively spiffy yet delicately unobtrusive compression library
license_family: Other
license_file: LICENSE
description: |
zlib is designed to be a free, general-purpose, lossless data-compression
library for use on virtually any computer hardware and operating system.
doc_url: http://zlib.net/manual.html
dev_url: https://github.com/madler/zlib
extra:
recipe-maintainers:
- groutr
- msarahan
- ocefpaf
- isuruf
feedstock-name: zlib