updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / xvattr / xvattr-1.3-nogtk.patch
blob579233e38c41edfed61e56bfe03d267684b60afb
1 diff -ur xvattr-1.3.orig/configure.in xvattr-1.3/configure.in
2 --- xvattr-1.3.orig/configure.in 2002-06-13 22:40:33.000000000 +0300
3 +++ xvattr-1.3/configure.in 2007-09-04 14:02:56.000000000 +0300
4 @@ -17,7 +17,14 @@
5 AC_PATH_XTRA
7 dnl check for gtk
8 -AM_PATH_GTK
9 +AC_ARG_WITH(gtk,
10 + [--without-gtk Disable GTK support (default: enabled)])
11 +if test "x$with_gtk" != "xno"; then
12 + PKG_CHECK_MODULES(GTK, gtk+-2.0)
13 +else
14 + no_gtk="yes"
15 +fi
16 +AM_CONDITIONAL(WITH_GTK, [test "x$no_gtk" != "xyes"])
18 dnl Checks for libraries.
19 AC_ARG_WITH(xv-path,[ --with-xv-path=path Where libXv is installed],
20 diff -ur xvattr-1.3.orig/Makefile.am xvattr-1.3/Makefile.am
21 --- xvattr-1.3.orig/Makefile.am 2002-06-13 22:22:00.000000000 +0300
22 +++ xvattr-1.3/Makefile.am 2007-09-04 13:58:14.000000000 +0300
23 @@ -1,12 +1,19 @@
26 -bin_PROGRAMS = xvattr gxvattr
27 +if WITH_GTK
28 +gtk_programs = gxvattr
29 +endif
31 +bin_PROGRAMS = xvattr $(gtk_programs)
33 xvattr_SOURCES = xvattr.c
35 xvattr_LDADD = $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext @LIBOBJS@
37 gxvattr_SOURCES = gxvattr.c
38 -CFLAGS = @GTK_CFLAGS@
40 +gxvattr_CFLAGS = @GTK_CFLAGS@
42 gxvattr_LDADD = @GTK_LIBS@ $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext
43 noinst_HEADERS = getopt.h