Mercurial > fife-parpg
comparison ext/SConscript @ 618:b5e7e14004a4
Removing libpng from ext and removed the libpng build command from the ext
build target. Added the -DPNG_SKIP_SETJMP_CHECK flag to the linux2-config.py
build config file. This should allow users to use their local copy of libpng
rather than relying on the libpng in ext. Users should probably clean out
their <fife>/etc/install/* directories and re-run 'scons ext'.
Tested on ubuntu 10.04
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 28 Sep 2010 17:43:36 +0000 |
parents | 64738befdf3b |
children |
comparison
equal
deleted
inserted
replaced
617:69ef061db940 | 618:b5e7e14004a4 |
---|---|
15 | 15 |
16 if (failure): | 16 if (failure): |
17 print 'Building failed: guichan' | 17 print 'Building failed: guichan' |
18 Exit(1) | 18 Exit(1) |
19 | 19 |
20 def build_png(target, source, env): | |
21 print "======= FIFE EXTERNAL DEPENDENCY BUILD: LIBPNG =======" | |
22 failure = Execute(Action(['./configure', | |
23 'make all-am', | |
24 'make install prefix=%s' % installpath, | |
25 'make install-data-hook prefix=%s' % installpath], | |
26 chdir=os.path.join(curpath, 'libpng-1.2.29'))) | |
27 | |
28 if (failure): | |
29 print 'Building failed: png' | |
30 Exit(1) | |
31 | |
32 | 20 |
33 ext_cmd = env.Command('ext_target', | 21 ext_cmd = env.Command('ext_target', |
34 'install', | 22 'install', |
35 [build_guichan, | 23 [build_guichan, |
36 build_png, | |
37 os.chdir(Dir('#').abspath)]) | 24 os.chdir(Dir('#').abspath)]) |
38 Alias('ext', ext_cmd) | 25 Alias('ext', ext_cmd) |