Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Monday, December 31st, 2007 at 6:21:53pm UTC 

  1. # until bug 377524 resolved.
  2. include debian/cdbs/cmake.mk
  3. include /usr/share/cdbs/1/rules/debhelper.mk
  4. include /usr/share/cdbs/1/rules/patchsys-quilt.mk
  5. include /usr/share/cdbs/1/rules/utils.mk
  6.  
  7. DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
  8. DEB_CMAKE_EXTRA_FLAGS += \
  9.                         $(DEB_CMAKE_DEBUG_FLAGS) \
  10.                         $(KDE4-ENABLE-FINAL) \
  11.                         -DKDE4_BUILD_TESTS=true \
  12.                         -DKDE_DISTRIBUTION_TEXT="Kubuntu packages" \
  13.                         -DCONFIG_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/etc/kde4 \
  14.                         -DDATA_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/kde4/apps \
  15.                         -DHTML_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/doc/kde4/HTML \
  16.                         -DKCFG_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/kde4/config.kcfg \
  17.                         -DLIB_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/lib \
  18.                         -DSYSCONF_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/etc
  19.  
  20. DEB_CMAKE_PREFIX = /usr/lib/kde4
  21. DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp
  22. DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/
  23. DEB_KDE_ENABLE_FINAL ?=
  24. #DEB_MAKE_ENVVARS += XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/share
  25. #DEB_STRIP_EXCLUDE = so
  26.  
  27. ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  28.     cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
  29.     ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
  30.         KDE4-ENABLE-FINAL = $(if $(DEB_KDE_ENABLE_FINAL),-DKDE4_ENABLE_FINAL=true,)
  31.     else
  32.         KDE4-ENABLE-FINAL =
  33.     endif
  34. endif
  35.  
  36. ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  37.         #no optimizations, full debug
  38.        DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=debugfull
  39. else
  40.         #This is around -O2 -g
  41.        DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=relwithdebinfo
  42. endif
  43.  
  44. common-build-arch:: debian/stamp-man-pages
  45. debian/stamp-man-pages:
  46.         if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
  47.         for f in $$(find debian/man -name '*.sgml'); do \
  48.                 docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \
  49.         done
  50.         for f in $$(find debian/man -name '*.man'); do \
  51.                 soelim -I debian/man $$f \
  52.                 > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \
  53.         done
  54.         touch debian/stamp-man-pages
  55.  
  56. clean::
  57. ifndef THIS_SHOULD_GO_TO_UNSTABLE
  58.         #guard against experimental uploads to unstable
  59.         #dpkg-parsechangelog | grep ^Distribution | grep -q experimental
  60. endif
  61.         rm -rf debian/man/out
  62.         -rmdir debian/man
  63.         rm -f debian/stamp-man-pages
  64.         rm -f CMakeCache.txt
  65.  
  66.  
  67. $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
  68.         if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
  69.         if test -e debian/$(cdbs_curpkg).lintian; then \
  70.                 install -p -D -m644 debian/$(cdbs_curpkg).lintian \
  71.                         debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
  72.         fi
  73.         if test -e debian/$(cdbs_curpkg).presubj; then \
  74.                 install -p -D -m644 debian/$(cdbs_curpkg).presubj \
  75.                         debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
  76.         fi
  77.  
  78. binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
  79.         set -e; \
  80.         for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
  81.                 pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
  82.                 echo Building $$pkg HTML docs...; \
  83.                 mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  84.                 cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  85.                 meinproc4 $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \
  86.         done
  87.         for pkg in $(DOC_HTML_PRUNE) ; do \
  88.                 rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  89.         done

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right