Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f9e4afdd98a1392163db13a3e32ed6f5 > files > 1

texworks-0.2.3-3.fc14.src.rpm

--- texworks-0.2.3/TeXworks.pro	2009-10-09 02:03:52.000000000 +0800
+++ texworks-0.2.3.new/TeXworks.pro	2010-04-24 10:36:17.876647486 +0800
@@ -75,6 +75,8 @@
 	# Qt/dbus config on Debian is broken, hence the lines below
 	LIBS		+= -lQtDBus
 	INCLUDEPATH	+= /usr/include/qt4/QtDBus
+	# need for change of DSO linking on Fedora
+	LIBS		+= -lz
 }
 
 openbsd-g++ {
@@ -172,3 +174,20 @@
 					trans/TeXworks_tr.ts \
 					trans/TeXworks_zh_CN.ts
 
+unix:!macx { # installation on Unix-ish platforms
+	isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local
+	isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin
+	isEmpty(DATA_DIR):DATA_DIR = $$INSTALL_PREFIX/share
+	isEmpty(TRANSLATIONS_DIR):TRANSLATIONS_DIR = $$DATA_DIR/texworks/translations
+	isEmpty(DOCS_DIR):DOCS_DIR = $$DATA_DIR/doc/texworks
+	isEmpty(ICON_DIR):ICON_DIR = $$DATA_DIR/pixmaps
+
+	target.path = $$BIN_DIR
+	documentation.files = COPYING README
+	documentation.path = $$DOCS_DIR
+	translation.files = trans/TeXworks_*.qm
+	translation.path = $$TRANSLATIONS_DIR
+	icon.files = res/images/TeXworks.png
+	icon.path = $$ICON_DIR
+	INSTALLS = target documentation translation icon
+}