~mitya57/pkg-kde-tools/0.15.16ubuntu1

« back to all changes in this revision

Viewing changes to makefiles/1/debhelper/kde.mk

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2010-04-08 13:41:29 UTC
  • mfrom: (0.1.20 sid)
  • Revision ID: james.westby@ubuntu.com-20100408134129-bsr1dutc0fnb5192
Tags: 0.7.0.1
Remove perl from pkg-kde-tools Depends to workaround (and use to our own
advantage) brokeness in experimental buildds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Include default KDE 4 cmake configuration variables
2
 
include /usr/share/pkg-kde-tools/makefiles/1/variables.mk
3
 
 
4
 
# Check if debhelper (>= 7.3) is installed
5
 
DEB_DH_VERSION := $(shell perl -MDebian::Debhelper::Dh_Version -e \
6
 
    'my $$v=$$Debian::Debhelper::Dh_Version::version;\
7
 
     my @v=split(/\./,$$v); \
8
 
     print (($$v[0]>7 || $$v[0]==7 && $$v[1]>=3) ? "ok" : $$v), "\n";' 2>/dev/null)
9
 
ifneq ($(DEB_DH_VERSION),ok)
10
 
    $(error Debhelper is too old ($(DEB_DH_VERSION)) on your system. Upgrade to 7.3.0 or later)
11
 
endif
12
 
 
13
 
# Configure with KDE cmake flags by default.
14
 
DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE ?= override_dh_auto_configure
15
 
$(DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE):
16
 
        dh_auto_configure -- $(DEB_CMAKE_KDE4_FLAGS) $(DEB_CMAKE_CUSTOM_FLAGS)
17
 
 
18
 
%:
19
 
        dh $@