mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 20:54:47 +00:00
67 lines
2.4 KiB
Makefile
Executable File
67 lines
2.4 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# Copyright (C) 2010 Hunter Kaller
|
|
# Copyright (C) 2014 Sergio Benjamim
|
|
|
|
# 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.
|
|
|
|
# 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.
|
|
|
|
# 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.
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
%:
|
|
dh $@ --parallel
|
|
|
|
QUILT=QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null
|
|
PATCH := $(QUILT) push -a || [ "$$($(QUILT) applied)" = "$$(grep -v '^\#' debian/patches/series)" ]
|
|
UNPATCH := $(QUILT) pop -a || [ "$$($(QUILT) applied 2>&1)" = "No patches applied" ]
|
|
|
|
patch:
|
|
$(PATCH)
|
|
|
|
unpatch:
|
|
$(UNPATCH)
|
|
|
|
override_dh_auto_configure:
|
|
# See ./configure --help for valid flags
|
|
# disable flags (i.e. --disable-ffmpeg for example) if there is no package relative to the feature in Build-Depends
|
|
./configure --prefix=/usr --enable-rgui --enable-kms --enable-cg --disable-ffmpeg --enable-freetype --enable-python --enable-udev --enable-libxml2 --enable-zlib
|
|
|
|
override_dh_auto_build:
|
|
$(MAKE)
|
|
# SoftFilters
|
|
$(MAKE) -C gfx/filters/
|
|
# Audio DSP plugins
|
|
$(MAKE) -C audio/filters/
|
|
|
|
override_dh_auto_install:
|
|
# Add here commands to install the package into debian/retroarch.
|
|
$(MAKE) DESTDIR=$(CURDIR)/debian/retroarch PREFIX=/usr install
|
|
cp $(CURDIR)/AUTHORS $(CURDIR)/debian/retroarch/usr/share/doc/retroarch/
|
|
cp $(CURDIR)/debian/retroarch.desktop $(CURDIR)/debian/retroarch/usr/share/applications/
|
|
# SoftFilters
|
|
cd $(CURDIR)/gfx/filters/ && \
|
|
cp *.so $(CURDIR)/debian/retroarch/usr/lib/retroarch/filters/video/ && \
|
|
cp *.filt $(CURDIR)/debian/retroarch/usr/lib/retroarch/filters/video/
|
|
# Audio DSP plugins
|
|
cd $(CURDIR)/audio/filters/ && \
|
|
cp *.so $(CURDIR)/debian/retroarch/usr/lib/retroarch/filters/audio/ && \
|
|
cp *.dsp $(CURDIR)/debian/retroarch/usr/lib/retroarch/filters/audio/
|
|
|
|
override_dh_auto_clean:
|
|
touch config.mk
|
|
$(MAKE) clean
|
|
$(MAKE) -C gfx/filters/ clean
|
|
$(MAKE) -C audio/filters/ clean
|