File: rules

package info (click to toggle)
sameboy 1.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 10,528 kB
  • sloc: ansic: 29,948; objc: 22,249; asm: 1,424; pascal: 1,373; makefile: 1,065; xml: 111
file content (18 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- PREFIX=/usr DATA_DIR=/usr/share/sameboy/
	ln -s ../build/bin/BootROMs BootROMs/prebuilt
	DEBCFLAGS="${CPPFLAGS} ${CFLAGS}" dh_auto_build -- libretro
	sed 's|@PLATFORM@|linux|g;s|@LIBRARY_FILENAME@|sameboy_libretro.so|g' \
	kodi-game/game.libretro.sameboy/addon.xml.in > kodi-game/game.libretro.sameboy/addon.xml

override_dh_auto_install:
	dh_auto_install -- FREEDESKTOP=true PREFIX=/usr
	rm debian/tmp/usr/share/sameboy/LICENSE
	rmdir debian/tmp/usr/share/sameboy/BootROMs