Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2019 22:14:03 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500834 - head/audio/vgmplay
Message-ID:  <201905042214.x44ME3go084201@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat May  4 22:14:02 2019
New Revision: 500834
URL: https://svnweb.freebsd.org/changeset/ports/500834

Log:
  audio/vgmplay: correct endianness on big-endian architectures
  
  By default little-endian is specified, which may result in runtime issues. Set it to big-endian where needed.
  
  Also add USES=localbase:ldflags.
  
  PR:		237173
  Approved by:	tagattie@yandex.com (maintainer), linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D19994

Modified:
  head/audio/vgmplay/Makefile

Modified: head/audio/vgmplay/Makefile
==============================================================================
--- head/audio/vgmplay/Makefile	Sat May  4 22:00:42 2019	(r500833)
+++ head/audio/vgmplay/Makefile	Sat May  4 22:14:02 2019	(r500834)
@@ -2,6 +2,7 @@
 
 PORTNAME=	vgmplay
 PORTVERSION=	0.40.9
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://github.com/vgmrips/${PORTNAME}/releases/download/${PORTVERSION}/
 DISTNAME=	${PORTNAME:S/vgmp/VGMP/}_${PORTVERSION:S/.//:S/./-/}_src
@@ -26,10 +27,12 @@ LIBAO_DESC=	Use libao
 OSS_MAKE_ENV+=	USE_LIBAO=0
 LIBAO_MAKE_ENV+=	USE_LIBAO=1
 LIBAO_LIB_DEPENDS=	libao.so:audio/libao
-LIBAO_CFLAGS+=	-I${LOCALBASE}/include
-LIBAO_LDFLAGS+=	-L${LOCALBASE}/lib
+LIBAO_USES=	localbase:ldflags
 
-MAKE_ENV+=	PREFIX=${LOCALBASE}
+MAKE_ENV+=	PREFIX=${LOCALBASE} ${MAKE_ENV_${ARCH}}
+MAKE_ENV_powerpc64=	BYTE_ORDER=2
+MAKE_ENV_powerpc=	BYTE_ORDER=2
+MAKE_ENV_powerpcspe=	BYTE_ORDER=2
 
 PLIST_FILES=	bin/vgmplay bin/vgm2pcm bin/vgm2wav man/man1/vgmplay.1.gz ${EXAMPLESDIR}/vgmplay.ini
 



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