1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ifneq (,$(findstring qt5, $(shell dh_listpackages)))
BUILD_qt5 := yes
else
BUILD_qt5 :=
endif
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CPPFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
%:
dh $@ --parallel --list-missing --with pkgkde_symbolshelper
override_dh_auto_configure:
mkdir -p build-qt4 build-qt5
cp -a doc build-qt4/
QT_SELECT=qt4 dh_auto_configure --builddirectory=build-qt4 -- ../qwtplot3d.pro
$(if $(BUILD_qt5), QT_SELECT=qt5 dh_auto_configure --builddirectory=build-qt5 -- ../qwtplot3d.pro,)
override_dh_auto_build:
dh_auto_build --builddirectory=build-qt4
$(if $(BUILD_qt5), dh_auto_build --builddirectory=build-qt5,)
cd build-qt4/doc && doxygen Doxyfile.doxygen
override_dh_auto_clean:
rm -rf build-qt?
override_dh_auto_install:
mkdir -p debian/tmp/usr/include/qwtplot3d-qt4
cp -a include/* debian/tmp/usr/include/qwtplot3d-qt4
dh_auto_install --builddirectory=build-qt4
mkdir -p debian/tmp/usr/include/qwtplot3d
cp -a include/* debian/tmp/usr/include/qwtplot3d
$(if $(BUILD_qt5), dh_auto_install --builddirectory=build-qt5,)
find debian/tmp/usr -type f -name '*.md5' -exec rm -vf {} \;
find debian/tmp/usr -type f -name '*.js' -exec rm -vf {} \;
mkdir -p debian/tmp/usr/share/doc/libqwtplot3d-doc/html
#rm -f build-qt4/doc/web/doxygen/jquery.js
#cd build-qt4/doc/web/doxygen/ && ln -s /usr/share/javascript/jquery/jquery.js .
cp -a build-qt4/doc/web/doxygen/* debian/tmp/usr/share/doc/libqwtplot3d-doc/html
override_dh_compress-indep:
dh_compress --exclude=.cpp --exclude=.pri --exclude=.xpm --exclude=.ui
|