r882 - in packages/boson/boson-base/trunk/debian: . cdbs
Gonéri Le Bouder
goneri-guest at costa.debian.org
Wed Jun 21 14:11:54 UTC 2006
Author: goneri-guest
Date: 2006-06-21 14:11:53 +0000 (Wed, 21 Jun 2006)
New Revision: 882
Added:
packages/boson/boson-base/trunk/debian/cdbs/
packages/boson/boson-base/trunk/debian/cdbs/cmake-vars.mk
packages/boson/boson-base/trunk/debian/cdbs/cmake.mk
Log:
home made cdbs file for cmake
Added: packages/boson/boson-base/trunk/debian/cdbs/cmake-vars.mk
===================================================================
--- packages/boson/boson-base/trunk/debian/cdbs/cmake-vars.mk 2006-06-21 14:07:49 UTC (rev 881)
+++ packages/boson/boson-base/trunk/debian/cdbs/cmake-vars.mk 2006-06-21 14:11:53 UTC (rev 882)
@@ -0,0 +1,55 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2005 Matthew A. Nicholson <matt at matt-land.com>
+# Description: Defines useful variables for packages which have a SConstruct
+# file
+#
+# 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_vars
+_cdbs_class_cmake_vars := 1
+
+include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix)
+
+DEB_CMAKE_PREFIX = /usr
+DEB_CMAKE_SRCDIR = $(CURDIR)
+DEB_CMAKE_BUILDDIR = $(DEB_SRCDIR)/debian/build
+DEB_CMAKE_ENVVARS =
+DEB_CMAKE_INVOKE = cmake -DCMAKE_INSTALL_PREFIX=$(DEB_CMAKE_PREFIX)
+
+# general options (passed on all cmake commands)
+DEB_CMAKE_OPTIONS =
+
+# build target and options (only passed on build)
+DEB_CMAKE_BUILD_TARGET =
+DEB_CMAKE_BUILD_OPTIONS =
+
+# install target and options (only passed on install)
+DEB_CMAKE_INSTALL_TARGET = install
+DEB_CMAKE_INSTALL_OPTIONS =
+
+# clean target
+DEB_CMAKE_CLEAN_TARGET =
+
+DEB_CMAKE_CHECK_TARGET =
+
+endif
Added: packages/boson/boson-base/trunk/debian/cdbs/cmake.mk
===================================================================
--- packages/boson/boson-base/trunk/debian/cdbs/cmake.mk 2006-06-21 14:07:49 UTC (rev 881)
+++ packages/boson/boson-base/trunk/debian/cdbs/cmake.mk 2006-06-21 14:11:53 UTC (rev 882)
@@ -0,0 +1,60 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2005 Matthew A. Nicholson <matt at matt-land.com>
+# Description: Builds and cleans packages which have a SConstruct file
+#
+# 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)
+#include $(_cdbs_class_path)/cmake-vars.mk$(_cdbs_makefile_suffix)
+include debian/cdbs/cmake-vars.mk$(_cdbs_makefile_suffix)
+
+DEB_PHONY_RULES += cmake-clean
+
+#common-configure-arch common-configure-indep:: debian/stamp-cmake-configure
+#debian/stamp-cmake-configure:
+ #mkdir -p $(DEB_CMAKE_BUILDDIR)
+
+
+common-build-arch common-build-indep:: debian/stamp-cmake-build
+debian/stamp-cmake-build:
+ mkdir -p $(DEB_CMAKE_BUILDDIR)
+ cd $(DEB_CMAKE_BUILDDIR) && $(DEB_CMAKE_ENVVARS) $(DEB_CMAKE_INVOKE) $(DEB_CMAKE_SRCDIR) $(DEB_CMAKE_OPTIONS) $(DEB_CMAKE_BUILD_OPTIONS)
+ cd $(DEB_CMAKE_BUILDDIR) && make
+ touch debian/stamp-cmake-build
+
+clean:: cmake-clean
+cmake-clean:
+ rm -Rf CMakeFiles \
+ CMakeCache.txt \
+ debian/stamp-cmake-build \
+ $(DEB_CMAKE_BUILDDIR)
+
+
+common-install-arch common-install-indep:: common-install-impl
+common-install-impl::
+ cd $(DEB_CMAKE_BUILDDIR) && make install DESTDIR=$(DEB_DESTDIR);
+
+endif
More information about the Pkg-games-commits
mailing list