pkgsrc/multimedia/libmediainfo/Makefile
rillig 4f4f64fdce mark packages that fail with -Werror=char-subscripts
These packages are susceptible to bugs when confronted with non-ASCII
characters.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182.

It takes some time to analyze and fix these individually, therefore they
are only marked as "needs work".
2020-05-20 06:09:03 +00:00

46 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2020/05/20 06:09:05 rillig Exp $
.include "../../multimedia/mediainfo/Makefile.common"
PKGNAME= libmediainfo-${MIVER}
COMMENT= MediaInfoLib, support library for MediaInfo program
LICENSE= zlib
USE_TOOLS+= autoconf automake autoreconf gmake pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_DIRS+= MediaInfoLib/Project/GNU/Library
REPLACE_SH= MediaInfoLib/Project/GNU/Library/libmediainfo-config.in
PKGCONFIG_OVERRIDE+= MediaInfoLib/Project/GNU/Library/libmediainfo.pc.in
.include "../../mk/bsd.prefs.mk"
# Enable shared library
.if empty(SHLIB_TYPE:Mnone)
CONFIGURE_ARGS+= --enable-shared
.endif
INSTALLATION_DIRS+= bin lib/pkgconfig
# ../../../Source/ThirdParty/base64/base64.h: In function 'std::string Base64::encode(const string&)':
# ../../../Source/ThirdParty/base64/base64.h:53:41: error: array subscript has type 'char'
# sResult.append(1, sBase64Table[cCode]);
# Maybe fix this later.
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
pre-configure:
cd ${WRKSRC}/${CONFIGURE_DIRS:Q} && autoreconf -i
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/${CONFIGURE_DIRS:Q}/libmediainfo-config \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${CONFIGURE_DIRS:Q}/libmediainfo.pc \
${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/libzen/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"