diff options
author | Mamoru Komachi <usata@gentoo.org> | 2005-05-06 04:35:58 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2005-05-06 04:35:58 +0000 |
commit | 6f02c3c18ef586e272674df5cea2b9d4d5cfa904 (patch) | |
tree | 78b6de210b98aff0d9dd8cb7e352945873f0f10e /app-office/magicpoint/files | |
parent | enable --no-backup-if-mismatch by default in epatch (diff) | |
download | gentoo-2-6f02c3c18ef586e272674df5cea2b9d4d5cfa904.tar.gz gentoo-2-6f02c3c18ef586e272674df5cea2b9d4d5cfa904.tar.bz2 gentoo-2-6f02c3c18ef586e272674df5cea2b9d4d5cfa904.zip |
Fixed mng dep. Thanks to James Rowe <jnrowe@ukfsn.org>; bug #91644.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-office/magicpoint/files')
-rw-r--r-- | app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch b/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch new file mode 100644 index 000000000000..f7ad9b402830 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.11b-mng_optional.patch @@ -0,0 +1,61 @@ +Index: magicpoint-1.11b/configure.in +=================================================================== +--- magicpoint-1.11b/configure.in {cset b4d3ff90-24b8-4cde-9052-f5859b9ff17a} ++++ magicpoint-1.11b/configure.in {local clone} +@@ -292,27 +292,35 @@ + done + fi + +-for i in /usr/pkg /usr/local /usr; do +- if test -f $i/include/libmng.h; then +- if test -f $i/lib/libmng.a ; then +- DEPLIBS="$DEPLIBS $i/lib/libmng.a" +- elif test -f $i/lib/libmng.so ; then +- DEPLIBS="$DEPLIBS $i/lib/libmng.so" +- else +- break; +- fi +- LIBS="$LIBS -L$i/lib" +- OPTFLAGS="$OPTFLAGS -I$i/include" +- AC_CHECK_LIB(mng, mng_initialize, +- [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng" +- AC_DEFINE(MNG)], +- [AC_CHECK_LIB(mng, mng_readdisplay, +- [LIBS="$LIBS -lmng -ljpeg" +- AC_DEFINE(MNG)], +- [], [-ljpeg])]) +- break +- fi +-done ++AC_MSG_CHECKING(if mng handling is enabled) ++AC_ARG_ENABLE(mng, ++ [ --enable-mng compile mng support in.], ++ [mgp_mng="$enableval"], ++ [mgp_mng="no"]) ++AC_MSG_RESULT($mgp_mng) ++if test $mgp_mng = "yes"; then ++ for i in /usr/pkg /usr/local /usr; do ++ if test -f $i/include/libmng.h; then ++ if test -f $i/lib/libmng.a ; then ++ DEPLIBS="$DEPLIBS $i/lib/libmng.a" ++ elif test -f $i/lib/libmng.so ; then ++ DEPLIBS="$DEPLIBS $i/lib/libmng.so" ++ else ++ break; ++ fi ++ LIBS="$LIBS -L$i/lib" ++ OPTFLAGS="$OPTFLAGS -I$i/include" ++ AC_CHECK_LIB(mng, mng_initialize, ++ [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng" ++ AC_DEFINE(MNG)], ++ [AC_CHECK_LIB(mng, mng_readdisplay, ++ [LIBS="$LIBS -lmng -ljpeg" ++ AC_DEFINE(MNG)], ++ [], [-ljpeg])]) ++ break ++ fi ++ done ++fi + + dnl Checks for header files. + AC_PATH_X |