Don't remove X11 linkage; this breaks the upcoming LinuxCNC port.

PR:		210212
Approved by:	maintainer (earlier version)
This commit is contained in:
Edward Tomasz Napierala 2016-06-14 19:27:30 +00:00
parent b222f71024
commit d1ba86f97c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=416906

View file

@ -3,7 +3,7 @@
PORTNAME= libimg
PORTVERSION= 1.4.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES?= graphics tk
MASTER_SITES= SF/tkimg/tkimg/${PORTVERSION:R}
DISTNAME= tkimg${PORTVERSION}
@ -12,7 +12,9 @@ MAINTAINER= mi@aldan.algebra.com
COMMENT= Library of image format handlers for Tk4.1 and later
BUILD_DEPENDS= dtplite:devel/tcllib
LIB_DEPENDS= libpng.so:graphics/png \
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
PLIST_SUB+= SHLIB_NAME="${SHLIB_NAME}" \
@ -20,6 +22,7 @@ PLIST_SUB+= SHLIB_NAME="${SHLIB_NAME}" \
WRKSRC= ${WRKDIR}/tkimg${PORTVERSION:R}
USES= autoreconf jpeg tk:tea tar:bzip2
USE_XORG= x11 xext xft xrender xscrnsaver
# We don't need the bundled libraries:
EXTRACT_AFTER_ARGS= --exclude '*/libz/*' --exclude zlib \
@ -37,9 +40,6 @@ post-patch:
.endfor
post-configure:
# Do not link with X11 -- none of tkimg code uses X directly
${REINPLACE_CMD} -E -e 's,-L[^[:space:]]+[[:space:]]+-lX[^[:space:]]*,,g' \
${WRKSRC}/*/Makefile
.for l in jpeg png tiff
# Link with -l$l
${REINPLACE_CMD} -E \