freebsd-ports/multimedia/smpeg2/Makefile
Jan Beich 9b15f90ffb multimedia/smpeg2: unbreak build with Clang 6 (C++14 by default)
audio/hufftable.cpp:553:8: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  { 0, 0-1, 0-1, 0,  0, htd33},
       ^~~
audio/hufftable.cpp:553:8: note: insert an explicit cast to silence this issue
  { 0, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
audio/hufftable.cpp:553:13: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  { 0, 0-1, 0-1, 0,  0, htd33},
            ^~~
audio/hufftable.cpp:553:13: note: insert an explicit cast to silence this issue
  { 0, 0-1, 0-1, 0,  0, htd33},
            ^~~
            static_cast<unsigned int>( )
audio/hufftable.cpp:557:8: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  { 4, 0-1, 0-1, 0,  0, htd33},
       ^~~
audio/hufftable.cpp:557:8: note: insert an explicit cast to silence this issue
  { 4, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
audio/hufftable.cpp:557:13: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  { 4, 0-1, 0-1, 0,  0, htd33},
            ^~~
audio/hufftable.cpp:557:13: note: insert an explicit cast to silence this issue
  { 4, 0-1, 0-1, 0,  0, htd33},
            ^~~
            static_cast<unsigned int>( )
audio/hufftable.cpp:567:8: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  {14, 0-1, 0-1, 0,  0, htd33},
       ^~~
audio/hufftable.cpp:567:8: note: insert an explicit cast to silence this issue
  {14, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
audio/hufftable.cpp:567:13: error: constant expression evaluates to -1 which cannot be narrowed to
      type 'unsigned int' [-Wc++11-narrowing]
  {14, 0-1, 0-1, 0,  0, htd33},
            ^~~
audio/hufftable.cpp:567:13: note: insert an explicit cast to silence this issue
  {14, 0-1, 0-1, 0,  0, htd33},
            ^~~
            static_cast<unsigned int>( )

Reported by:	antoine (via bug 224669)
Obtained from:	r458130
2018-01-05 11:57:37 +00:00

38 lines
938 B
Makefile

# Created by: Vladimir Kondratiev <wulf@mail.mipt.ru>
# $FreeBSD$
PORTNAME= smpeg2
PORTVERSION= 2.0.0
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= http://www.libsdl.org/projects/smpeg/release/ \
http://rsync.macports.org/smpeg2/
MAINTAINER= ports@FreeBSD.org
COMMENT= Free MPEG1 video player library with sound support
LICENSE= MIT LGPL20+
LICENSE_COMB= multi
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/}
USES= compiler:features libtool
USE_SDL= sdl2
USE_LDCONFIG= yes
OPTIONS_DEFINE= PLAYMPEG
OPTIONS_DEFAULT=
PLAYMPEG_DESC= Build plaympeg binary (conficts with smpeg)
OPTIONS_SUB= yes
CONFIGURE_ARGS= --enable-mmx
PLAYMPEG_CONFLICTS_INSTALL= smpeg
PLAYMPEG_VARS= LICENSE+=GPLv2+
post-patch-PLAYMPEG-off:
@${REINPLACE_CMD} -e '/^bin_PROGRAMS =/s/plaympeg$$(EXEEXT)// ; \
/^man_MANS =/s/plaympeg\.1//' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>