svn commit: r500834 - head/audio/vgmplay

Piotr Kubaj pkubaj at FreeBSD.org
Sat May 4 22:14:04 UTC 2019


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 at 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
 


More information about the svn-ports-all mailing list