]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - ccache/ccache.nm
libjpeg: Fix hardcoded path.
[people/ms/ipfire-3.x.git] / ccache / ccache.nm
index 8c25d7c52a51be582259daeed35e95ca99734d7f..a7d1ea1d54aef10fff3742201e569aa15e4e3c38 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = ccache
-version    = 3.1.6
-release    = 1
+version    = 3.1.9
+release    = 2
 
 groups     = Development/Compilers
 url        = http://ccache.samba.org/
@@ -48,14 +48,14 @@ build
        install_cmds
                CCACHE_PLATFORM_TARGET=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
 
-               mkdir -pv %{BUILDROOT}/usr/lib/ccache
+               mkdir -pv %{BUILDROOT}%{libdir}/ccache
                for i in gcc g++ cc c++; do \
-                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${i}; \
-                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
+                       ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${i}; \
+                       ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
                done
 
                mkdir -pv %{BUILDROOT}/etc/profile.d
-               sed -e "s|@LIBDIR@|/usr/lib|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
+               sed -e "s|@LIBDIR@|%{libdir}|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
                        < %{DIR_SOURCE}/ccache.sh > %{BUILDROOT}/etc/profile.d/ccache.sh
 
                mkdir -pv -m770 %{BUILDROOT}/%{CCACHE_CACHE}