2009-06-25 05:27:32 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
|
|
|
include /usr/share/cdbs/1/class/cmake.mk
|
|
|
|
|
|
|
|
|
|
# Add here any variable or target overrides you need.
|
2009-11-14 13:17:57 +00:00
|
|
|
PACKAGE = openmesh
|
2009-06-25 05:27:32 +00:00
|
|
|
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
|
|
|
|
|
SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
|
|
|
|
|
TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
|
|
|
|
|
.PHONY: get-orig-source
|
|
|
|
|
get-orig-source:
|
|
|
|
|
rm -rf get-orig-source $(TARBALL)
|
|
|
|
|
mkdir get-orig-source
|
|
|
|
|
svn export -r $(SVN_REVISION) --username anonymous --password anonymous http://openmesh.org/svnrepo/OpenMesh/trunk/ \
|
|
|
|
|
get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
|
2009-11-14 13:17:57 +00:00
|
|
|
# need to delete debian directory here:
|
|
|
|
|
rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/debian
|
2009-06-25 05:27:32 +00:00
|
|
|
GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
|
|
|
|
|
rm -rf get-orig-source
|
|
|
|
|
echo " "$(TARBALL)" created; move it to the right destination to build the package"
|
|
|
|
|
|
2009-06-26 05:39:31 +00:00
|
|
|
build/libopenmesh-doc::
|
|
|
|
|
cd $(DEB_BUILDDIR) && $(MAKE) doc
|
|
|
|
|
mkdir -p debian/tmp/usr/share/doc/
|
|
|
|
|
cp -r $(DEB_BUILDDIR)/Build/share/OpenMesh/Doc/html debian/tmp/usr/share/doc/OpenMesh
|
|
|
|
|
|
2009-06-25 05:27:32 +00:00
|
|
|
install/libopenmesh::
|
|
|
|
|
ln -sf libOpenMeshCore.so.2.0 debian/tmp/usr/lib/OpenMesh/libOpenMeshCore.so.2
|
|
|
|
|
ln -sf libOpenMeshTools.so.2.0 debian/tmp/usr/lib/OpenMesh/libOpenMeshTools.so.2
|
|
|
|
|
dh_install -plibopenmesh debian/tmp/usr/lib/OpenMesh/lib*.so.* /usr/lib/
|
|
|
|
|
|
|
|
|
|
install/libopenmesh-dev::
|
|
|
|
|
dh_install -plibopenmesh-dev debian/tmp/usr/lib/OpenMesh/lib*.so /usr/lib/
|
|
|
|
|
dh_install -plibopenmesh-dev debian/tmp/usr/lib/OpenMesh/lib*.a /usr/lib/
|
|
|
|
|
dh_install -plibopenmesh-dev --autodest debian/tmp/usr/include/OpenMesh
|
|
|
|
|
|
|
|
|
|
install/libopenmesh-apps::
|
|
|
|
|
dh_install -plibopenmesh-apps debian/tmp/usr/bin/* /usr/lib/OpenMesh/Apps
|
2009-06-26 05:39:31 +00:00
|
|
|
|
|
|
|
|
install/libopenmesh-doc::
|
|
|
|
|
dh_install -plibopenmesh-doc debian/tmp/usr/share/doc/*
|