- Switch to USES=localbase

- Fix build on 11+
This commit is contained in:
Dmitry Marakasov 2016-12-23 10:01:29 +00:00
parent 3f74e525c4
commit 29d04abe2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=429238
2 changed files with 13 additions and 4 deletions

View File

@ -11,20 +11,18 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Toolbox for manipulating Ogg video files
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgd.so:graphics/gd \
libogg.so:audio/libogg \
libtheora.so:multimedia/libtheora \
libvorbis.so:audio/libvorbis
USES= cmake compiler:c++11-lib pkgconfig
USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig
USE_CXXSTD= c++11
USE_SDL= sdl
USE_LDCONFIG= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e \
's|-O0.*-fPIC|-fPIC|' ${WRKSRC}/CMakeLists.txt

View File

@ -0,0 +1,11 @@
--- src/base/oggPacket.cpp.orig 2016-01-11 07:51:37 UTC
+++ src/base/oggPacket.cpp
@@ -34,7 +34,7 @@ streamType(OggType::unknown), streamNo(2
OggPacketInternal::OggPacketInternal(uint8* data, uint32 length,
uint32 packetNo, int64 granulePos, PacketType packetType)
- : oggPacket {/*packet*/data,/*bytes*/length, /*b_o_s*/0, /*e_o_s*/0, /*granualpos*/granulePos, /*packetno*/packetNo},
+ : oggPacket {/*packet*/data,/*bytes*/static_cast<long>(length), /*b_o_s*/0, /*e_o_s*/0, /*granualpos*/granulePos, /*packetno*/packetNo},
streamType(OggType::unknown), streamNo(255), streamHeader(false)
{
switch (packetType) {