Updated build-system. Does this help you khz?
[pinentry.git] / admin / debianrules
index 9da861b..11c3807 100755 (executable)
@@ -8,36 +8,24 @@ $origPwd = `pwd`;
 chomp $origPwd;
 
 
-if (@ARGV && $ARGV[0] eq 'cleanup') {
-
-if (-d "debian/tmp/usr/share/config") {
-       if (! -d "debian/tmp/$kde_confdir") {
-         system("mv debian/tmp/usr/share/config debian/tmp/$kde_confdir");
-       }
-}
-system("rm -f `find debian/ -name \".anchors\"`");
-system("chmod 755 debian/*preinst debian/*postinst");
-
-exit;
-}
-
 $QTDIR="/usr/share/qt";
 $kde_prefix="/usr";
 $kde_htmldir="$kde_prefix/share/doc/kde/HTML";
-$kde_icondir="$kde_prefix/share/icons";
-$kde_sounddir="$kde_prefix/share/sounds";
-$kde_datadir="$kde_prefix/share/apps";
-$kde_locale="$kde_prefix/share/locale";
-$kde_confdir="/etc/kde2";
+$kde_icondir="$kde_prefix/share/kde/icons";
+$kde_sounddir="$kde_prefix/share/kde/sounds";
+$kde_datadir="$kde_prefix/share/kde/apps";
+$kde_locale="$kde_prefix/share/kde/locale";
+$kde_confdir="/etc/kde";
 $kde_cgidir="$kde_prefix/lib/cgi-bin";
-$kde_appsdir="$kde_prefix/share/applnk";
-$kde_mimedir="$kde_prefix/share/mimelnk";
-$kde_wallpaperdir="$kde_prefix/share/wallpapers";
+$kde_appsdir="$kde_prefix/share/kde/applnk";
+$kde_mimedir="$kde_prefix/share/kde/mimelnk";
+$kde_wallpaperdir="$kde_prefix/share/kde/wallpapers";
 $kde_bindir="$kde_prefix/bin";
-$kde_servicesdir="$kde_prefix/share/services";
-$kde_servicetypesdir="$kde_prefix/share/servicetypes";
+$kde_servicesdir="$kde_prefix/share/kde/services";
+$kde_servicetypesdir="$kde_prefix/share/kde/servicetypes";
 $kde_includedir="$kde_prefix/include/kde";
-$kde_libdir="$kde_prefix/lib";
+$kde_libdir="$kde_prefix/lib/kde";
+$kde_moduledir="$kde_prefix/lib/kde3";
 $mandir="$kde_prefix/share/man"; 
 $infodir="$kde_prefix/share/info";
 $IDL="$kde_bindir/cuteidl";
@@ -63,6 +51,7 @@ if (@ARGV && $ARGV[0] eq 'echodirs') {
   print STDOUT "export kde_servicetypesdir=$kde_servicetypesdir\n";
   print STDOUT "export kde_includedir=$kde_includedir\n";
   print STDOUT "export kde_libdir=$kde_libdir\n";
+  print STDOUT "export kde_moduledir=$kde_moduledir\n";
   print STDOUT "export mandir=$mandir\n";
   print STDOUT "export infodir=$infodir\n";
   print STDOUT "export QTDIR=$QTDIR\n";
@@ -74,9 +63,9 @@ if (@ARGV && $ARGV[0] eq 'echodirs') {
   print STDOUT "export KDB2HTML=$KDB2HTML\n";
   print STDOUT "export MCOPIDL=$MCOPIDL\n";
   print STDOUT "export ARTSCCONFIG=$ARTSCCONFIG\n";
-  print STDOUT "configkde=--disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";
-  print STDOUT "configkdevelop=--enable-docbase --enable-kdoc2 --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/kdelibs3-doc/html\n";
-  print STDOUT "configkdepim=--with-extra-includes=/usr/include/libpisock --enable-shared --disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";
+  print STDOUT "configkde=--enable-debug --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";
+  print STDOUT "configkdevelop=--enable-debug --enable-docbase --enable-kdoc2 --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/kdelibs3-doc/html\n";
+  print STDOUT "configkdepim=--enable-debug --with-extra-includes=/usr/include/libpisock --enable-shared --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";
   exit
 }