~ubuntu-branches/ubuntu/trusty/mupen64plus-video-z64/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann
  • Date: 2011-07-24 14:24:52 UTC
  • Revision ID: james.westby@ubuntu.com-20110724142452-amlc2lknfu9dgeot
Tags: 1.99.4-3
* Upload to unstable
* debian/control:
  - Build against libglew1.6
  - Depend on pkg-config for new Makefile
* debian/rules:
  - Mark all targets as phony
  - Force PIC using Makefile option
  - Remove unintended optimization flags
* debian/patches:
  - Remove obsolete default-optimisations.patch
  - Add rewrite_makefile.patch, Rewrite Makefile to fix flags and linking

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
20
20
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
21
 
MAKEOPTIONS = V=1 UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 PREFIX=/usr/ LIBDIR="/usr/lib/$(DEB_HOST_MULTIARCH)/mupen64plus"
22
 
 
23
 
%:
 
21
MAKEOPTIONS = V=1 UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 PREFIX=/usr/ LIBDIR="/usr/lib/$(DEB_HOST_MULTIARCH)" PIC=1 OPTFLAGS=""
 
22
 
 
23
DBG_PACKAGE=$(shell dpkg-parsechangelog|grep '^Source: '|sed 's/^Source:\s*//')-dbg
 
24
 
 
25
binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep %:
24
26
        dh $@ --sourcedirectory="projects/unix" --parallel --list-missing
25
27
 
26
28
get-orig-source:
33
35
        dh_auto_install -- $(MAKEOPTIONS)
34
36
 
35
37
override_dh_strip:
36
 
        dh_strip -a --dbg-package=mupen64plus-video-z64-dbg
 
38
        dh_strip -a --dbg-package="$(DBG_PACKAGE)"
37
39
 
38
 
.PHONY: get-orig-source
 
40
.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep \
 
41
        get-orig-source override_dh_auto_build override_dh_auto_install override_dh_strip