pkgsrc/multimedia/xine-lib/Makefile.common
jlam 7820875fff Remove the abuse of buildlink that was pkg-config/buildlink3.mk. That
file's sole purpose was to provide a dependency on pkg-config and set
some environment variables.  Instead, turn pkg-config into a "tool"
in the tools framework, where the pkg-config wrapper automatically
adds PKG_CONFIG_LIBDIR to the environment before invoking the real
pkg-config.

For all package Makefiles that included pkg-config/buildlink3.mk, remove
that inclusion and replace it with USE_TOOLS+=pkg-config.
2005-08-10 20:56:10 +00:00

47 lines
1.3 KiB
Text

# $NetBSD: Makefile.common,v 1.25 2005/08/10 20:56:21 jlam Exp $
#
DISTNAME= xine-lib-1.0.2
XINE_PKGNAME= xine-lib-1.0.2
PKGNAME?= ${XINE_PKGNAME}
CATEGORIES?= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xine/}
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://xinehq.de/
DISTINFO_FILE= ${.CURDIR}/../../multimedia/xine-lib/distinfo
PATCHDIR= ${.CURDIR}/../../multimedia/xine-lib/patches
BUILD_USES_MSGFMT= YES
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= libtool libtool-nofpic
PKGCONFIG_OVERRIDE= misc/libxine.pc.in
USE_TOOLS+= autoconf gmake pkg-config
CONFIGURE_ARGS+= --with-w32-path='${PREFIX}/lib/win32'
CONFIGURE_ARGS+= --without-external-ffmpeg --disable-ffmpegtest
CONFIGURE_ENV+= have_libpng="yes"
CONFIGURE_ENV+= PNG_CFLAGS="-I${PREFIX}/include"
CONFIGURE_ENV+= PNG_LIBS="-L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lpng"
BUILD_ENV+= "mkdir_p"="mkdir -p"
.include "../../mk/bsd.prefs.mk"
.if !exists(${X11BASE}/lib/libXv.so)
PLIST_SUBST+= HAVE_XV="@comment "
.else
CONFIGURE_ARGS+= --with-xv-path='${X11BASE}/lib'
PLIST_SUBST+= HAVE_XV=
.endif
pre-configure:
cd ${WRKSRC} && autoconf
.include "../../converters/libiconv/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"