diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-15 13:42:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-15 13:42:19 +0100 |
commit | bd8ca999980e9c0c9ae40a11789c858bb58769e3 (patch) | |
tree | 355d68a84921e04a81231e74fc062f229f76a733 /media-libs/giblib/files | |
parent | b3f2504c1d05b5999b74b2135860fc721e3adf68 (diff) |
gentoo auto-resync : 15:07:2022 - 13:42:19
Diffstat (limited to 'media-libs/giblib/files')
-rw-r--r-- | media-libs/giblib/files/giblib-1.2.4-use-pkg-config-imlib2.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/media-libs/giblib/files/giblib-1.2.4-use-pkg-config-imlib2.patch b/media-libs/giblib/files/giblib-1.2.4-use-pkg-config-imlib2.patch new file mode 100644 index 000000000000..9b0cc163a593 --- /dev/null +++ b/media-libs/giblib/files/giblib-1.2.4-use-pkg-config-imlib2.patch @@ -0,0 +1,29 @@ +https://bugs.gentoo.org/828879 +--- a/configure.ac ++++ b/configure.ac +@@ -16,20 +16,12 @@ AM_SANITY_CHECK + AM_MAINTAINER_MODE + AM_WITH_DMALLOC + +-AC_PATH_GENERIC(imlib2, 1.0.0, [ +- AC_SUBST(IMLIB_LIBS) +- AC_SUBST(IMLIB_CFLAGS) ], +- AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?) ) +- +-dnl the above doesn't work for some reason :/ +-IMLIB_LIBS=`imlib2-config --libs` +-IMLIB_CFLAGS=`imlib2-config --cflags` +-AC_SUBST(IMLIB_LIBS) +-AC_SUBST(IMLIB_CFLAGS) +- +-LIBS="$LIBS -lm" +-CFLAGS="$CFLAGS -Wall" ++PKG_PROG_PKG_CONFIG ++PKG_CHECK_MODULES([IMLIB], [imlib2 > 1.0]) ++ ++AC_CHECK_LIB([m],[cos]) + ++CFLAGS="$CFLAGS -Wall" + + AC_OUTPUT([ + Makefile |