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 COMMENT= A graphic library for enlightenment package
MASTER_SITE_SUBDIR= i/${PORTNAME} MASTER_SITE_SUBDIR= i/${PORTNAME}
PORTVERSION= 1.9.15 PORTVERSION= 1.9.15
PORTREVISION= 16 PORTREVISION= 17
CATEGORIES= graphics CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_TDE_DEPS} MASTER_SITES= ${MASTER_SITE_TDE_DEPS}
DISTNAME= ${PORTNAME}_${PORTVERSION} DISTNAME= ${PORTNAME}_${PORTVERSION}

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

Loading…
Cancel
Save