File: rules

package info (click to toggle)
indigo 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,256 kB
  • sloc: ansic: 309,316; cpp: 137,636; cs: 9,118; asm: 8,011; java: 7,195; sql: 6,697; xml: 4,352; python: 3,426; sh: 207; php: 56; makefile: 49
file content (50 lines) | stat: -rwxr-xr-x 1,871 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

export CPPFLAGS  := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS    := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
export CXXFLAGS  := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
export LDFLAGS   := $(shell dpkg-buildflags --get LDFLAGS)

export JAVA_HOME := /usr/lib/jvm/default-java
export CLASSPATH := /usr/share/java/jna.jar:$(CURDIR)/indigo.jar:$(CURDIR)/indigo-renderer.jar:$(CURDIR)/common-controls.jar

%:
	dh $@ --with autotools_dev,javahelper,python2 --parallel

override_dh_auto_clean:
	find build_scripts/indigo-utils | grep -v CMakeLists | grep -v indigo-utils$$ | xargs rm -rf
	find . -type d -name "dist" | xargs rm -rf 
	find . -name ".dep.inc" | xargs rm -f
	rm -f api/src/indigo_version.h
	rm -f $(CURDIR)/*.jar
	dh_auto_clean

override_dh_auto_configure:
	(cd build_scripts/indigo-utils && cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_SKIP_RPATH=ON \
	 -DUSE_SYSTEM_ZLIB=YES -DUSE_SYSTEM_PNG=YES -DUSE_SYSTEM_CAIRO=YES -DUSE_SYSTEM_PIXMAN=YES \
	 -DCAIRO_LIBRARY_DIRS=/usr/lib/$(DEB_HOST_MULTIARCH) \
	 -DPIXMAN_LIBRARY_DIRS=/usr/lib/$(DEB_HOST_MULTIARCH) -DPIXMAN_INCLUDE_DIRS=/usr/include/pixman-1 -DLIBPIXMAN=libpixman-1.so \
	 -DTINYXML_LIBRARY_DIRS=/usr/lib/$(DEB_HOST_MULTIARCH) .)

override_dh_auto_build:
	(cd build_scripts/indigo-utils && $(MAKE) VERBOSE=1)
	dh_auto_build

override_dh_auto_install-arch:
	dh_installdirs -a
	install $(CURDIR)/utils/chemdiff/chemdiff.sh						\
		debian/indigo-utils/usr/bin/chemdiff
	dh_auto_install -a

override_dh_auto_install-indep:
	dh_installdirs -i
	mkdir -p debian/python-indigo/usr/lib/`pyversions -d`/dist-packages
	install $(CURDIR)/api/python/indigo.py $(CURDIR)/api/plugins/renderer/python/*.py	\
		debian/python-indigo/usr/lib/`pyversions -d`/dist-packages
	dh_auto_install -i

override_dh_makeshlibs:
	dh_makeshlibs -V