Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2013 05:47:38 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/185350: graphics/xmms-blursk: Fix build with clang
Message-ID:  <20131231054738.83d98058f92407181ec205c1@yahoo.com>
Resent-Message-ID: <201312302110.rBULAD6M098964@freefall.freebsd.org>

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

>Number:         185350
>Category:       ports
>Synopsis:       graphics/xmms-blursk: 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:   Mon Dec 30 21:10:12 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add LICENSE

Remove file:
files/patch-ltmain.sh

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/xmms-blursk/Makefile graphics/xmms-blursk/Makefile
--- /usr/ports/graphics/xmms-blursk/Makefile	2013-11-06 22:01:52.000000000 +0900
+++ graphics/xmms-blursk/Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -12,22 +12,34 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	XMMS plugin inspired by "Blur Scope"
 
-BUILD_DEPENDS=	xmms-config:${PORTSDIR}/multimedia/xmms
-RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
+LICENSE=	GPLv2 # (or later)
 
-PLIST_FILES=	lib/xmms/Visualization/libblursk.so
-USE_GNOME=	gtk12
+BUILD_DEPENDS=	xmms>0:${PORTSDIR}/multimedia/xmms
+RUN_DEPENDS=	xmms>0:${PORTSDIR}/multimedia/xmms
+
+USES=		compiler
 USE_XORG=	x11 xv
-GNU_CONFIGURE=	yes
+USE_GNOME=	gtk12
+USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
 
-CPPFLAGS+=	${CFLAGS} ${PTHREAD_CFLAGS}
+PLIST_FILES=	lib/xmms/Visualization/libblursk.so
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386" && ${COMPILER_TYPE} == "clang"
+USE_BINUTILS=	yes
+CPPFLAGS+=	-no-integrated-as
+.endif
 
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's|-O2||' \
-		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
-		${BUILD_WRKSRC}/Makefile.in
-	@${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		's|-O2|| ; \
+		 s|@PTHREAD_LIBS@||' ${WRKSRC}/Makefile.in
 
-.include <bsd.port.mk>
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Visualization
+	(cd ${WRKSRC}/.libs && ${INSTALL_LIB} libblursk.so \
+		${STAGEDIR}${PREFIX}/lib/xmms/Visualization)
+		
+.include <bsd.port.post.mk>
diff -urN /usr/ports/graphics/xmms-blursk/files/patch-ltmain.sh graphics/xmms-blursk/files/patch-ltmain.sh
--- /usr/ports/graphics/xmms-blursk/files/patch-ltmain.sh	2013-11-06 22:01:52.000000000 +0900
+++ graphics/xmms-blursk/files/patch-ltmain.sh	1970-01-01 09:00:00.000000000 +0900
@@ -1,16 +0,0 @@
---- ltmain.sh.orig	Thu Apr 25 22:13:38 2002
-+++ ltmain.sh	Thu Apr 25 22:13:56 2002
-@@ -4246,11 +4246,13 @@
- 	  IFS="$save_ifs"
- 	fi
- 
-+	if /usr/bin/false; then
- 	# Install the pseudo-library for information purposes.
- 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- 	instname="$dir/$name"i
- 	$show "$install_prog $instname $destdir/$name"
- 	$run eval "$install_prog $instname $destdir/$name" || exit $?
-+	fi
- 
- 	# Maybe install the static library, too.
- 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
>Release-Note:
>Audit-Trail:
>Unformatted:



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