File: rules

package info (click to toggle)
togl 2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,504 kB
  • sloc: ansic: 5,979; sh: 591; python: 75; javascript: 19; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 875 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --  --with-tcl=/usr/lib --with-tk=/usr/lib

# no check for this software
override_dh_auto_test:
	make examples

execute_after_dh_auto_build:
	rm -vf libTogl2.0.so
	$(CC) -shared $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) -Wl,-soname,libTogl.so.2 -o libTogl.so.2.0 togl.o toglProcAddr.o toglStubInit.o -ldl -lX11 -lGL -lXmu -ltclstub -ltkstub
	$(CC) -shared $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) -Wl,-soname,libToglstub.so.2 -o libToglstub.so.2.0 toglStubLib.o -ldl -lX11 -lGL -lXmu -ltclstub -ltkstub
	sed -i -e 's/libTogl2.0.so/libTogl.so.2.0/' pkgIndex.tcl
	sed -i -e 's/\$$dir/\/usr\/lib/' pkgIndex.tcl

# this triggers GCC again to redo more stuff
override_dh_auto_install:

execute_after_dh_fixperms-indep:
	chmod +x debian/togl-demos/usr/share/togl/*.tcl