audio/ocp: fix build on powerpc64 with gcc

GCC is still used on stable/11 and stable/12. It needs sys/types.h in lzh.h, because some types are not recognized.

Force newer compiler due to:
pfilesel.c:3312: error: #pragma GCC diagnostic not allowed inside functions

Because of libstdc++ ABI changes due to forcing new compiler, audio/libadplug and devel/libbinio in order for audio/ocp to build.

PR:		247377
Approved by:	ehaupt (maintainer)
This commit is contained in:
Piotr Kubaj 2020-06-18 15:41:32 +00:00
parent 4836cb49ee
commit 12a4b55f68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=539550
4 changed files with 15 additions and 4 deletions

View file

@ -14,7 +14,8 @@ LICENSE= GPLv2
LIB_DEPENDS= libbinio.so:devel/libbinio
USES= autoreconf libtool makeinfo pathfix pkgconfig
USES= autoreconf compiler:c++11-lang libtool makeinfo pathfix \
pkgconfig
USE_CSTD= gnu89
USE_GITHUB= yes
USE_LDCONFIG= yes

View file

@ -23,8 +23,8 @@ LIB_DEPENDS= libid3tag.so:audio/libid3tag \
libsidplay.so:audio/libsidplay \
libvorbis.so:audio/libvorbis
USES= gmake gnome iconv localbase:ldflags makeinfo ncurses pkgconfig \
tar:xz
USES= compiler:c11 gmake gnome iconv localbase:ldflags makeinfo \
ncurses pkgconfig tar:xz
USE_GITHUB= yes
GH_ACCOUNT= mywave82

View file

@ -0,0 +1,10 @@
--- playym/lzh/lzh.h.orig 2020-06-17 18:26:50 UTC
+++ playym/lzh/lzh.h
@@ -41,6 +41,7 @@
#ifndef LZH_H
#define LZH_H
+#include <sys/types.h>
#define BUFSIZE (1024 * 4)

View file

@ -11,7 +11,7 @@ COMMENT= Binary I/O stream class library
LICENSE= LGPL21
USES= autoreconf libtool pathfix
USES= autoreconf compiler:c11 libtool pathfix
USE_GITHUB= yes
USE_LDCONFIG= yes