mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-25 01:56:43 +07:00
38 lines
975 B
Makefile
38 lines
975 B
Makefile
#!/usr/bin/make -f
|
|
|
|
DRMMODES = sun4i
|
|
COMMON_CONFIGURE_FLAGS = $(shell dpkg-buildflags --export=configure)
|
|
|
|
%:
|
|
dh $@ --with autoreconf,xsf
|
|
|
|
# create m4 directory before running autoreconf
|
|
override_dh_autoreconf:
|
|
mkdir -p m4
|
|
NOCONFIGURE=1 dh_autoreconf ./autogen.sh
|
|
|
|
# remove m4 directory after autoreconf cleanup
|
|
override_dh_autoreconf_clean:
|
|
dh_autoreconf_clean
|
|
rm -rf m4
|
|
|
|
override_dh_auto_configure: $(DRMMODES:%=doconfigure-%)
|
|
|
|
doconfigure-%:
|
|
DH_VERBOSE=1 dh_auto_configure --builddirectory=build/$* -- $(COMMON_CONFIGURE_FLAGS) --with-drmmode=$*
|
|
|
|
override_dh_auto_build: $(DRMMODES:%=dobuild-%)
|
|
|
|
dobuild-%:
|
|
dh_auto_build --builddirectory=build/$*
|
|
|
|
override_dh_auto_install: $(DRMMODES:%=doinstall-%)
|
|
|
|
doinstall-%:
|
|
dh_auto_install --builddirectory=build/$* --destdir=debian/xserver-xorg-video-armsoc-$*
|
|
find debian/xserver-xorg-video-armsoc-$* -name "*.la" -delete
|
|
|
|
# use appropriate warning level for a plugin
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps -- --warnings=6
|