ports/99923: [PATCH] audio/xmms-wma: fix build on sparc64

Michael Johnson ahze at FreeBSD.org
Sat Jul 8 19:30:17 UTC 2006


>Number:         99923
>Category:       ports
>Synopsis:       [PATCH] audio/xmms-wma: fix build on sparc64
>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:   Sat Jul 08 19:30:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        
>Organization:
>Environment:
>Description:
- Fix build on sparc64

Port maintainer (r.c.ladan at gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- xmms-wma-1.0.5.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/xmms-wma/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	25 May 2006 20:57:32 -0000	1.22
+++ Makefile	8 Jul 2006 14:44:42 -0000
@@ -18,9 +18,7 @@
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_X_PREFIX=	yes
-CFLAGS+=	-fpic -DPIC
-
-ONLY_FOR_ARCHS=	i386 amd64
+CFLAGS+=	-fPIC -DPIC
 
 PLIST_FILES=	lib/xmms/Input/libwma.so
 
@@ -29,6 +27,8 @@
 USE_ICONV=	yes
 .endif
 
+.include <bsd.port.pre.mk>
+
 pre-everything::
 .if !defined(WITH_ICONV)
 	@${ECHO_MSG} "You may specify the following on the command line:"
@@ -41,5 +41,9 @@
 	@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile.inc
 	@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/ffmpeg-strip-wma/config.mak
 	@${REINPLACE_CMD} -e 's|CFLAGS :=|CFLAGS := ${CFLAGS}|g' ${WRKSRC}/Makefile.inc
+.if ${ARCH}=="sparc64"
+	@${REINPLACE_CMD} -e 's|X86|SPARC64|' ${WRKSRC}/ffmpeg-strip-wma/config.mak
+	@${REINPLACE_CMD} -e 's|#define ARCH_X86 1|#define ARCH_SPARC64 1|' ${WRKSRC}/ffmpeg-strip-wma/config.h
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- xmms-wma-1.0.5.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list