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.
49 lines
2.1 KiB
49 lines
2.1 KiB
14 years ago
|
#!/usr/bin/make -f
|
||
|
|
||
9 years ago
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||
8 years ago
|
include /usr/share/cdbs/1/class/cmake.mk
|
||
9 years ago
|
include debian/cdbs/debian-qt-kde.mk
|
||
|
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||
|
|
||
|
DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include
|
||
14 years ago
|
DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
|
||
|
DEB_CONFIGURE_PREFIX := /opt/trinity
|
||
|
DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
|
||
|
|
||
9 years ago
|
cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug) \
|
||
|
--enable-new-ldflags \
|
||
|
--enable-webcam
|
||
14 years ago
|
|
||
8 years ago
|
DEB_CMAKE_EXTRA_FLAGS := \
|
||
|
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
|
||
|
-DCONFIG_INSTALL_DIR="/etc/trinity" \
|
||
|
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
|
||
|
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
|
||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||
|
-DCMAKE_VERBOSE_MAKEFILE="ON" \
|
||
|
-DCMAKE_SKIP_RPATH="OFF" \
|
||
|
-DWITH_ALL_OPTIONS="ON"
|
||
|
|
||
8 years ago
|
DEB_MAKE_CHECK_TARGET = check
|
||
|
|
||
12 years ago
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
||
|
&& echo xz || echo bzip2)
|
||
|
|
||
9 years ago
|
binary-install/tellico-data-trinity::
|
||
14 years ago
|
# Add svg icons to xdg directories
|
||
9 years ago
|
admin/mkinstalldirs debian/$(cdbs_curpkg)/opt/trinity/share/icons/hicolor/scalable/apps
|
||
|
install -c -p -m 644 -T icons/tellico.svg debian/$(cdbs_curpkg)/opt/trinity/share/icons/hicolor/scalable/apps/tellico.svg
|
||
|
admin/mkinstalldirs debian/$(cdbs_curpkg)/opt/trinity/share/icons/hicolor/scalable/mimetypes
|
||
|
install -c -p -m 644 -T icons/tellico_mime.svg debian/$(cdbs_curpkg)/opt/trinity/share/icons/hicolor/scalable/mimetypes/application-x-tellico.svg
|
||
|
|
||
|
# Install mime info into system directory
|
||
|
mkdir -p debian/$(cdbs_curpkg)/usr/share/mime
|
||
8 years ago
|
[ ! -d debian/tmp/opt/trinity/share/apps/mime ] || \
|
||
|
mv debian/tmp/opt/trinity/share/apps/mime debian/$(cdbs_curpkg)/usr/share/
|
||
|
[ ! -d debian/tmp/opt/trinity/share/mime ] || \
|
||
|
mv debian/tmp/opt/trinity/share/mime debian/$(cdbs_curpkg)/usr/share/
|
||
9 years ago
|
mv debian/$(cdbs_curpkg)/usr/share/mime/packages/tellico.xml debian/$(cdbs_curpkg)/usr/share/mime/packages/tellico-trinity.xml
|
||
|
|
||
|
binary-install/tellico-trinity::
|
||
|
mv debian/$(cdbs_curpkg)/usr/share/man debian/$(cdbs_curpkg)/opt/trinity/share/
|