diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2017-12-31 12:42:19 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2017-12-31 12:42:19 +0000 |
commit | 4c3d1cabe325fc1887141a80995f5b6eb3769046 (patch) | |
tree | 30acbf053095ce304cea6d02b990f9f2dd1aecb3 /graphics/imlib2 | |
parent | 39008da88daa9e3a878a0f64852d83c5a7b78b42 (diff) | |
download | ports-4c3d1cabe325fc1887141a80995f5b6eb3769046.tar.gz ports-4c3d1cabe325fc1887141a80995f5b6eb3769046.zip |
Properly fix when X11 option is off.
When the X11 option is off, there are still things in the Imlib2.h header
that uses X11, fix this by removing those bits when building without X11.
PR: 224354
Submitted by: Dominik Honnef
Notes
Notes:
svn path=/head/; revision=457685
Diffstat (limited to 'graphics/imlib2')
-rw-r--r-- | graphics/imlib2/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/imlib2/Makefile b/graphics/imlib2/Makefile index 34f6e8f7860a..146be68b6a23 100644 --- a/graphics/imlib2/Makefile +++ b/graphics/imlib2/Makefile @@ -3,6 +3,7 @@ PORTNAME= imlib2 PORTVERSION= 1.4.10 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= graphics enlightenment MASTER_SITES= SF/enlightenment/imlib2-src/${PORTVERSION} @@ -63,10 +64,10 @@ CONFIGURE_ARGS+= --enable-amd64 CONFIGURE_ARGS+= --disable-amd64 .endif -post-patch-X11-on: +post-patch-X11-off: @${REINPLACE_CMD} -e '/MY_LIBS =/s/-lXext -lX11//' \ ${WRKSRC}/src/lib/Makefile.in - @${REINPLACE_CMD} -e '/# ifndef X_DISPLAY_MISSING/,/# endif/ d' \ + @${REINPLACE_CMD} -e '/#ifndef X_DISPLAY_MISSING/,/#endif/ d' \ ${WRKSRC}/src/lib/Imlib2.h .include <bsd.port.mk> |