6171a0a1cf
(c++11), boost, gcc, mac, win) The Latest boost update have broken the boost atomic check so it succeeds if boost is installed (even though not buildlinked) Since pkgsrc has a minimum gcc version of 2.8, we can just add CXXFLAGS+= -std=c++11 and have taglib pickup the std atomics, which avoids the boost atomic detect issue, and is arguably better anyway bump pkgrevision
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2016/05/14 15:01:05 abs Exp $
|
|
|
|
DISTNAME= taglib-1.11
|
|
PKGREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://taglib.github.io/releases/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://taglib.github.io/
|
|
COMMENT= Library for accessing id tags in various media files
|
|
LICENSE= gnu-lgpl-v2.1 OR mpl-1.1
|
|
|
|
USE_LANGUAGES= c c++
|
|
CXXFLAGS+= -std=c++11
|
|
|
|
USE_CMAKE= YES
|
|
CMAKE_ARGS= -DWITH_MP4=ON -DWITH_ASF=ON
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
|
|
USE_LIBTOOL= YES
|
|
|
|
PKGCONFIG_OVERRIDE= bindings/c/taglib_c.pc.cmake taglib.pc.cmake
|
|
REPLACE_SH= taglib-config.cmake
|
|
|
|
SUBST_CLASSES+= pc
|
|
SUBST_FILES.pc= taglib-config.cmake
|
|
SUBST_STAGE.pc= pre-configure
|
|
SUBST_SED.pc= -e 's|-L\([ ]*[^ ]*\)|${COMPILER_RPATH_FLAG}\1 -L\1|g'
|
|
SUBST_MESSAGE.pc= Fixing rpath in taglib-config.
|
|
|
|
.include "../../mk/compiler.mk"
|
|
#
|
|
# depends on builtin functions which enabled with i486 and later with GCC.
|
|
#
|
|
.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-[4-9]*) && !empty(MACHINE_ARCH:Mi386)
|
|
GNU_ARCH.i386= i486
|
|
CFLAGS+= -march=i486
|
|
.endif
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|