pkgsrc/multimedia/libmediainfo/Makefile
2015-01-10 20:33:49 +00:00

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2015/01/10 20:35:24 wiz Exp $
.include "../../multimedia/mediainfo/Makefile.common"
PKGNAME= libmediainfo-${MIVER}
COMMENT= MediaInfoLib, support library for MediaInfo program
LICENSE= zlib
USE_TOOLS+= autoconf automake bash:run gmake pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIG_SHELL= bash
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(_OPSYS_SHLIB_TYPE:Mnone)
CONFIGURE_ARGS+= --enable-shared
.endif
INSTALLATION_DIRS+= bin lib/pkgconfig
pre-configure:
cd ${WRKSRC}/${CONFIGURE_DIRS} && autoreconf -i
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/${CONFIGURE_DIRS}/libmediainfo-config \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${CONFIGURE_DIRS}/libmediainfo.pc \
${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/libzen/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"