summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/dependencies/kde3-macros/kde3.macros
blob: 688ee04f6708b93059b5e22ff71ca46b08854e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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}