Date: Tue, 11 Feb 2014 23:25:11 +0100 (CET) From: Tijl Coosemans <tijl@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/186665: [patch] devel/sdl12: fix libiconv detection Message-ID: <201402112225.s1BMPBPe071665@kalimero.tijl.coosemans.org> Resent-Message-ID: <201402112230.s1BMU0CT084178@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186665 >Category: ports >Synopsis: [patch] devel/sdl12: fix libiconv detection >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 11 22:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 11.0-CURRENT i386 >Organization: >Environment: >Description: - Patch the SDL configure script so it no longer adds -liconv to LDFLAGS when converters/libiconv is installed on FreeBSD 10. - Add USES=iconv to graphics/sdl_ttf. The file showfont.c includes iconv.h. >How-To-Repeat: >Fix: --- sdl12.patch begins here --- Index: devel/sdl12/Makefile =================================================================== --- devel/sdl12/Makefile (revision 343722) +++ devel/sdl12/Makefile (working copy) @@ -70,6 +70,10 @@ PKGMESSAGE= none DISPLAY_MSG= ${DO_NADA} .endif +post-patch: + @${REINPLACE_CMD} -e '/EXTRA_LDFLAGS/s/-liconv/${ICONV_LIB}/' \ + ${WRKSRC}/configure + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} &&\ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ &&\ Index: graphics/sdl_ttf/Makefile =================================================================== --- graphics/sdl_ttf/Makefile (revision 343722) +++ graphics/sdl_ttf/Makefile (working copy) @@ -16,7 +16,7 @@ LIB_DEPENDS= libfreetype.so:${PORTSDIR}/ USE_AUTOTOOLS= libtool USE_SDL= sdl -USES= gmake pathfix pkgconfig +USES= gmake iconv pathfix pkgconfig USE_XORG= x11 GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include --- sdl12.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402112225.s1BMPBPe071665>