Revert imlib2-config removal. There still may be systems without pkgconfig out there.

SVN revision: 37002
This commit is contained in:
Kim Woelders 2008-10-22 18:48:55 +00:00
parent 386ee4810a
commit e3ec99354e
4 changed files with 65 additions and 0 deletions

View File

@ -6,6 +6,8 @@ MAINTAINERCLEANFILES = aclocal.m4 config.guess config.h.in \
config.sub configure depcomp install-sh \
ltmain.sh Makefile.in missing imlib2_docs.tar.gz
bin_SCRIPTS = imlib2-config
EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN gendoc \
Doxyfile \
README.in README \

View File

@ -527,9 +527,12 @@ data/Makefile
data/fonts/Makefile
data/images/Makefile
doc/Makefile
imlib2-config
README
imlib2.spec
debian/changelog
],[
chmod +x imlib2-config
])
#####################################################################

59
imlib2-config.in Normal file
View File

@ -0,0 +1,59 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: imlib2-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo @VERSION@
;;
--cflags)
if test @prefix@/include != /usr/include ; then
includes="-I@prefix@/include"
fi
echo $includes
;;
--libs)
libdirs=-L@libdir@
echo $libdirs -lImlib2 @my_libs@
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
exit 0

View File

@ -158,6 +158,7 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%{_libdir}/imlib2/*/*.a
%{_libdir}/imlib2/*/*.la
%{_bindir}/imlib2-config
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/%{name}