FreeBSD imlib: Update the patch to search XShm include to make it work

even if AC_PATH_X does not return a valid path.

This resolves issue #110.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/158/head
Slávek Banko 3 years ago
parent 1042775654
commit 84bd19f797
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -9,7 +9,7 @@ PORTNAME= imlib
COMMENT= A graphic library for enlightenment package
MASTER_SITE_SUBDIR= i/${PORTNAME}
PORTVERSION= 1.9.15
PORTREVISION= 16
PORTREVISION= 17
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_TDE_DEPS}
DISTNAME= ${PORTNAME}_${PORTVERSION}

@ -1,11 +1,13 @@
--- imlib-1.9.15.orig/configure.in
+++ imlib-1.9.15/configure.in
@@ -197,7 +197,7 @@
@@ -197,7 +197,9 @@
AC_MSG_RESULT(no)
no_xshm=yes
else
- if test -f "$x_includes/X11/extensions/XShm.h"; then
+ if test -f "$x_includes/X11/extensions/XShm.h" || test -f "/usr/include/X11/extensions/XShm.h"; then
+ if test -f "$x_includes/X11/extensions/XShm.h" || \
+ test -f "/usr/include/X11/extensions/XShm.h" || \
+ test -f "/usr/local/include/X11/extensions/XShm.h"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_XSHM_H, 1, [ ])
else

Loading…
Cancel
Save