diff --git a/multimedia/smpeg/Makefile b/multimedia/smpeg/Makefile index c6652510a7cb..5a031bcebe42 100644 --- a/multimedia/smpeg/Makefile +++ b/multimedia/smpeg/Makefile @@ -1,33 +1,33 @@ PORTNAME= smpeg PORTVERSION= 0.4.4 -PORTREVISION= 16 +PORTREVISION= 17 CATEGORIES= multimedia MASTER_SITES= GENTOO MAINTAINER= acm@FreeBSD.org COMMENT= Free MPEG1 video player library with sound support WWW= https://www.lokigames.com/development/smpeg.php3 LICENSE= LGPL20 LICENSE_FILE= ${WRKSRC}/COPYING USES= compiler gmake libtool:build sdl USE_SDL= sdl USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ENV= GLBASE="${LOCALBASE}" \ - CC="${CXX}" REAL_CC="${CC}" \ + CC="${CC}" CXX="${CXX} -std=gnu++98" \ SDL_CONFIG="${SDL_CONFIG}" #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 CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} CFLAGS_clang= -Wno-c++11-narrowing LDFLAGS_i386= -Wl,-znotext MAKE_ARGS= LIBTOOL=${LOCALBASE}/bin/libtool INSTALL_TARGET= install-strip .include diff --git a/multimedia/smpeg/files/patch-configure b/multimedia/smpeg/files/patch-configure index d50e0a35b262..a433c14ea052 100644 --- a/multimedia/smpeg/files/patch-configure +++ b/multimedia/smpeg/files/patch-configure @@ -1,19 +1,11 @@ --- configure.orig 2001-04-24 19:25:46 UTC +++ configure @@ -1055,7 +1054,7 @@ cat > conftest.$ac_ext << EOF #line 1056 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes -@@ -2335,6 +2332,7 @@ rm -f conftest* - - CFLAGS="$CFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" -+CC="$REAL_CC" - - echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 - echo "configure:2341: checking for sqrt in -lm" >&5