187d82594d
This was originally introduced as a workaround to not require boost atomic support, but now it prefers GCC's atomic extensions regardless of what we do.
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.50 2023/07/20 21:20:31 nia Exp $
|
|
|
|
DISTNAME= taglib-1.13.1
|
|
PKGREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= https://taglib.github.io/releases/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://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++
|
|
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
|
|
CMAKE_ARGS+= -DWITH_ASF=ON
|
|
CMAKE_ARGS+= -DWITH_MP4=ON
|
|
|
|
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/bsd.prefs.mk"
|
|
|
|
.if ${PKGSRC_RUN_TEST:U:tl} == yes
|
|
TEST_TARGET= test
|
|
CMAKE_ARGS+= -DBUILD_TESTING=ON
|
|
.include "../../devel/cppunit/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DBUILD_TESTING=OFF
|
|
.endif
|
|
|
|
.include "../../mk/compiler.mk"
|
|
#
|
|
# depends on builtin functions which enabled with i486 and later with GCC.
|
|
#
|
|
.if ${OPSYS} == "NetBSD" && ${CC_VERSION:Mgcc-[4-9]*} && ${MACHINE_ARCH} == i386
|
|
GNU_ARCH.i386= i486
|
|
CFLAGS+= -march=i486
|
|
.endif
|
|
|
|
.include "../../devel/cmake/build.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|