svn commit: r538439 - in head/multimedia/m2vrequantiser: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jun 10 20:59:22 UTC 2020
Author: pkubaj
Date: Wed Jun 10 20:59:21 2020
New Revision: 538439
URL: https://svnweb.freebsd.org/changeset/ports/538439
Log:
multimedia/m2vrequantiser: fix build on powerpc* with clang, simplify port
Modified:
head/multimedia/m2vrequantiser/Makefile
head/multimedia/m2vrequantiser/files/patch-main.c
Modified: head/multimedia/m2vrequantiser/Makefile
==============================================================================
--- head/multimedia/m2vrequantiser/Makefile Wed Jun 10 20:12:21 2020 (r538438)
+++ head/multimedia/m2vrequantiser/Makefile Wed Jun 10 20:59:21 2020 (r538439)
@@ -10,10 +10,9 @@ DISTNAME= M2VRequantiser-v${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Requantize MPEG-2 streams without recompressing
-PATCH_STRIP= -p1
-CFLAGS+= -Duint=unsigned
-MAKE_ARGS+= CC="${CC}" CXX="${CXX}"
-PLIST_FILES+= bin/M2VRequantiser
+CFLAGS= -Duint=unsigned
+MAKE_ARGS= CC="${CC}" CXX="${CXX}"
+PLIST_FILES= bin/M2VRequantiser
post-patch:
${REINPLACE_CMD} 's|$$(PREFIX)|$${DESTDIR}$$(PREFIX)|' ${WRKSRC}/Makefile
Modified: head/multimedia/m2vrequantiser/files/patch-main.c
==============================================================================
--- head/multimedia/m2vrequantiser/files/patch-main.c Wed Jun 10 20:12:21 2020 (r538438)
+++ head/multimedia/m2vrequantiser/files/patch-main.c Wed Jun 10 20:59:21 2020 (r538439)
@@ -1,5 +1,14 @@
---- a/main.c
-+++ b/main.c
+--- main.c
++++ main.c
+@@ -30,7 +30,7 @@ Thanks to Sven Goethel for error resilience patches
+ #define NDEBUG // turns off asserts
+ #define REMOVE_BYTE_STUFFING // removes series of 0x00
+
+-#if defined(__ppc__) || defined(__ppc64__)
++#if (defined(__ppc__) || defined(__ppc64__)) && !defined(__clang__)
+ #define USE_GLOBAL_REGISTER // assign registers to bit buffers
+ #elif defined(__i386__) || defined (__x86_64__)
+ // #define USE_GLOBAL_REGISTER // assign registers to bit buffers
@@ -2315,7 +2315,7 @@ int main (int argc, const char * argv[])
if (argc < 5) { USAGE }
delta_bright = atoi(argv[4]);
More information about the svn-ports-head
mailing list