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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/usr/bin/make -f
%:
dh $@ --with cli --sourcedirectory=src
override_dh_auto_build:
#MONO_IOMAP=all xbuild $(CURDIR)/src/OpenMcdf.sln
# cannot build tests, so only build two targets:
xbuild /tv:4.0 /target:StructuredStorageExplorer $(CURDIR)/src/OpenMcdf.sln
xbuild /tv:4.0 /target:OpenMcdf $(CURDIR)/src/OpenMcdf.sln
override_dh_clean:
# OpenMcdf target:
dh_clean src/OLECompoundFileStorage/obj/Debug/OpenMcdf.dll
dh_clean src/OLECompoundFileStorage/obj/Debug/OpenMcdf.dll.mdb
dh_clean src/OLECompoundFileStorage/bin/Debug/OpenMcdf.dll
dh_clean src/OLECompoundFileStorage/bin/Debug/OpenMcdf.dll.mdb
# StructuredStorageExplorer target:
dh_clean src/TESTOpenMCDF/obj/Debug/StucturedStorageExplorer.exe
dh_clean src/TESTOpenMCDF/obj/Debug/StructuredStorageExplorer.MainForm.resources
dh_clean src/TESTOpenMCDF/obj/Debug/StucturedStorageExplorer.exe.mdb
dh_clean src/TESTOpenMCDF/bin/Debug/OpenMcdf.dll
dh_clean src/TESTOpenMCDF/bin/Debug/OpenMcdf.dll.mdb
dh_clean src/TESTOpenMCDF/bin/Debug/StucturedStorageExplorer.exe
dh_clean src/TESTOpenMCDF/bin/Debug/StucturedStorageExplorer.exe.mdb
dh_clean src/TESTOpenMCDF/obj/Debug/StructuredStorageExplorer.Properties.Resources.resources
#
dh_clean src/OLECompoundFileStorage/bin/Debug/OpenMcdf.xml
dh_clean src/OLECompoundFileStorage/obj/Debug/OpenMcdf.csproj.FilesWrittenAbsolute.txt
dh_clean src/TESTOpenMCDF/bin/Debug/StucturedStorageExplorer.exe.config
dh_clean src/TESTOpenMCDF/obj/Debug/StructuredStorageExplorer.csproj.FilesWrittenAbsolute.txt
override_dh_install:
dh_install src/TESTOpenMCDF/bin/Debug/StucturedStorageExplorer.exe usr/lib/OpenMCDF
dh_install src/OLECompoundFileStorage/bin/Debug/OpenMcdf.dll usr/lib/OpenMCDF
override_dh_auto_install:
dh_install debian/structuredstorageexplorer usr/bin
dh_install debian/structuredstorageexplorer.xpm usr/share/pixmaps
dh_install debian/structuredstorageexplorer.desktop usr/share/applications
dh_install help usr/share/OpenMCDF
override_dh_installchangelogs:
dh_installchangelogs "Release notes.txt"
override_dh_installman:
dh_installman debian/structuredstorageexplorer.1
MPL: License.txt
cp -f $< $@
override_dh_installdocs: MPL
dh_installdocs -A $^
# cant get uscan to work with whitespace in name
# -> http://bugs.debian.org/648299
#get-orig-source:
# uscan --verbose --force-download --repack --rename
VER_FULL = 1.5.4
UPSTREAM_SRC = "OpenMCDF $(VER_FULL)"
UPSTREAM_SRC_DIR = "OpenMcdf $(VER_FULL)"
DEBIAN_SRC_DIR = openmcdf-$(VER_FULL)
DEBIAN_SRC_TAR = openmcdf_$(VER_FULL).orig.tar.gz
get-orig-source:
wget -c http://surfnet.dl.sourceforge.net/project/openmcdf/OpenMcdf%201.x/$(UPSTREAM_SRC).zip
unzip $(UPSTREAM_SRC).zip
mv $(UPSTREAM_SRC_DIR) $(DEBIAN_SRC_DIR)
# get rid of dll and exe files:
find $(DEBIAN_SRC_DIR) -name *.dll -delete -o -name *.exe -delete -o -name *.pdb -delete
GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
rm -rf $(DEBIAN_SRC_DIR)
rm $(UPSTREAM_SRC).zip
|