Date: Mon, 6 Jan 2014 02:54:05 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/185512: audio/bmp-flac: Fix build with clang Message-ID: <20140106025405.47cf6af5ea20bff0e37591b5@yahoo.com> Resent-Message-ID: <201401051810.s05IA404085083@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 185512 >Category: ports >Synopsis: audio/bmp-flac: Fix build with clang >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: Sun Jan 05 18:10:04 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang >How-To-Repeat: >Fix: diff -urN /usr/ports/audio/bmp-flac/Makefile audio/bmp-flac/Makefile --- /usr/ports/audio/bmp-flac/Makefile 2013-11-25 18:57:49.000000000 +0900 +++ audio/bmp-flac/Makefile 2014-01-06 00:00:00.000000000 +0900 @@ -12,22 +12,33 @@ MAINTAINER= ports@FreeBSD.org COMMENT= FLAC input plugin for beep-media-player -LIB_DEPENDS= libbeep.so:${PORTSDIR}/multimedia/beep-media-player \ - libFLAC.so:${PORTSDIR}/audio/flac +LICENSE= GPLv2 -PLIST_FILES= lib/bmp/Input/libbmp-flac.so +LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac \ + libbeep.so:${PORTSDIR}/multimedia/beep-media-player -USES= iconv pkgconfig USE_BZIP2= yes +USES= iconv pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \ --with-ogg="${LOCALBASE}" \ --with-xmms-prefix="${LOCALBASE}" - MAKEFILE= ${FILESDIR}/Makefile +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= lib/bmp/Input/libbmp-flac.so + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "sparc64" +BROKEN= Does not compile with GCC 4.2 +.endif + post-patch: - @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + '/xtra_stdcpp/s|-lstdc++||' ${WRKSRC}/configure # "obj" is magic to our make(1) # make sure we get the new includes from ${LOCALBASE}/include/FLAC @@ -38,12 +49,7 @@ # This is to avoid libtool running ldconfig -m ${LOCALBASE}/lib/bmp/Input do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/bmp/Input - ${INSTALL_LIB} ${WRKSRC}/src/plugin_bmp/.libs/libbmp-flac.so ${STAGEDIR}${PREFIX}/lib/bmp/Input - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "sparc64" -BROKEN= Does not compile with GCC 4.2 -.endif + (cd ${WRKSRC}/src/plugin_bmp/.libs && ${INSTALL_LIB} libbmp-flac.so \ + ${STAGEDIR}${PREFIX}/lib/bmp/Input) .include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140106025405.47cf6af5ea20bff0e37591b5>