Commit 2711aa13 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

clean up HTML, qm files, use CFG_DB2HTML, CFG_XSL_STYLESHEET, CFG_LRELEASE...

clean up HTML, qm files, use CFG_DB2HTML, CFG_XSL_STYLESHEET, CFG_LRELEASE which are set by configure, install icons
parent 3f81fe80
......@@ -8,6 +8,7 @@
}
HTML_FILES = kid3_${QMAKE_TARGET}.html
QMAKE_CLEAN += $$HTML_FILES
isEmpty(CFG_DOCDIR) {
unix:documentation.path = /.
......
......@@ -23,21 +23,31 @@ contains($$list($$[QT_VERSION]), 4.*) {
db2html.output = kid3_${QMAKE_TARGET}.html
unix {
exists(/usr/bin/jw) {
isEmpty(CFG_DB2HTML) {
exists(/usr/bin/jw) {
CFG_DB2HTML = jw
} else:exists(/usr/bin/xsltproc) {
CFG_DB2HTML = xsltproc
} else:exists(/usr/bin/xalan) {
CFG_DB2HTML = xalan
}
}
contains(CFG_DB2HTML, jw) {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} >${QMAKE_FILE_BASE}.sgml; jw -f docbook -b html -u ${QMAKE_FILE_BASE}.sgml; mv ${QMAKE_FILE_BASE}.html ${QMAKE_FILE_OUT}
} else {
DOCBOOK_XSL = docbook.xsl
exists(/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl) {
DOCBOOK_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
} else:exists(/usr/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl) {
DOCBOOK_XSL = /usr/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl
isEmpty(CFG_XSL_STYLESHEET) {
exists(/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl) {
CFG_XSL_STYLESHEET = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
} else:exists(/usr/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl) {
CFG_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl
}
}
exists(/usr/bin/xsltproc) {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | xsltproc $$DOCBOOK_XSL - >${QMAKE_FILE_OUT}
} else:exists(/usr/bin/xalan) {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | xalan -xsl $$DOCBOOK_XSL -out ${QMAKE_FILE_OUT}
contains(CFG_DB2HTML, xsltproc) {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | xsltproc $$CFG_XSL_STYLESHEET - >${QMAKE_FILE_OUT}
} else:contains(CFG_DB2HTML, xalan) {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | xalan -xsl $$CFG_XSL_STYLESHEET -out ${QMAKE_FILE_OUT}
} else {
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | xsltproc $$DOCBOOK_XSL - >${QMAKE_FILE_OUT}
db2html.commands = perl -n ../fixdocbook.pl <${QMAKE_FILE_NAME} | $$CFG_DB2HTML $$CFG_XSL_STYLESHEET - >${QMAKE_FILE_OUT}
}
}
}
......
......@@ -8,6 +8,7 @@
}
HTML_FILES = kid3_${QMAKE_TARGET}.html
QMAKE_CLEAN += $$HTML_FILES
isEmpty(CFG_DOCDIR) {
unix:documentation.path = /.
......
......@@ -24,7 +24,7 @@ SOURCES = filelist.cpp filelistitem.cpp framelist.cpp genres.cpp id3form.cpp kid
HEADERS = configdialog.h exportdialog.h filelist.h filelistitem.h formatbox.h formatconfig.h framelist.h freedbclient.h freedbconfig.h freedbdialog.h generalconfig.h genres.h id3form.h importconfig.h importdialog.h importparser.h importselector.h kid3.h miscconfig.h mp3file.h rendirdialog.h standardtags.h dirlist.h taggedfile.h mp3framelist.h musicbrainzclient.h musicbrainzconfig.h musicbrainzdialog.h numbertracksdialog.h oggfile.h oggframelist.h vcedit.h flacfile.h flacframelist.h commandstable.h taglibfile.h taglibframelist.h urllinkframe.h unsynchronizedlyricsframe.h importsourceconfig.h importsourcedialog.h importsourceclient.h discogsdialog.h discogsclient.h discogsconfig.h musicbrainzreleasedialog.h musicbrainzreleaseclient.h qtcompatmac.h dirinfo.h externalprocess.h stringlistedit.h tracktypedialog.h tracktypeclient.h
unix:program.path = $$CFG_BINDIR $$CFG_DATAROOTDIR/applications
unix:program.path = $$CFG_BINDIR $$CFG_DATAROOTDIR/applications $$CFG_DATAROOTDIR/icons/hicolor/16x16/apps $$CFG_DATAROOTDIR/icons/hicolor/32x32/apps $$CFG_DATAROOTDIR/icons/hicolor/48x48/apps $$CFG_DATAROOTDIR/icons/hicolor/scalable/apps
win32 {
isEmpty(CFG_BINDIR) {
program.path = \.
......@@ -34,14 +34,29 @@ win32 {
}
contains($$list($$[QT_VERSION]), 4.*) {
contains($$list($$[QT_VERSION]), 4.2.*) {
unix:program.extra = $(INSTALL_PROGRAM) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; $(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop
unix:program.extra = $(INSTALL_PROGRAM) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; \
$(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop; \
$(INSTALL_FILE) hi16-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/16x16/apps/kid3-qt.png; \
$(INSTALL_FILE) hi32-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/32x32/apps/kid3-qt.png; \
$(INSTALL_FILE) hi48-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/48x48/apps/kid3-qt.png; \
$(INSTALL_FILE) hisc-app-kid3-qt.svgz $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/scalable/apps/kid3-qt.svgz
win32:program.extra = $(INSTALL_PROGRAM) $(DESTDIR_TARGET) $(INSTALL_ROOT)$$CFG_BINDIR
} else {
unix:program.extra = $(COPY_FILE) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; $(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop
unix:program.extra = $(COPY_FILE) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; \
$(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop; \
$(INSTALL_FILE) hi16-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/16x16/apps/kid3-qt.png; \
$(INSTALL_FILE) hi32-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/32x32/apps/kid3-qt.png; \
$(INSTALL_FILE) hi48-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/48x48/apps/kid3-qt.png; \
$(INSTALL_FILE) hisc-app-kid3-qt.svgz $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/scalable/apps/kid3-qt.svgz
win32:program.extra = $(COPY_FILE) $(DESTDIR_TARGET) $(INSTALL_ROOT)$$CFG_BINDIR
}
} else {
program.extra = $(INSTALL_FILE) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; $(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop
program.extra = $(INSTALL_FILE) $(TARGET) $(INSTALL_ROOT)$$CFG_BINDIR/kid3-qt; \
$(INSTALL_FILE) kid3-qt.desktop $(INSTALL_ROOT)$$CFG_DATAROOTDIR/applications/kid3-qt.desktop; \
$(INSTALL_FILE) hi16-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/16x16/apps/kid3-qt.png; \
$(INSTALL_FILE) hi32-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/32x32/apps/kid3-qt.png; \
$(INSTALL_FILE) hi48-app-kid3-qt.png $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/48x48/apps/kid3-qt.png; \
$(INSTALL_FILE) hisc-app-kid3-qt.svgz $(INSTALL_ROOT)$$CFG_DATAROOTDIR/icons/hicolor/scalable/apps/kid3-qt.svgz
MOC_DIR = .
}
......
......@@ -16,15 +16,19 @@ win32 {
}
QM_FILES = kid3_de.qm kid3_es.qm kid3_fr.qm kid3_ru.qm
QMAKE_CLEAN += $$QM_FILES
isEmpty(CFG_LRELEASE) {
CFG_LRELEASE = lrelease
}
contains($$list($$[QT_VERSION]), 4.*) {
ts2qm.input = TS_FILES
ts2qm.commands = lrelease ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
ts2qm.commands = $$CFG_LRELEASE ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
QMAKE_EXTRA_COMPILERS += ts2qm
TS_FILES += kid3_de.ts kid3_es.ts kid3_fr.ts kid3_ru.ts
} else {
ts2qm.input = SOURCES
ts2qm.commands = lrelease ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
ts2qm.commands = $$CFG_LRELEASE ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
QMAKE_EXTRA_UNIX_COMPILERS += ts2qm
SOURCES += kid3_de.ts kid3_es.ts kid3_fr.ts kid3_ru.ts
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment