Lines 34-40
Link Here
|
34 |
# |
34 |
# |
35 |
|
35 |
|
36 |
|
36 |
|
37 |
import os, sys, struct |
37 |
import os, sys, struct, subprocess |
38 |
|
38 |
|
39 |
COPY=False |
39 |
COPY=False |
40 |
DEBIAN=False |
40 |
DEBIAN=False |
Lines 55-61
Link Here
|
55 |
for item in ['GNU_LGPL_v2', 'COPYRIGHTS']: |
55 |
for item in ['GNU_LGPL_v2', 'COPYRIGHTS']: |
56 |
share_dirs.append(item) |
56 |
share_dirs.append(item) |
57 |
|
57 |
|
58 |
|
58 |
freetype2_cflags = subprocess.check_output(['freetype-config', '--cflags']) |
|
|
59 |
freetype2_include_dirs = (freetype2_cflags.replace('-I', '')).split() |
60 |
|
59 |
pycms_src='src/pycms/' |
61 |
pycms_src='src/pycms/' |
60 |
pycms_module = Extension('sk1libs.pycms._pycms', |
62 |
pycms_module = Extension('sk1libs.pycms._pycms', |
61 |
define_macros = [('MAJOR_VERSION', '1'), |
63 |
define_macros = [('MAJOR_VERSION', '1'), |
Lines 69-75
Link Here
|
69 |
define_macros = [('MAJOR_VERSION', '1'), |
71 |
define_macros = [('MAJOR_VERSION', '1'), |
70 |
('MINOR_VERSION', '0')], |
72 |
('MINOR_VERSION', '0')], |
71 |
sources = [ft2_src+'ft2module.c'], |
73 |
sources = [ft2_src+'ft2module.c'], |
72 |
include_dirs=['/usr/include/freetype2'], |
74 |
include_dirs=freetype2_include_dirs, |
73 |
libraries=['freetype'], |
75 |
libraries=['freetype'], |
74 |
extra_compile_args=["-Wall"]) |
76 |
extra_compile_args=["-Wall"]) |
75 |
|
77 |
|
Lines 93-99
Link Here
|
93 |
define_macros = [('MAJOR_VERSION', '1'), |
95 |
define_macros = [('MAJOR_VERSION', '1'), |
94 |
('MINOR_VERSION', '0')], |
96 |
('MINOR_VERSION', '0')], |
95 |
sources = [imft_src+'_imagingft.c'], |
97 |
sources = [imft_src+'_imagingft.c'], |
96 |
include_dirs=['/usr/include/freetype2'], |
98 |
include_dirs=freetype2_include_dirs, |
97 |
libraries=['freetype'], |
99 |
libraries=['freetype'], |
98 |
extra_compile_args=["-Wall"]) |
100 |
extra_compile_args=["-Wall"]) |
99 |
|
101 |
|