9026e3c951420b255ae765a0628e17fd98a55c18
[gentoo.git] /
1 diff -Naurp mb-desktop-image-browser-0.2.orig/configure.ac mb-desktop-image-browser-0.2/configure.ac
2 --- mb-desktop-image-browser-0.2.orig/configure.ac      2010-01-06 01:05:40.000000000 +0000
3 +++ mb-desktop-image-browser-0.2/configure.ac   2010-01-06 01:07:24.000000000 +0000
4 @@ -34,6 +34,20 @@ AC_ARG_ENABLE(debug,
5        MB_CFLAGS="$MB_CFLAGS -DDEBUG"
6    fi])
7  
8 +
9 +dnl ------ Substitute in found libs, clags to Makefiles etc -----------------
10 +
11 +if test "x$prefix" = xNONE; then
12 +   prefix="${ac_default_prefix}"
13 +fi
14 +if test "x$exec_prefix" = xNONE; then
15 +   exec_prefix='${prefix}'
16 +fi
17 +
18 +MBDESKTOP_PLUGIN_DIR=$libdir/matchbox/desktop
19 +eval MBDESKTOP_PLUGIN_DIR=`eval echo "$MBDESKTOP_PLUGIN_DIR"`
20 +
21 +AC_SUBST(MBDESKTOP_PLUGIN_DIR)
22  AC_SUBST(MB_LIBS)
23  AC_SUBST(MB_CFLAGS)
24  
25 diff -Naurp mb-desktop-image-browser-0.2.orig/Makefile.am mb-desktop-image-browser-0.2/Makefile.am
26 --- mb-desktop-image-browser-0.2.orig/Makefile.am       2010-01-06 01:05:40.000000000 +0000
27 +++ mb-desktop-image-browser-0.2/Makefile.am    2010-01-06 01:07:01.000000000 +0000
28 @@ -4,7 +4,7 @@ LDADD = $(MB_LIBS) 
29  AM_CFLAGS = $(MB_CFLAGS)  -g -DDATADIR=\"$(datadir)\"
30  
31  lib_LTLIBRARIES = imgbrowser.la
32 -libdir = $(datadir)/matchbox/desktop/modules
33 +libdir = $(MBDESKTOP_PLUGIN_DIR)
34  
35  imgbrowser_la_SOURCES = imgbrowser.c
36  imgbrowser_la_LIBADD  = $(LDADD)