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
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
# Disabling -Werror=format-security because it stops the build: the logger indeed has this weakness.
export DEB_BUILD_MAINT_OPTIONS=hardening=-format,+bindnow reproducible=+all
export DEB_CXXFLAGS_MAINT_APPEND += -std=gnu++14
export QT_SELECT=qt5
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --sourcedirectory=src
# Force using system libs where possible
# and, produce a file containing the version, instead of using compile date.
override_dh_auto_configure:
dh_auto_configure -- \
-DALLOW_BUNDLED_BOOST=OFF\
-DALLOW_BUNDLED_CGAL=OFF\
-DALLOW_BUNDLED_EIGEN=OFF \
-DALLOW_BUNDLED_GLEW=OFF \
-DALLOW_BUNDLED_LIB3DS=OFF \
-DALLOW_BUNDLED_MUPARSER=OFF \
-DALLOW_BUNDLED_OPENCTM=OFF \
-DALLOW_BUNDLED_QHULL=OFF \
-DALLOW_BUNDLED_XERCES=OFF \
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
# Make plugins only "recommends"
override_dh_shlibdeps:
dh_shlibdeps -l$(shell pwd)/debian/meshlab/usr/lib/$(DEB_HOST_MULTIARCH)/meshlab/ -Xplugins
dh_shlibdeps -l$(shell pwd)/debian/meshlab/usr/lib/$(DEB_HOST_MULTIARCH)/meshlab/ -Xbin -Xmeshlab-common -- -ppluginshlibs -dRecommends
|