Fixed maemo rules
[pcsx_rearmed.git] / debian_maemo / rules
CommitLineData
029295b0
PI
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4#export DH_VERBOSE=1
5
6DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
9
10#GAME_VERSION := $(shell head debian/changelog -n1 | sed -n 's/.* (\(.*\)) .*/\1/p')
11CFLAGS = -Wall -g
12
13ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14 CFLAGS += -O0
15else
16 CFLAGS += -O2
17endif
18
19build: build-stamp
20
21build-stamp:
22 dh_testdir
23 ./configure --platform=maemo --gpu=neon --sound-drivers=pulseaudio --enable-neon
24 $(MAKE)
fb7136b6
PI
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
029295b0
PI
29 touch build-stamp
30
31clean:
32 dh_testdir
33 dh_testroot
34 rm -f build-stamp
35 dh_clean
36 $(MAKE) clean clean_plugins
37
38install: 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
47binary-indep: build install
48
49binary-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
67binary: binary-indep binary-arch
68.PHONY: build clean binary-indep binary-arch binary install