1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/multimedia/smpeg/Makefile
Jan Beich 93a2ab9798 multimedia/smpeg: unbreak build with Clang 6 (C++14 by default)
huffmantable.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},
       ^~~
huffmantable.cpp:553:8: note: insert an explicit cast to silence this issue
  { 0, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
huffmantable.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},
            ^~~
huffmantable.cpp:553:13: note: insert an explicit cast to silence this issue
  { 0, 0-1, 0-1, 0,  0, htd33},
            ^~~
            static_cast<unsigned int>( )
huffmantable.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},
       ^~~
huffmantable.cpp:557:8: note: insert an explicit cast to silence this issue
  { 4, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
huffmantable.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},
            ^~~
huffmantable.cpp:557:13: note: insert an explicit cast to silence this issue
  { 4, 0-1, 0-1, 0,  0, htd33},
            ^~~
            static_cast<unsigned int>( )
huffmantable.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},
       ^~~
huffmantable.cpp:567:8: note: insert an explicit cast to silence this issue
  {14, 0-1, 0-1, 0,  0, htd33},
       ^~~
       static_cast<unsigned int>( )
huffmantable.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},
            ^~~
huffmantable.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:	Arch Linux
2018-01-05 11:56:53 +00:00

37 lines
923 B
Makefile

# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$
PORTNAME= smpeg
PORTVERSION= 0.4.4
PORTREVISION= 14
CATEGORIES= multimedia
MASTER_SITES= ftp://sunsite.auc.dk/pub/os/linux/loki/open-source/smpeg/ \
GENTOO
MAINTAINER= acm@FreeBSD.org
COMMENT= Free MPEG1 video player library with sound support
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
USES= compiler:features gmake libtool
USE_SDL= sdl
USE_LDCONFIG= yes
CONFIGURE_ENV= GLBASE="${LOCALBASE}" \
CC="${CXX}" REAL_CC="${CC}" \
SDL_CONFIG="${SDL_CONFIG}"
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/}
#If you want to try the opengl/gtk player (which doesn't seem to work)
#comment out the following line.
CONFIGURE_ARGS= --disable-opengl-player \
--disable-gtk-player \
--enable-mmx
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsmpeg.so
.include <bsd.port.mk>