android
doc
m4
python
build
autotools.py
boost.py
cmdline.py
dirs.py
download.py
ffmpeg.py
libs.py
makeproject.py
meson.py
project.py
quilt.py
tar.py
verify.py
zlib.py
scripts
src
systemd
test
win32
.gitignore
.travis.yml
AUTHORS
COPYING
Makefile.am
NEWS
README.md
autogen.sh
configure.ac
mpd.svg
valgrind.suppressions

DESTDIR is for installing to a chroot, but this is not one. Instead, we want real absolute paths in the pkg-config file.
23 lines
806 B
Python
23 lines
806 B
Python
import os.path, subprocess
|
|
|
|
from build.project import Project
|
|
|
|
class ZlibProject(Project):
|
|
def __init__(self, url, md5, installed,
|
|
**kwargs):
|
|
Project.__init__(self, url, md5, installed, **kwargs)
|
|
|
|
def build(self, toolchain):
|
|
src = self.unpack(toolchain, out_of_tree=False)
|
|
|
|
subprocess.check_call(['/usr/bin/make', '--quiet',
|
|
'-f', 'win32/Makefile.gcc',
|
|
'PREFIX=' + toolchain.arch + '-',
|
|
'-j12',
|
|
'install',
|
|
'INCLUDE_PATH='+ os.path.join(toolchain.install_prefix, 'include'),
|
|
'LIBRARY_PATH=' + os.path.join(toolchain.install_prefix, 'lib'),
|
|
'BINARY_PATH=' + os.path.join(toolchain.install_prefix, 'bin'),
|
|
'SHARED_MODE=1'],
|
|
cwd=src, env=toolchain.env)
|