Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2014 02:54:09 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185515: audio/bmp-mac: Fix build with clang
Message-ID:  <20140106025409.8a81e40391d26064f622bee0@yahoo.com>
Resent-Message-ID: <201401051810.s05IA5Qw085118@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185515
>Category:       ports
>Synopsis:       audio/bmp-mac: 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:05 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-mac/Makefile audio/bmp-mac/Makefile
--- /usr/ports/audio/bmp-mac/Makefile	2013-11-25 18:57:52.000000000 +0900
+++ audio/bmp-mac/Makefile	2014-01-06 00:00:00.000000000 +0900
@@ -12,23 +12,27 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Monkey's Audio Codec non-win32 port
 
-LIB_DEPENDS=	libbeep.so:${PORTSDIR}/multimedia/beep-media-player \
-		libmac.so:${PORTSDIR}/audio/mac
+LIB_DEPENDS=	libmac.so:${PORTSDIR}/audio/mac \
+		libbeep.so:${PORTSDIR}/multimedia/beep-media-player
 
 USES=		gmake pkgconfig
-GNU_CONFIGURE=	yes
-USE_AUTOTOOLS=	autoconf libtool
-CPPFLAGS+=	"-I${LOCALBASE}/include"
-PLUGDIR=	lib/bmp/Input
-PLUGFILE=	lib${PKGNAMEPREFIX}${PORTNAME}.so
-PLIST_FILES=	${PLUGDIR}/${PLUGFILE}
+USE_AUTOTOOLS=	libtoolize aclocal automake autoconf
+LIBTOOLIZE_ARGS=--force --copy 
+AUTOMAKE_ARGS=	--add-missing --copy 
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+PLIST_FILES=	lib/bmp/Input/libbmp-mac.so
 
 post-patch:
-	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
-		's|-D.*_DISABLE_DEPRECATED||g'
+	@${REINPLACE_CMD} -e \
+		's|-D.*_DISABLE_DEPRECATED|| ; \
+		 s|@BMP_LIBS@|@GTK_LIBS@|' ${WRKSRC}/src/Makefile.am
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGDIR}
-	${INSTALL_LIB} ${WRKSRC}/src/.libs/${PLUGFILE} ${STAGEDIR}${PREFIX}/${PLUGDIR}/
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/bmp/Input
+	(cd ${WRKSRC}/src/.libs && ${INSTALL_LIB} libbmp-mac.so \
+		${STAGEDIR}${PREFIX}/lib/bmp/Input)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/audio/bmp-mac/files/patch-configure.in audio/bmp-mac/files/patch-configure.in
--- /usr/ports/audio/bmp-mac/files/patch-configure.in	2013-11-06 21:52:22.000000000 +0900
+++ audio/bmp-mac/files/patch-configure.in	2014-01-06 00:00:00.000000000 +0900
@@ -1,11 +1,14 @@
 --- configure.in.orig	Tue Jan 17 23:49:11 2006
 +++ configure.in	Tue Jan 17 23:49:55 2006
-@@ -62,7 +62,7 @@
+@@ -62,9 +62,9 @@
  
  AC_CHECK_LIB(mac, DecompressFile, [])
  
 -#MAC_LIBS="-lmac"
-+MAC_LIBS="-lmac -lpthread"
++MAC_LIBS="-lmac -pthread"
  #MAC_INCLUDES="-I/usr/include/mac"
- MAC_CXXFLAGS="-s -O3 -Wall -pedantic -DBUILD_CROSS_PLATFORM"
+-MAC_CXXFLAGS="-s -O3 -Wall -pedantic -DBUILD_CROSS_PLATFORM"
++MAC_CXXFLAGS="-DBUILD_CROSS_PLATFORM"
  
+ AC_SUBST(MAC_LIBS)
+ AC_SUBST(MAC_CXXFLAGS)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140106025409.8a81e40391d26064f622bee0>