summaryrefslogtreecommitdiffstats
path: root/admin/debianrules
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 02:04:57 +0000
commit56d206e89d92bafb0739b4a2adfe0e6c2eadd034 (patch)
tree80f7b56fd06ad144065be7956ce076ca1920c150 /admin/debianrules
downloadkuickshow-56d206e89d92bafb0739b4a2adfe0e6c2eadd034.tar.gz
kuickshow-56d206e89d92bafb0739b4a2adfe0e6c2eadd034.zip
Added KDE3 version of kuickshow
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kuickshow@1095340 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'admin/debianrules')
-rwxr-xr-xadmin/debianrules43
1 files changed, 43 insertions, 0 deletions
diff --git a/admin/debianrules b/admin/debianrules
new file mode 100755
index 0000000..25897f2
--- /dev/null
+++ b/admin/debianrules
@@ -0,0 +1,43 @@
+#!/usr/bin/perl -w
+
+use Shell qw(mv cp mkdir rm) ;
+use File::Find;
+use Cwd;
+
+$origPwd = `pwd`;
+chomp $origPwd;
+
+$kde_prefix = "/usr";
+$sysconfdir = "/etc";
+$kde_includedir = "$kde_prefix/include/kde";
+$infodir = "$kde_prefix/share/info";
+$mandir = "$kde_prefix/share/man";
+$qtdir = "/usr/share/qt3";
+
+$kde_cgidir = "$kde_prefix/lib/cgi-bin";
+$kde_confdir = "$sysconfdir/kde3";
+$kde_htmldir = "$kde_prefix/share/doc/kde/HTML";
+
+if (defined $ENV{DEB_BUILD_OPTIONS} &&
+ $ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) {
+ $enable_debug="--enable-debug=full";
+} else {
+ $enable_debug="--disable-debug";
+}
+
+if (@ARGV && $ARGV[0] eq 'echodirs') {
+ print STDOUT "export kde_prefix=$kde_prefix\n";
+ print STDOUT "export sysconfdir=$sysconfdir\n";
+ print STDOUT "export kde_includedir=$kde_includedir\n";
+ print STDOUT "export infodir=$infodir\n";
+ print STDOUT "export mandir=$mandir\n";
+ print STDOUT "export qtdir=$qtdir\n";
+
+ print STDOUT "export kde_cgidir=$kde_cgidir\n";
+ print STDOUT "export kde_confdir=$kde_confdir\n";
+ print STDOUT "export kde_htmldir=$kde_htmldir\n";
+
+ print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --sysconfdir=\$(sysconfdir) --includedir=\$(kde_includedir) --infodir=\$(infodir) --mandir=\$(mandir) --with-qt-dir=\$(qtdir)\n";
+
+ exit
+}