pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/mpg123 use c99 to fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1aadb84ac90
branches:  trunk
changeset: 356239:f1aadb84ac90
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Fri Dec 23 13:50:03 2016 +0000

description:
use c99 to fix build on SunOS

diffstat:

 audio/mpg123/Makefile.common |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r f3343784f69a -r f1aadb84ac90 audio/mpg123/Makefile.common
--- a/audio/mpg123/Makefile.common      Fri Dec 23 09:46:37 2016 +0000
+++ b/audio/mpg123/Makefile.common      Fri Dec 23 13:50:03 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.41 2016/12/18 22:58:34 adam Exp $
+# $NetBSD: Makefile.common,v 1.42 2016/12/23 13:50:03 wiedi Exp $
 #
 # used by audio/mpg123-arts/Makefile
 # used by audio/mpg123-esound/Makefile
@@ -18,6 +18,7 @@
 HOMEPAGE=      http://www.mpg123.org/
 COMMENT?=      Contains the ${MPG123_MODULE} module for mpg123
 
+USE_LANGUAGES=         c99
 USE_LIBTOOL?=          yes
 USE_TOOLS+=            pkg-config gmake
 GNU_CONFIGURE?=                yes
@@ -27,6 +28,8 @@
 
 DISTINFO_FILE=         ${.CURDIR}/../../audio/mpg123/distinfo
 
+CPPFLAGS.SunOS+=       -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+
 .if !defined(MPG123_BUILDING_BASE)
 INSTALLATION_DIRS+=    lib/mpg123
 LIBS+=                 -lmpg123



Home | Main Index | Thread Index | Old Index