ports/186665: [patch] devel/sdl12: fix libiconv detection
Tijl Coosemans
tijl at FreeBSD.org
Tue Feb 11 22:30:00 UTC 2014
>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:
More information about the freebsd-ports-bugs
mailing list