summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/tdebase/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/tdebase/debian/rules')
-rwxr-xr-xubuntu/_base/tdebase/debian/rules148
1 files changed, 148 insertions, 0 deletions
diff --git a/ubuntu/_base/tdebase/debian/rules b/ubuntu/_base/tdebase/debian/rules
new file mode 100755
index 000000000..216a616be
--- /dev/null
+++ b/ubuntu/_base/tdebase/debian/rules
@@ -0,0 +1,148 @@
+#!/usr/bin/make -f
+
+# Set LD_LIBRARY_PATH to the installed library directory to allow dh_shlibdeps to function
+# Also include the main Trinity path
+ifeq ("$(LD_LIBRARY_PATH)", "")
+LD_LIBRARY_PATH=debian/tmp/opt/trinity/lib
+else
+LD_LIBRARY_PATH += :debian/tmp/opt/trinity/lib
+endif
+export LD_LIBRARY_PATH
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/rules/utils.mk
+include debian/cdbs/debian-qt-kde.mk
+
+DEB_KDE_APIDOX := yes
+
+CXXFLAGS := -DSMB_CTX_FLAG_USE_KERBEROS -DSMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS -g -Wall $(DEB_OPT_FLAG)
+
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DLIB_SUFFIX="" \
+ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
+ -DCMAKE_LIBRARY_PATH="/opt/trinity/lib" \
+ -DCMAKE_INCLUDE_PATH="/opt/trinity/include/" \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL="ON" \
+ -DWITH_GCC_VISIBILITY="ON" \
+ -DKCHECKPASS_PAM_SERVICE="kcheckpass-trinity" \
+ -DTDM_PAM_SERVICE="tdm-trinity" \
+ -DTDESCREENSAVER_PAM_SERVICE="tdescreensaver-trinity" \
+ -DWITH_USBIDS="/usr/share/misc/usb.ids" \
+ -DWITH_ARTS="ON" \
+ -DWITH_PAM="ON" \
+ -DWITH_SASL="ON" \
+ -DWITH_ELFICON="ON" \
+ -DWITH_SUDO_TDESU_BACKEND="OFF" \
+ -DWITH_SUDO_KONSOLE_SUPER_USER_COMMAND="ON" \
+ -DWITH_LDAP="ON" \
+ -DWITH_SAMBA="ON" \
+ -DWITH_LIBUSB="ON" \
+ -DWITH_LIBRAW1394="ON" \
+ -DWITH_OPENEXR="ON" \
+ -DWITH_XCOMPOSITE="ON" \
+ -DWITH_XCURSOR="ON" \
+ -DWITH_XFIXES="ON" \
+ -DWITH_XRANDR="ON" \
+ -DWITH_XINERAMA="ON" \
+ -DWITH_SENSORS="ON" \
+ -DWITH_HAL="OFF" \
+ -DWITH_TDEHWLIB="ON" \
+ -DWITH_XDMCP="ON" \
+ -DWITH_XRENDER="ON" \
+ -DWITH_XTEST="ON" \
+ -DWITH_OPENGL="ON" \
+ -DWITH_XSCREENSAVER="ON" \
+ -DWITH_UPOWER="ON" \
+ -DWITH_LIBART="ON" \
+ -DWITH_LIBCONFIG="ON" \
+ -DWITH_PCRE="ON"
+
+# Honour "parallel=N" option of DEB_BUILD_OPTIONS. Comment out to
+# never build in parallel, regardless of DEB_BUILD_OPTIONS.
+DEB_BUILD_PARALLEL = true
+
+DEB_FIXPERMS_EXCLUDE := \
+ opt/trinity/bin/kcheckpass \
+ opt/trinity/bin/tdekbdledsync \
+ opt/trinity/bin/tdesud \
+ opt/trinity/bin/tdmtsak
+
+DEB_DH_STRIP_ARGS := --dbg-package=tdebase-trinity-dbg
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+DOC_HTML_PRUNE := ksplashml kcontrol khelpcenter tdesu knetattach tdeioslave kxkb tdedebugdialog kdcop
+
+PACKAGES_WITH_LIBS := kate-trinity kcontrol-trinity tdebase-trinity-bin kicker-trinity konqueror-trinity ksplash-trinity \
+ ksysguard-trinity twin-trinity libkonq4-trinity
+
+#shlibs_ver = 4:3.5.0-1
+#$(foreach p,$(PACKAGES_WITH_LIBS),$(eval DEB_DH_MAKESHLIBS_ARGS_$(p) := -V'$(p) (>= $(shlibs_ver))'))
+
+makebuilddir::
+ touch kcontrol/energy/pics/energybig.png
+ touch kcontrol/energy/pics/lo-energy.png
+ uudecode -o kcontrol/pics/cr128-app-energy_star.png debian/img/cr128-app-energy_star.png.uu
+ uudecode -o kcontrol/pics/cr16-app-energy_star.png debian/img/cr16-app-energy_star.png.uu
+ uudecode -o kcontrol/pics/cr32-app-energy_star.png debian/img/cr32-app-energy_star.png.uu
+ uudecode -o kcontrol/pics/cr48-app-energy_star.png debian/img/cr48-app-energy_star.png.uu
+ uudecode -o kcontrol/pics/cr64-app-energy_star.png debian/img/cr64-app-energy_star.png.uu
+
+common-install-prehook-arch::
+ grep -v -e joystick -e view1394 debian/kcontrol-trinity.install > debian/kcontrol-trinity.install.kfreebsd-i386
+ grep -v -e joystick -e view1394 debian/kcontrol-trinity.install > debian/kcontrol-trinity.install.kfreebsd-amd64
+ grep -v -e media_propsdlgplugin debian/tdebase-tdeio-plugins-trinity.install > debian/tdebase-tdeio-plugins-trinity.install.kfreebsd-i386
+ grep -v -e media_propsdlgplugin debian/tdebase-tdeio-plugins-trinity.install > debian/tdebase-tdeio-plugins-trinity.install.kfreebsd-amd64
+
+clean::
+ rm -f debian/kcontrol-trinity.install.kfreebsd* debian/tdebase-tdeio-plugins-trinity.install.kfreebs*
+ rm -f kcontrol/pics/cr*-app-energy_star.png kcontrol/energy/pics/energybig.png kcontrol/energy/pics/lo-energy.png
+
+binary-install/tdebase-data-trinity::
+ # hack the oui.db install, as under kfreebsd it does not get installed and then breaks at dh_install time
+ # it's in fact a linux specific file...
+ install -p -D -m644 kcontrol/view1394/oui.db debian/tdebase-data-trinity/opt/trinity/share/apps/kcmview1394/oui.db
+ install -p -D -m644 debian/tmp/etc/xdg/menus/applications-merged/tde-essential.menu debian/tdebase-data-trinity/opt/trinity/etc/xdg/menus/applications-merged/tde-essential.menu
+ install -p -D -m644 debian/tmp/etc/xdg/menus/tde-information.menu debian/tdebase-data-trinity/opt/trinity/etc/xdg/menus/tde-information.menu
+ install -p -D -m644 debian/tmp/etc/xdg/menus/tde-screensavers.menu debian/tdebase-data-trinity/opt/trinity/etc/xdg/menus/tde-screensavers.menu
+ install -p -D -m644 debian/tmp/etc/xdg/menus/tde-settings.menu debian/tdebase-data-trinity/opt/trinity/etc/xdg/menus/tde-settings.menu
+
+install/tdm-trinity::
+ #sed -i 's/#UseTheme=true/UseTheme=true/g' debian/tmp/etc/trinity/tdm/tdmrc
+ #sed -i 's/Theme=@@@ToBeReplacedByDesktopBase@@@/Theme=\/opt\/trinity\/share\/apps\/tdm\/themes\/kubuntu-trinity/g' debian/tmp/etc/trinity/tdm/tdmrc
+
+binary-install/tdm-trinity::
+ mkdir -p debian/tdm-trinity/etc/init
+ install -p -D -m644 debian/tdm-trinity.conf debian/tdm-trinity/etc/init/tdm-trinity.conf
+ install -p -D -m644 debian/tdm-trinity.pam debian/tdm-trinity/etc/pam.d/tdm-trinity
+ install -p -D -m644 debian/tdm-trinity-np.pam debian/tdm-trinity/etc/pam.d/tdm-trinity-np
+
+ install -p -D -m644 debian/tdm-trinity.needrestart debian/tdm-trinity/etc/needrestart/conf.d/tdm-trinity.conf
+
+binary-install/kcontrol-trinity::
+ mkdir -p debian/kcontrol/etc/udev/rules.d
+ chmod +x debian/usermap.pl
+ debian/usermap.pl kcontrol/input/logitechmouse.usermap > debian/kcontrol/etc/udev/logitechmouse.rules
+
+install/klipper-trinity::
+ sed -i '/X-Ubuntu-Gettext-Domain=/d' debian/tmp/etc/trinity/klipperrc
+
+binary-install/tdebase-trinity-bin::
+ install -p -D -m644 debian/kcheckpass-trinity.pam debian/tdebase-trinity-bin/etc/pam.d/kcheckpass-trinity
+ install -p -D -m644 debian/tdescreensaver-trinity.pam debian/tdebase-trinity-bin/etc/pam.d/tdescreensaver-trinity
+ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/
+ install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
+ install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
+ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
+
+binary-install/ksmserver-trinity::
+ install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop