Bug 63103 - amd64-fix: audio/xmms-mp3cue
Summary: amd64-fix: audio/xmms-mp3cue
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: 2004-02-20 03:20 UTC by hendrik
Modified: 2004-02-20 15:04 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (111 bytes, patch)
2004-02-20 03:20 UTC, hendrik
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hendrik 2004-02-20 03:20:04 UTC
bento reports the usual -fPIC problem:
http://bento.freebsd.org/errorlogs/amd64-5-latest/xmms-mp3cue-0.94.log

The port does not honor the CFLAGS environment variable so we have
to add this in configure.in and run autoconf on amd64.

CC'ed to author.

Brian: Just add the CFLAGS="$CFLAGS $XMMS_CFLAGS" line to your configure.in
       and you should be fine.

Fix: files/patch-configure.in:



AC_MSG_CHECKING("XMMS cflags")
 XMMS_CFLAGS=`xmms-config --cflags`
-CFLAGS="$XMMS_CFLAGS"
+CFLAGS="$CFLAGS $XMMS_CFLAGS"
 AC_MSG_RESULT(yes)

 AC_MSG_CHECKING("XMMS installpath")--UsJ3qWZulfwfObo0pOQsuuzMz44WhROT0RHNkGGCWd4ASrLJ
Content-Type: text/plain; name="xmms-mp3cue.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="xmms-mp3cue.diff"

Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/audio/xmms-mp3cue/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	14 Feb 2004 14:44:20 -0000	1.1
+++ Makefile	20 Feb 2004 03:12:20 -0000
@@ -23,7 +23,13 @@
 
 PLIST_SUB=	PORTDOCS=${DISTNAME}
 
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CONFIGURE_ENV=	CFLAGS="-fPIC" CPPFLAGS="-fPIC"
+USE_AUTOCONF=	yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/*.c
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2004-02-20 15:04:31 UTC
State Changed
From-To: open->closed

committed, thanks