File: rules

package info (click to toggle)
freej 0.10git20100110-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 32,080 kB
  • ctags: 22,705
  • sloc: cpp: 156,254; ansic: 25,531; sh: 13,538; perl: 4,624; makefile: 3,278; python: 2,889; objc: 1,284; asm: 1,125; ruby: 126
file content (66 lines) | stat: -rwxr-xr-x 1,625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
#include /usr/share/cdbs/1/rules/dpatch.mk

DEB_CONFIGURE_EXTRA_FLAGS := --disable-cpuflags --enable-debug --enable-opengl

DEB_DH_INSTALL_SOURCEDIR := debian/tmp

DEB_BUILDDIR := build-core

DEB_DBG_PACKAGE_freej := freej-dbg
DEB_DBG_PACKAGE_libfreej0 := libfreej0-dbg
DEB_DBG_PACKAGE_python-freej := python-freej-dbg

# Don't compress .py
DEB_COMPRESS_EXCLUDE := .py

clean::
	-rm -rf $(DEB_BUILDDIR)


## python-freej

PY_VERSIONS := $(shell pyversions --requested debian/control)

configure-stamp-%:
	mkdir -p build-$*
	# check class/autotools.mk if something is wrong with this configure
	cd build-$* && PYTHON=`which $*` \
		$(DEB_CONFIGURE_SCRIPT_ENV) \
		$(DEB_CONFIGURE_SCRIPT) \
		$(DEB_CONFIGURE_NORMAL_ARGS) \
		$(cdbs_configure_flags) \
		$(DEB_CONFIGURE_EXTRA_FLAGS) \
		$(DEB_CONFIGURE_USER_FLAGS) \
		--enable-python
	touch $@

configure/python-freej:: $(addprefix configure-stamp-, $(PY_VERSIONS))

build-stamp-%:
	make -C build-$*
	touch $@

build/python-freej:: $(addprefix build-stamp-, $(PY_VERSIONS))

install-stamp-%:
	make -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
	touch $@

install/python-freej:: $(addprefix install-stamp-, $(PY_VERSIONS))

binary-install/python-freej::
	dh_pycentral -p python-freej

clean::
	-rm -rf $(addprefix build-, $(PY_VERSIONS))
	-rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS))
	-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
	-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))

## end python-freej