Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 11:09:36 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337708 - in head/audio: xmms-a52dec xmms-fc xmms-mp3cue
Message-ID:  <201312271109.rBRB9a5L092654@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 27 11:09:35 2013
New Revision: 337708
URL: http://svnweb.freebsd.org/changeset/ports/337708

Log:
  Use CFLAGS_${ARCH}

Modified:
  head/audio/xmms-a52dec/Makefile
  head/audio/xmms-fc/Makefile
  head/audio/xmms-mp3cue/Makefile

Modified: head/audio/xmms-a52dec/Makefile
==============================================================================
--- head/audio/xmms-a52dec/Makefile	Fri Dec 27 11:05:30 2013	(r337707)
+++ head/audio/xmms-a52dec/Makefile	Fri Dec 27 11:09:35 2013	(r337708)
@@ -18,10 +18,7 @@ USE_BZIP2=	yes
 USE_GNOME=	gtk12
 CFLAGS+=	`xmms-config --cflags` -L${LOCALBASE}/lib
 
-.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-CFLAGS+=	-fPIC
-.endif
+CFLAGS_amd64=	fPIC
 
 PLIST_FILES=	lib/xmms/Input/liba52dec.so
 
@@ -33,4 +30,4 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/liba52dec.so \
 		${STAGEDIR}${PREFIX}/lib/xmms/Input/
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/audio/xmms-fc/Makefile
==============================================================================
--- head/audio/xmms-fc/Makefile	Fri Dec 27 11:05:30 2013	(r337707)
+++ head/audio/xmms-fc/Makefile	Fri Dec 27 11:09:35 2013	(r337708)
@@ -35,11 +35,8 @@ LIBFC_PORTNAME=	libfc14audiodecoder
 LIBFC_PORTVERSION=	1.0.2
 LIBFC_DISTNAME=	${LIBFC_PORTNAME}-${LIBFC_PORTVERSION}
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-CXXFLAGS+=	-fPIC -DPIC
-.endif
+CFLAGS_amd64=	-fPIC -DPIC
+CFLAGS_ia64=	-fPIC -DPIC
 
 pre-configure:
 	@(cd ${WRKDIR}/${LIBFC_DISTNAME} && ./configure --disable-shared \
@@ -49,4 +46,4 @@ pre-build:
 	@(cd ${WRKDIR}/${LIBFC_DISTNAME} && ${SETENV} ${MAKE_ENV} ${MAKE} \
 		${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET} ${MAKE_ARGS})
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/audio/xmms-mp3cue/Makefile
==============================================================================
--- head/audio/xmms-mp3cue/Makefile	Fri Dec 27 11:05:30 2013	(r337707)
+++ head/audio/xmms-mp3cue/Makefile	Fri Dec 27 11:09:35 2013	(r337708)
@@ -19,13 +19,10 @@ NO_STAGE=	yes
 
 PLIST_SUB=	PORTDOCS=${DISTNAME}
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-CFLAGS+=	-fPIC
-.endif
+CFLAGS_amd64=	-fPIC
+CFLAGS_ia64=	-fPIC
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/*.c
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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