Update debian files.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-26 15:00:04 +02:00
parent f0691d7c9f
commit 97d60004f6
5 changed files with 64 additions and 48 deletions

4
dist/debian/menu vendored
View File

@ -1,2 +1,2 @@
?package(valentina):needs="X11|text|vc|wm" section="Applications/Graphics"\
title="valentina" command="/usr/bin/valentina"
?package(valentina): needs="X11|text|vc" section="Applications/Graphics" title="Valentina" command="valentina"
?package(valentina): needs="X11|text|vc" section="Applications/Data Management" title="Tape" command="tape"

View File

@ -1,3 +1,4 @@
/usr/share/valentina
/usr/share/valentina/translations
/usr/share/valentina/tables/standard
/usr/share/valentina/tables/templates

View File

@ -1,5 +1,6 @@
usr/bin/*
usr/lib/*
usr/share/valentina/*
usr/share/valentina/translations/*
usr/share/valentina/tables/standard/*
usr/share/valentina/tables/templates/*

View File

@ -171,7 +171,29 @@ include(../tables.pri)
copyToDestdir($$INSTALL_STANDARD_TEMPLATES, $$shell_path($${OUT_PWD}/$${DESTDIR}/tables/templates))
include(../translations.pri)
macx{
# Set "make install" command for Unix-like systems.
unix{
# Prefix for binary file.
isEmpty(PREFIX){
PREFIX = $$DEFAULT_PREFIX
}
unix:!macx{
DATADIR =$$PREFIX/share
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
# Path to bin file after installation
target.path = $$PREFIX/bin
rcc_diagrams.path = /usr/share/valentina/
rcc_diagrams.files = $${OUT_PWD}/$${DESTDIR}/diagrams.rcc
rcc_diagrams.CONFIG = no_check_exist
INSTALLS += \
target \
rcc_diagrams
}
macx{
# Some macx stuff
QMAKE_MAC_SDK = macosx
@ -217,6 +239,7 @@ macx{
standard \
libraries \
format
}
}
# Compilation will fail without this files after we added them to this section.

View File

@ -235,9 +235,6 @@ unix{
templates.path = /usr/share/$${TARGET}/tables/templates/
templates.files = $$INSTALL_STANDARD_TEMPLATES
diagrams.path = /usr/share/$${TARGET}/
diagrams.files = $${OUT_PWD}/../tape/$${DESTDIR}/diagrams.rcc
INSTALLS += \
target \
tape \
@ -245,8 +242,7 @@ unix{
pixmaps \
translations \
standard \
templates \
diagrams
templates
}
macx{
# Some macx stuff
@ -289,10 +285,6 @@ unix{
templates.path = $$RESOURCES_DIR/tables/templates/
templates.files = $$INSTALL_STANDARD_TEMPLATES
# Copy to bundle standard measurements files
diagrams.path = $$RESOURCES_DIR/
diagrams.files = $${OUT_PWD}/../tape/$${DESTDIR}/diagrams.rcc
format.path = $$RESOURCES_DIR/
format.files = $$PWD/../../../dist/macx/measurements.icns
@ -302,7 +294,6 @@ unix{
libraries \
tape \
xpdf \
diagrams \
format
}
}