rev 6060 - branches/kde4/cdbs

Sune Vuorela pusling-guest at alioth.debian.org
Thu May 3 22:05:07 UTC 2007


Author: pusling-guest
Date: 2007-05-03 22:05:06 +0000 (Thu, 03 May 2007)
New Revision: 6060

Added:
   branches/kde4/cdbs/cmake.mk
   branches/kde4/cdbs/kde.mk
Log:
mm... 
echo "include debian/cdbs/kde.mk" > debian/rules ; debuild
This should be svn:externals. Wonder if it works


Added: branches/kde4/cdbs/cmake.mk
===================================================================
--- branches/kde4/cdbs/cmake.mk	2007-05-03 21:40:47 UTC (rev 6059)
+++ branches/kde4/cdbs/cmake.mk	2007-05-03 22:05:06 UTC (rev 6060)
@@ -0,0 +1,61 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright (C) 2006 Peter Rockai <me at mornfall.net>
+# Copyright (C) 2006 Fathi Boudra <fboudra at free.fr>
+# Description: A class for cmake packages
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+ifndef _cdbs_bootstrap
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+endif
+
+ifndef _cdbs_class_cmake
+_cdbs_class_cmake := 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+ifdef _cdbs_tarball_dir
+DEB_BUILDDIR = $(_cdbs_tarball_dir)/obj-$(DEB_BUILD_GNU_TYPE)
+else
+DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
+endif
+
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)
+DEB_CMAKE_PREFIX =/usr
+
+# Overriden from makefile-vars.mk
+# We pass CFLAGS and friends to ./configure, so no need to pass them to make
+DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR)
+
+include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix)
+
+
+common-configure-arch common-configure-indep:: common-configure-impl
+common-configure-impl:: $(DEB_BUILDDIR)/CMakeCache.txt
+$(DEB_BUILDDIR)/CMakeCache.txt:
+	cd $(DEB_BUILDDIR) && cmake $(CURDIR)/$(DEB_SRCDIR) \
+	-DCMAKE_INSTALL_PREFIX="$(DEB_CMAKE_PREFIX)" \
+	$(DEB_CMAKE_EXTRA_FLAGS) -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+	-DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_VERBOSE_MAKEFILE=ON $(DEB_CMAKE_DEBUG_FLAGS)
+	mkdir -p $(DEB_DESTDIR)
+
+cleanbuilddir::
+	-if test "$(DEB_BUILDDIR)" != "$(DEB_SRCDIR)"; then rm -rf $(DEB_BUILDDIR); fi
+
+endif
+

Added: branches/kde4/cdbs/kde.mk
===================================================================
--- branches/kde4/cdbs/kde.mk	2007-05-03 21:40:47 UTC (rev 6059)
+++ branches/kde4/cdbs/kde.mk	2007-05-03 22:05:06 UTC (rev 6060)
@@ -0,0 +1,20 @@
+include debian/cdbs/cmake.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/rules/utils.mk
+
+DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp
+DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
+
+
+DEB_CMAKE_EXTRA_FLAGS = $(DEB_CMAKE_EXTRA_FLAGS) -D
+
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	#no optimizations, full debug
+       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=debugfull
+else
+	#This is around -O2 -g
+       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=relwithdebinfo
+endif
+
+




More information about the pkg-kde-commits mailing list