summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/dependencies/kde3-macros/kde3.macros
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-10-14 23:31:33 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-10-14 23:31:33 -0500
commitd2587a8509c0e15c38d99fb4bcfa2b2fc3209e9b (patch)
tree86eec4e4a0f6ba88cc7e6fab9ec926bc93d72396 /mandriva/2010.2/dependencies/kde3-macros/kde3.macros
parentf63b035a91cf5baff629f5e5dee4aeb7efe8d57b (diff)
parentec2515f058c60d2478a549f58376db628ba556b9 (diff)
downloadtde-packaging-d2587a8509c0e15c38d99fb4bcfa2b2fc3209e9b.tar.gz
tde-packaging-d2587a8509c0e15c38d99fb4bcfa2b2fc3209e9b.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'mandriva/2010.2/dependencies/kde3-macros/kde3.macros')
-rw-r--r--mandriva/2010.2/dependencies/kde3-macros/kde3.macros57
1 files changed, 57 insertions, 0 deletions
diff --git a/mandriva/2010.2/dependencies/kde3-macros/kde3.macros b/mandriva/2010.2/dependencies/kde3-macros/kde3.macros
new file mode 100644
index 000000000..688ee04f6
--- /dev/null
+++ b/mandriva/2010.2/dependencies/kde3-macros/kde3.macros
@@ -0,0 +1,57 @@
+%use_enable_final %{!?_disable_final:--enable-final}
+%use_unstable %{?_unstable:--enable-debug=full}
+
+%_kde3_prefix /opt/kde3
+%_kde3_libdir %_kde3_prefix/%_lib
+%_kde3_iconsdir %_kde3_prefix/share/icons
+%_kde3_sysconfdir %_sysconfdir
+%_kde3_datadir %_kde3_prefix/share
+%_kde3_configdir %_kde3_datadir/config
+%_kde3_appsdir %_kde3_datadir/apps
+%_kde3_docdir %_kde3_prefix/share/doc
+%_kde3_bindir %_kde3_prefix/bin
+%_kde3_sbindir %_kde3_prefix/sbin
+%_kde3_includedir %_kde3_prefix/include
+%_kde3_mandir %_kde3_prefix/share/man
+%_kde3_autostart %_kde3_prefix/share/autostart
+
+%configure_kde3 \\\
+ %before_configure ; \
+ %{?_enable_libtoolize:%{?__libtoolize_configure:%{__libtoolize_configure};}} \
+ [ -f $CONFIGURE_TOP/configure.in -o -f $CONFIGURE_TOP/configure.ac ] && \
+ CONFIGURE_XPATH="--x-includes=%{_prefix}/include --x-libraries=%{_prefix}/%{_lib}" \
+ PKG_CONFIG_PATH="%{_kde3_libdir}/pkgconfig:%{_libdir}/pkgconfig:${PKG_CONFIG_PATH}" \
+ $CONFIGURE_TOP/configure --build=%{_target_platform} \\\
+ --prefix=%{_kde3_prefix} \\\
+ --bindir=%{_kde3_bindir} \\\
+ --sbindir=%{_kde3_sbindir} \\\
+ --sysconfdir=%{_sysconfdir} \\\
+ --datadir=%{_kde3_datadir} \\\
+ --includedir=%{_kde3_includedir} \\\
+ --libdir=%{_kde3_libdir} %use_unstable %use_enable_final \\\
+ --infodir=%{_infodir} \\\
+ --mandir=%{_mandir} \\\
+ --disable-static \\\
+ --enable-mitshm \\\
+ --with-ipv6-lookup=auto \\\
+ --with-pic \\\
+ --with-xinerama \\\
+ --with-alsa \\\
+ --enable-libfam \\\
+ --enable-pcre \\\
+ --with-qt-dir=%{qt3dir} --with-qt-includes=%{qt3include} --with-qt-libraries=%{qt3lib}\\\
+ --with-extra-libs=%{_kde3_libdir} --with-extra-includes=%{_kde3_includedir}/tqt \\\
+ %if "%{_lib}" != "lib" \
+ --enable-libsuffix="%(A=%{_lib}; echo ${A/lib/})" \\\
+ %endif \
+ --disable-rpath \\\
+ --enable-closure \\\
+ $CONFIGURE_XPATH
+# Rebuild icon cache
+%update_kde3_icon_cache() if [ -x %{_update_icon_cache_bin} ]; then \
+%{_update_icon_cache_bin} --force --quiet %{_kde3_iconsdir}/%{1} || true; fi \
+%{nil}
+
+%clean_kde3_icon_cache() if [ -x %{_update_icon_cache_bin} -a -r %{_kde3_iconsdir}/%{1}/index.theme ]; then \
+%{_update_icon_cache_bin} --force --quiet %{_kde3_iconsdir}/%{1} || true ; fi \
+%{nil}