view debian/rules @ 668:3bdcee61356d
blocks3d/www: fix log-file caused bug of building
r2w was configured to use /tmp/blocks3d-www-build.log.
It caused build error if this file has been creted by other user.
Log-file path was changed to ./output/blocks3d-www-build.log
Makefile was changed to create ./output directory before running r2w
author |
boris (kodomo) <bnagaev@gmail.com> |
date |
Fri, 01 Jul 2011 10:32:37 +0400 |
parents |
cc1ed3a62673 |
children |
2b74596f3c64 |
line source
3 DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
4 DEB_PYTHON_SYSTEM = pysupport
5 DEB_COMPRESS_EXCLUDE = .py
6 DEB_PYTHON_MODULE_PACKAGES = $
(filter-out blocks3d-wt, $
(DEB_PACKAGES))
8 include /usr/share/cdbs/1
/rules/debhelper.mk
9 include /usr/share/cdbs/1
/class/python-distutils.mk
14 build/geometrical-core2::
16 fix_path='import sys\nsys.path.append("/usr/share/geometrical-core2")'; \
17 cat geometrical_core/geometrical-core \
18 | sed "1 { x; s@^@\n$${fix_path}\n@; x }; /^$$/ x" \
19 > debian/bin/geometrical-core2
20 chmod +x debian/bin/geometrical-core2
25 # Manually build blocks3d-wt to avoid build-dependency on qmake
27 b3dwt_cpp = $
(wildcard $
(b3dwt)/*.C)
28 b3dwt_o = $
(b3dwt_cpp:.C=.o)
29 b3dwt_exe = $
(b3dwt)/blocks3d-wt
33 build/blocks3d-wt:: $
(b3dwt_exe) debian/.dep
35 $
(b3dwt_exe): $
(b3dwt_o)
36 $
(CC) -o $
@ $^
-lwt -lwtfcgi -lboost_signals -O3
44 debian/.dep: $
(b3dwt_cpp)