Author: Till Maas <opensource till name>
License: same as vym
Define more variables to make it easier to configure the path where
the parts of vym should be installed, e.g. the prefix (PREFIX is imho
more ofen used than INSTALLDIR) and DOCDIR.
diff -up vym-1.10.0/vym.pro.dir-vars vym-1.10.0/vym.pro
--- vym.pro 2007-07-30 11:47:12.000000000 +0200
+++ vym.pro 2007-10-18 21:55:44.000000000 +0200
@@ -121,26 +121,42 @@ TRANSLATIONS += lang/vym_en.ts
TRANSLATIONS += lang/vym_es.ts
TRANSLATIONS += lang/vym_it.ts
-count( INSTALLDIR, 0 ) {
- INSTALLDIR = /usr/local
+isEmpty( PREFIX ) {
+ PREFIX = /usr/local
+ count( INSTALLDIR, 1 ) {
+ PREFIX = $${INSTALLDIR}
+ message( "Please use PREFIX instead of INSTALLDIR" )
+ }
+}
+isEmpty( BINDIR ) {
+ BINDIR = $${PREFIX}/bin
+}
+isEmpty( DATADIR ) {
+ DATADIR = $${PREFIX}/share
+}
+isEmpty( DOCDIR ) {
+ DOCDIR = $${DATADIR}/doc/packages/vym
+}
+isEmpty( DEMODIR ) {
+ DEMODIR = $${DOCDIR}
}
message( "Installation directory" )
-message( $$INSTALLDIR )
+message( $$PREFIX )
-target.path = $${INSTALLDIR}/bin
+target.path = $${BINDIR}
INSTALLS += target
support.files = styles/ scripts/ icons/ flags/ lang/ macros/ exports/
-support.path = $${INSTALLDIR}/share/vym
+support.path = $${DATADIR}/vym
INSTALLS += support
doc.files = tex/vym.pdf
-doc.path = $${INSTALLDIR}/share/doc/packages/vym
+doc.path = $${DOCDIR}
INSTALLS += doc
demo.files = demos/
-demo.path = $${INSTALLDIR}/share/doc/packages/vym
+demo.path = $${DEMODIR}
INSTALLS += demo