visualboyadvance-m/debian/rules

87 lines
1.6 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
# -*- makefile -*-
# vi: ts=4 sw=4 noet
#
# debian/rules file that uses debhelper
# Based on an autogenerated debhelper sample
#
# Uncomment this to turn on verbose mode
#export DH_VERBOSE=1
DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
EXTRA_CMAKE_FLAGS =
ifeq ($(DH_VERBOSE),1)
EXTRA_CMAKE_FLAGS += -DCMAKE_VERBOSE_MAKEFILE=ON
endif
ifneq (,$(filter $(DEB_BUILD_ARCH_CPU),i386 amd64))
EXTRA_CMAKE_FLAGS += -DUSE_ASM_SCALERS=ON -DUSE_ASM_CORE=ON
endif
builddir/Makefile:
dh_testdir
mkdir -p builddir
cd builddir && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" \
-DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
-DENABLE_LIRC=ON -DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
build: build-stamp
build-stamp: builddir/Makefile
dh_testdir
$(MAKE) -C builddir
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf builddir
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
binary-indep: install
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install
dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install