2014-07-15 03:44:17 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2015-02-01 23:50:14 +01:00
|
|
|
# Copyright (C) 2011-2015 Hunter Kaller
|
|
|
|
# Copyright (C) 2014, 2015 Sergio Benjamim
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
%:
|
|
|
|
dh $@ --parallel
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
override_dh_auto_build:
|
|
|
|
ifeq ($(ARCH),armhf)
|
|
|
|
$(MAKE) -f Makefile.libretro platform="armv hardfloat"
|
|
|
|
else
|
2014-07-15 03:44:17 +02:00
|
|
|
$(MAKE) -f Makefile.libretro
|
2015-01-07 23:39:19 +01:00
|
|
|
endif
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
override_dh_auto_install:
|
|
|
|
cp *.so debian/libretro-*/usr/lib/libretro/
|
2014-07-15 03:44:17 +02:00
|
|
|
|
2015-01-07 23:39:19 +01:00
|
|
|
override_dh_auto_clean:
|
2014-07-15 03:44:17 +02:00
|
|
|
$(MAKE) -f Makefile.libretro clean
|