Expose 2 game hacks to allow play PE2, VH1/2 & Inuyasha
[pcsx_rearmed.git] / debian_maemo / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE=1
5
6 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
9
10 #GAME_VERSION := $(shell head debian/changelog -n1 | sed -n 's/.* (\(.*\)) .*/\1/p')
11 CFLAGS = -Wall -g
12
13 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14         CFLAGS += -O0
15 else
16         CFLAGS += -O2
17 endif
18
19 build: build-stamp
20
21 build-stamp:
22         dh_testdir
23         ./configure --platform=maemo --gpu=neon --sound-drivers=pulseaudio --enable-neon
24         $(MAKE)
25         strip pcsx
26         strip plugins/gpu_unai/gpu_unai.so
27         strip plugins/gpu-gles/gpu_gles.so
28         strip plugins/spunull/spunull.so
29         touch build-stamp
30
31 clean:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp
35         dh_clean
36         $(MAKE) clean clean_plugins
37
38 install: build
39         dh_testdir
40         dh_testroot
41         dh_installdirs
42         mkdir -p "$(CURDIR)"/debian/pcsxrearmed/opt/maemo/usr/games/screenshots
43         chmod 777 "$(CURDIR)"/debian/pcsxrearmed/opt/maemo/usr/games/screenshots
44         chown user "$(CURDIR)"/debian/pcsxrearmed/opt/maemo/usr/games/screenshots
45         dh_install
46
47 binary-indep: build install
48
49 binary-arch: build install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs
53         dh_installdocs
54         #dh_installmenu
55         dh_link
56         dh_strip
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         dh_makeshlibs
61         dh_shlibdeps
62         dh_gencontrol
63         #maemo-optify
64         dh_md5sums
65         dh_builddeb
66
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install