[rkward-cvs] SF.net SVN: rkward: [2333] trunk/rkward/debian
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Jan 21 21:10:12 UTC 2008
Revision: 2333
http://rkward.svn.sourceforge.net/rkward/?rev=2333&view=rev
Author: tfry
Date: 2008-01-21 13:10:12 -0800 (Mon, 21 Jan 2008)
Log Message:
-----------
Adjust debian rules to cmake / KDE4 (first attempt)
Modified Paths:
--------------
trunk/rkward/debian/changelog
trunk/rkward/debian/control
trunk/rkward/debian/rules
Modified: trunk/rkward/debian/changelog
===================================================================
--- trunk/rkward/debian/changelog 2008-01-21 21:09:26 UTC (rev 2332)
+++ trunk/rkward/debian/changelog 2008-01-21 21:10:12 UTC (rev 2333)
@@ -1,3 +1,11 @@
+rkward (0.5.0-1) experimental; urgency=low
+
+ * new upstream release TODO!
+ closes: #000000
+ * adjusted to build with KDE4 libraries / CMake
+
+ -- Thomas Friedrichsmeier <tfry at users.sourceforge.net> Mon, 21 Jan 2008 20:30:00 +0200
+
rkward (0.4.9-2) unstable; urgency=low
* remove --ignore-missing-info parameter again (dpkg-shlibdeps 1.14.12
Modified: trunk/rkward/debian/control
===================================================================
--- trunk/rkward/debian/control 2008-01-21 21:09:26 UTC (rev 2332)
+++ trunk/rkward/debian/control 2008-01-21 21:10:12 UTC (rev 2333)
@@ -2,7 +2,7 @@
Section: math
Priority: optional
Maintainer: Thomas Friedrichsmeier <tfry at users.sourceforge.net>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev, kdelibs4-dev, r-base-dev (>= 2.1.0)
+Build-Depends: debhelper (>= 4.0.0), cmake, kdelibs5-dev, r-base-dev (>= 2.1.0)
Standards-Version: 3.7.3
Package: rkward
Modified: trunk/rkward/debian/rules
===================================================================
--- trunk/rkward/debian/rules 2008-01-21 21:09:26 UTC (rev 2332)
+++ trunk/rkward/debian/rules 2008-01-21 21:10:12 UTC (rev 2333)
@@ -21,23 +21,42 @@
CFLAGS += -O2
endif
-config.status: configure
+config.status:
dh_testdir
+ mkdir -p $(CURDIR)/build
+
# Some installations of R need a specific version of the compiler(s)
# R CMD config provides info on which compiler to use
- export F77="`/usr/bin/R CMD config F77`" ; \
- export CC="`/usr/bin/R CMD config CC`" ; \
- export CXX="`/usr/bin/R CMD config CXX`" ; \
- CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-rpath --with-r-home=/usr/lib/R --with-r-libdir=/usr/lib/R/site-library/
+ # TODO: somehow contrary to documentation, the environment variables CC and CXX
+ # appear to have no effect
+ cd $(CURDIR)/build && \
+ CC="`/usr/bin/R CMD config CC asdfa`" \
+ CXX="`/usr/bin/R CMD config CXX asfas`" \
+ F77="`/usr/bin/R CMD config F77`" \
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DDATA_INSTALL_DIR=/usr/share/apps/ \
+ -DINFO_INSTALL_DIR=/usr/share/info \
+ -DMAN_INSTALL_DIR=/usr/share/man \
+ -DCMAKE_SKIP_RPATH=true \
+ -DKDE4_USE_ALWAYS_FULL_RPATH=false \
+ -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+ -DCMAKE_C_FLAGS="$(CFLAGS)" \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DR_EXECUTABLE=/usr/bin/R/ \
+ -DR_LIBDIR=/usr/lib/R/site-library/
+
+ # TODO --disable-rpath ?
+
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ cd $(CURDIR)/build && $(MAKE)
touch build-stamp
@@ -49,13 +68,7 @@
rm -rf $(CURDIR)/debian/.svn
# Add here commands to clean up after the build process.
- [ ! -f Makefile ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
- cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
- cp -f /usr/share/misc/config.guess config.guess
-endif
+ rm -rf $(CURDIR)/build/
dh_clean
@@ -66,7 +79,7 @@
dh_installdirs
# Add here commands to install the package into debian/rkward.
- $(MAKE) install kde_htmldir=/usr/share/doc/kde/HTML DESTDIR=$(CURDIR)/debian/rkward
+ cd $(CURDIR)/build && $(MAKE) install DESTDIR=$(CURDIR)/debian/rkward
# dirty hack to get rid of conflicting r.xml file without adjusting all makefiles
rm -vf $(CURDIR)/debian/rkward/usr/share/apps/katepart/syntax/r.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list