a pastebin project

Stuff

  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.                         -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
  20.                         -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
  21.                         -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"
  22.  
  23. DEB_CMAKE_PREFIX = /usr/lib/kde4
  24. DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp
  25. DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/
  26. DEB_KDE_ENABLE_FINAL ?=
  27. #DEB_MAKE_ENVVARS += XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/share
  28. #DEB_STRIP_EXCLUDE = so
  29.  
  30. ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  31.     cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
  32.     ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
  33.         KDE4-ENABLE-FINAL = $(if $(DEB_KDE_ENABLE_FINAL),-DKDE4_ENABLE_FINAL=true,)
  34.     else
  35.         KDE4-ENABLE-FINAL =
  36.     endif
  37. endif
  38.  
  39. ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  40.         #no optimizations, full debug
  41.        DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=debugfull
  42. else
  43.         #This is around -O2 -g
  44.        DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=relwithdebinfo
  45. endif
  46.  
  47. common-build-arch:: debian/stamp-man-pages
  48. debian/stamp-man-pages:
  49.         if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
  50.         for f in $$(find debian/man -name '*.sgml'); do \
  51.                 docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \
  52.         done
  53.         for f in $$(find debian/man -name '*.man'); do \
  54.                 soelim -I debian/man $$f \
  55.                 > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \
  56.         done
  57.         touch debian/stamp-man-pages
  58.  
  59. clean::
  60. ifndef THIS_SHOULD_GO_TO_UNSTABLE
  61.         #guard against experimental uploads to unstable
  62.         #dpkg-parsechangelog | grep ^Distribution | grep -q experimental
  63. endif
  64.         rm -rf debian/man/out
  65.         -rmdir debian/man
  66.         rm -f debian/stamp-man-pages
  67.         rm -f CMakeCache.txt
  68.  
  69.  
  70. $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
  71.         if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
  72.         if test -e debian/$(cdbs_curpkg).lintian; then \
  73.                 install -p -D -m644 debian/$(cdbs_curpkg).lintian \
  74.                         debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
  75.         fi
  76.         if test -e debian/$(cdbs_curpkg).presubj; then \
  77.                 install -p -D -m644 debian/$(cdbs_curpkg).presubj \
  78.                         debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
  79.         fi
  80.  
  81. binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
  82.         set -e; \
  83.         for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
  84.                 pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
  85.                 echo Building $$pkg HTML docs...; \
  86.                 mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  87.                 cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  88.                 meinproc4 $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \
  89.         done
  90.         for pkg in $(DOC_HTML_PRUNE) ; do \
  91.                 rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
  92.         done

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you 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.