svn commit: r486017 - head/multimedia/smpeg
Mark Linimon
linimon at FreeBSD.org
Tue Nov 27 16:14:39 UTC 2018
Author: linimon
Date: Tue Nov 27 16:14:38 2018
New Revision: 486017
URL: https://svnweb.freebsd.org/changeset/ports/486017
Log:
Base gcc doesn't support -Wno-error-narrowing flag. Add it only when
the compiler used is Clang.
PR: 233407
Submitted by: Piotr Kubaj
Approved by: portmgr (tier-2 blanket)
Modified:
head/multimedia/smpeg/Makefile
Modified: head/multimedia/smpeg/Makefile
==============================================================================
--- head/multimedia/smpeg/Makefile Tue Nov 27 16:10:16 2018 (r486016)
+++ head/multimedia/smpeg/Makefile Tue Nov 27 16:14:38 2018 (r486017)
@@ -14,7 +14,7 @@ COMMENT= Free MPEG1 video player library with sound su
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= gmake libtool:build
+USES= compiler gmake libtool:build
USE_SDL= sdl
USE_LDCONFIG= yes
@@ -27,7 +27,8 @@ CONFIGURE_ENV= GLBASE="${LOCALBASE}" \
CONFIGURE_ARGS= --disable-opengl-player \
--disable-gtk-player \
--enable-mmx
-CFLAGS+= -Wno-error-narrowing
+CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
+CFLAGS_clang= -Wno-error-narrowing
LDFLAGS_i386= -Wl,-znotext
MAKE_ARGS= LIBTOOL=${LOCALBASE}/bin/libtool
INSTALL_TARGET= install-strip
More information about the svn-ports-all
mailing list