11
CFLAGS="-g -O2 -fno-omit-frame-pointer"
12
target = os.environ.get ('SET_TARGET')
13
host = os.environ.get ('SET_HOST')
14
prefix = os.environ.get ('SET_PREFIX', '/usr')
15
runprefix = os.environ.get ('SET_RUNPREFIX', '/usr')
17
tarball = "{name}-{version}{src_type}".format (name=name, version=version, src_type=src_type)
18
tarball_uri = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/{name}/{tarball}".format (name=name, version=version, tarball=tarball)
19
patches_before_reconf = [
20
("../patches/msysize.all.patch", 1),
21
("../patches/pcre-8.21-multilib.patch", 1),
22
("../patches/pcre-8.36-Fix-bug-when-there-are-unset-groups-prior-to-ACCEPT-.patch", 1),
23
("../patches/pcre-8.36-Fix-zero-repeat-assertion-condition-bug.patch", 1),
25
patches_after_reconf = []
26
patches_after_configure = []
27
build_patches_after_configure = []
29
datarootdir='${prefix}/share'
30
docdir='${prefix}/share/doc/' + name + '/' + version
31
sbindir='${prefix}/sbin'
32
libexecdir='${prefix}/libexec'
36
cd = os.path.dirname (os.path.realpath (__file__))
37
cd = os.environ.get ('SET_CD', cd)
39
source_directory = os.path.join (cd, name + '-' + version)
40
build_directory = os.path.join (cd, 'bld')
41
install_directory = os.path.join (cd, 'inst')
43
download_directory = os.path.join (cd, 'download')
44
download_directory = os.environ.get ('SET_DOWNLOAD_DIRECTORY', download_directory)
46
essential_directory = os.environ.get ('SET_ESSENTIAL_DIRECTORY', None)
48
sysroot_directory = os.environ.get ('SET_SYSROOT_DIRECTORY')
50
repository_directory = os.environ.get ('SET_REPOSITORY_DIRECTORY')
52
script_directory = os.environ.get ('SET_SCRIPT_DIRECTORY')