Commit b485f011 authored by Sebastien Jodogne's avatar Sebastien Jodogne

fix debian/rules

parent 01d51ce3
......@@ -22,18 +22,17 @@ CMAKE_VIEWER_EXTRA_FLAGS += \
-DCMAKE_BUILD_TYPE=None # The build type must be set to None, see #711515
override_dh_auto_configure:
# Create the build directories
mkdir -p BuildApplications/ThirdPartyDownloads
mkdir -p BuildViewer/ThirdPartyDownloads
# Put 3rd party packages where the cmake build system expects them
( cd BuildApplications/ThirdPartyDownloads && \
mkdir -p Applications/ThirdPartyDownloads
( cd Applications/ThirdPartyDownloads && \
ln -s ../../debian/ThirdPartyDownloads/Orthanc-1.3.2.tar.gz . )
( cd BuildViewer/ThirdPartyDownloads && \
mkdir -p ViewerPlugin/ThirdPartyDownloads
( cd ViewerPlugin/ThirdPartyDownloads && \
ln -s ../../debian/ThirdPartyDownloads/Orthanc-1.3.2.tar.gz . )
# Configure the command-line tools
mkdir BuildApplications
dh_auto_configure --builddirectory=BuildApplications \
--sourcedirectory=Applications \
-- $(CMAKE_APPLICATIONS_EXTRA_FLAGS)
......@@ -41,6 +40,7 @@ override_dh_auto_configure:
# Minify the official OpenLayers 3.19.0 distribution (Debian
# packages only contains OpenLayers 2 for the time being,
# which is incompatible with OpenLayers 3)
mkdir -p BuildViewer
yui-compressor debian/JS/openlayers-3.19.0/ol-debug.js > BuildViewer/ol.min.js
yui-compressor debian/JS/openlayers-3.19.0/ol.css > BuildViewer/ol.min.css
......@@ -59,8 +59,8 @@ override_dh_auto_build:
--sourcedirectory=ViewerPlugin
override_dh_clean:
rm -rf BuildApplications/ThirdPartyDownloads
rm -rf BuildViewer/ThirdPartyDownloads
rm -rf Applications/ThirdPartyDownloads/
rm -rf ViewerPlugin/ThirdPartyDownloads/
dh_clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment