You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
6.4 KiB
144 lines
6.4 KiB
13 years ago
|
#!/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
|
||
5 years ago
|
include debian/cdbs/debian-tde.mk
|
||
13 years ago
|
|
||
|
DEB_KDE_APIDOX := yes
|
||
|
|
||
|
CXXFLAGS := -DSMB_CTX_FLAG_USE_KERBEROS -DSMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS -g -Wall $(DEB_OPT_FLAG)
|
||
|
|
||
11 years ago
|
DEB_CMAKE_EXTRA_FLAGS := \
|
||
4 years ago
|
-DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \
|
||
11 years ago
|
-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" \
|
||
11 years ago
|
-DWITH_ELFICON="ON" \
|
||
11 years ago
|
-DWITH_SUDO_TDESU_BACKEND="OFF" \
|
||
|
-DWITH_SUDO_KONSOLE_SUPER_USER_COMMAND="ON" \
|
||
|
-DWITH_LDAP="ON" \
|
||
|
-DWITH_SAMBA="ON" \
|
||
9 years ago
|
-DWITH_LIBUSB="ON" \
|
||
11 years ago
|
-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" \
|
||
11 years ago
|
-DWITH_LIBART="ON" \
|
||
11 years ago
|
-DWITH_LIBCONFIG="ON" \
|
||
8 years ago
|
-DWITH_PCRE="ON" \
|
||
|
-DWITH_KRB5="ON"
|
||
13 years ago
|
|
||
13 years ago
|
DEB_FIXPERMS_EXCLUDE := \
|
||
11 years ago
|
opt/trinity/bin/kcheckpass \
|
||
|
opt/trinity/bin/tdekbdledsync \
|
||
13 years ago
|
opt/trinity/bin/tdesud \
|
||
13 years ago
|
opt/trinity/bin/tdmtsak
|
||
13 years ago
|
|
||
13 years ago
|
DEB_DH_STRIP_ARGS := --dbg-package=tdebase-trinity-dbg
|
||
13 years ago
|
|
||
12 years ago
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
||
|
&& echo xz || echo bzip2)
|
||
|
|
||
11 years ago
|
DOC_HTML_PRUNE := ksplashml kcontrol khelpcenter tdesu knetattach tdeioslave kxkb tdedebugdialog kdcop
|
||
13 years ago
|
|
||
13 years ago
|
PACKAGES_WITH_LIBS := kate-trinity kcontrol-trinity tdebase-trinity-bin kicker-trinity konqueror-trinity ksplash-trinity \
|
||
13 years ago
|
ksysguard-trinity twin-trinity libkonq4-trinity
|
||
13 years ago
|
|
||
|
#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
|
||
12 years ago
|
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
|
||
13 years ago
|
|
||
|
clean::
|
||
12 years ago
|
rm -f debian/kcontrol-trinity.install.kfreebsd* debian/tdebase-tdeio-plugins-trinity.install.kfreebs*
|
||
13 years ago
|
rm -f kcontrol/pics/cr*-app-energy_star.png kcontrol/energy/pics/energybig.png kcontrol/energy/pics/lo-energy.png
|
||
|
|
||
13 years ago
|
binary-install/tdebase-data-trinity::
|
||
13 years ago
|
# 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...
|
||
13 years ago
|
install -p -D -m644 kcontrol/view1394/oui.db debian/tdebase-data-trinity/opt/trinity/share/apps/kcmview1394/oui.db
|
||
13 years ago
|
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-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
|
||
13 years ago
|
|
||
13 years ago
|
install/tdm-trinity::
|
||
12 years ago
|
#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
|
||
13 years ago
|
|
||
13 years ago
|
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
|
||
9 years ago
|
|
||
|
install -p -D -m644 debian/tdm-trinity.needrestart debian/tdm-trinity/etc/needrestart/conf.d/tdm-trinity.conf
|
||
13 years ago
|
|
||
|
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
|
||
|
|
||
13 years ago
|
binary-install/tdebase-trinity-bin::
|
||
|
install -p -D -m644 debian/kcheckpass-trinity.pam debian/tdebase-trinity-bin/etc/pam.d/kcheckpass-trinity
|
||
12 years ago
|
install -p -D -m644 debian/tdescreensaver-trinity.pam debian/tdebase-trinity-bin/etc/pam.d/tdescreensaver-trinity
|
||
13 years ago
|
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/
|
||
13 years ago
|
|
||
|
binary-install/ksmserver-trinity::
|
||
13 years ago
|
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop
|