Bug 185350 - graphics/xmms-blursk: Fix build with clang
Summary: graphics/xmms-blursk: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 21:10 UTC by tkato432
Modified: 2014-01-25 11:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.30 KB, patch)
2013-12-30 21:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-30 21:10:12 UTC
- Fix build with clang
- Add LICENSE

Remove file:
files/patch-ltmain.sh
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2014-01-19 08:59:42 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-01-19 08:59:44 UTC
Author: miwi
Date: Sun Jan 19 08:59:36 2014
New Revision: 340236
URL: http://svnweb.freebsd.org/changeset/ports/340236
QAT: https://qat.redports.org/buildarchive/r340236/

Log:
  - Fix build with clang
  
  PR:		185350
  Submitted by:	ports fury

Deleted:
  head/graphics/xmms-blursk/files/
Modified:
  head/graphics/xmms-blursk/Makefile   (contents, props changed)

Modified: head/graphics/xmms-blursk/Makefile
==============================================================================
--- head/graphics/xmms-blursk/Makefile	Sun Jan 19 08:58:54 2014	(r340235)
+++ head/graphics/xmms-blursk/Makefile	Sun Jan 19 08:59:36 2014	(r340236)
@@ -12,22 +12,34 @@ DISTNAME=	Blursk-${PORTVERSION}
 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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-01-25 10:50:55 UTC
Author: miwi
Date: Sat Jan 25 10:50:47 2014
New Revision: 341008
URL: http://svnweb.freebsd.org/changeset/ports/341008
QAT: https://qat.redports.org/buildarchive/r341008/

Log:
  MFH: r340236
  
  - Fix build with clang
  
  PR:		185350
  Submitted by:	ports fury

Deleted:
  branches/2014Q1/graphics/xmms-blursk/files/
Modified:
  branches/2014Q1/graphics/xmms-blursk/Makefile   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/graphics/xmms-blursk/Makefile
==============================================================================
--- branches/2014Q1/graphics/xmms-blursk/Makefile	Sat Jan 25 10:46:21 2014	(r341007)
+++ branches/2014Q1/graphics/xmms-blursk/Makefile	Sat Jan 25 10:50:47 2014	(r341008)
@@ -12,22 +12,34 @@ DISTNAME=	Blursk-${PORTVERSION}
 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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"