~lrn1986/stupidbuild/msys2-xc

« back to all changes in this revision

Viewing changes to src/msys/pcre/conf.py

  • Committer: LRN
  • Date: 2015-03-25 16:02:51 UTC
  • Revision ID: lrn1986@gmail.com-20150325160251-hecdhgrbbfowxa91
Initial commit for the buildsystem rewrite

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python3
 
2
 
 
3
import os
 
4
 
 
5
name="pcre"
 
6
badname="pcre"
 
7
version="8.36"
 
8
revision="1"
 
9
distr="msys2"
 
10
src_type=".tar.bz2"
 
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')
 
16
 
 
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),
 
24
]
 
25
patches_after_reconf = []
 
26
patches_after_configure = []
 
27
build_patches_after_configure = []
 
28
 
 
29
datarootdir='${prefix}/share'
 
30
docdir='${prefix}/share/doc/' + name + '/' + version
 
31
sbindir='${prefix}/sbin'
 
32
libexecdir='${prefix}/libexec'
 
33
sysconfdir='/etc'
 
34
localstatedir='/var'
 
35
 
 
36
cd = os.path.dirname (os.path.realpath (__file__))
 
37
cd = os.environ.get ('SET_CD', cd)
 
38
 
 
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')
 
42
 
 
43
download_directory = os.path.join (cd, 'download')
 
44
download_directory = os.environ.get ('SET_DOWNLOAD_DIRECTORY', download_directory)
 
45
 
 
46
essential_directory = os.environ.get ('SET_ESSENTIAL_DIRECTORY', None)
 
47
 
 
48
sysroot_directory = os.environ.get ('SET_SYSROOT_DIRECTORY')
 
49
 
 
50
repository_directory = os.environ.get ('SET_REPOSITORY_DIRECTORY')
 
51
 
 
52
script_directory = os.environ.get ('SET_SCRIPT_DIRECTORY')