[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / multimedia / xine-lib

File: [cvs.NetBSD.org] / pkgsrc / multimedia / xine-lib / Makefile (download)

Revision 1.155, Sun Aug 11 13:22:05 2019 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
Changes since 1.154: +2 -2 lines

Bump PKGREVISIONs for perl 5.30.0

# $NetBSD: Makefile,v 1.155 2019/08/11 13:22:05 wiz Exp $

PKGREVISION= 4
.include "Makefile.common"

COMMENT=		Multimedia player library

CONFLICTS+=		xine-xcb-[0-9]*

CONFIGURE_ARGS+=	--disable-v4l
CONFIGURE_ARGS+=	--disable-v4l2
CONFIGURE_ARGS+=	--disable-real-codecs
CONFIGURE_ARGS+=	--disable-aalib
CONFIGURE_ARGS+=	--disable-mlib
CONFIGURE_ARGS+=	--disable-vaapi

SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_FILES.oss=	src/audio_out/audio_oss_out.c
SUBST_SED.oss=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
SUBST_SED.oss+=		-e "s,\"dsp\",\"audio\",g"
.endif
SUBST_MESSAGE.oss=	Fixing hardcoded audio device.

SUBST_CLASSES+=		w32path
SUBST_STAGE.w32path=	pre-configure
SUBST_FILES.w32path=	src/libw32dll/common.c
SUBST_SED.w32path=	-e "s,@W32PATH@,${PREFIX}/lib/win32,"
SUBST_MESSAGE.w32path=	Fixing win32 dll path.

# Needed to fix build problems under, at least, NetBSD/amd64.
BUILDLINK_API_DEPENDS.libcdio+=	libcdio>=0.75

.if ${OPSYS} == "FreeBSD"
PLIST_VARS+=	vidix
.if ${MACHINE_ARCH} == "i386"
PLIST.vidix=	yes
.endif
.endif

PLIST_VARS+=	qtw32
.if empty(MACHINE_PLATFORM:MDarwin-*-i386)
PLIST.qtw32=	yes
.endif

.if ${OPSYS} == "SunOS"
PLIST_VARS+=	oss
.if ${OS_VERSION} == "5.11"
PLIST.oss=	yes
.endif
.endif

CPPFLAGS.SunOS+=	-D__u32=uint32_t -DHAVE_SYSI86 -DHAVE_MMX_FALSE
LDFLAGS.SunOS+=		-lresolv

.include "options.mk"

# flac is supported internally; don't know what the plugin is good for
# but until autodetection is turned off, force external flac for now.
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/faad2/buildlink3.mk"
.include "../../audio/liba52/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
#.include "../../audio/libmpcdec/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/speex/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
# these could be options or (better) extra plugin packages
#.include "../../devel/SDL/buildlink3.mk"
#.include "../../graphics/ImageMagick/buildlink3.mk"
#.include "../../graphics/Mesa/buildlink3.mk"
CONFIGURE_ARGS+=	--disable-opengl
#.include "../../graphics/aalib/buildlink3.mk"
.include "../../graphics/mng/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../misc/libcdio/buildlink3.mk"
CONFIGURE_ARGS+=	--with-external-dvdnav
.include "../../multimedia/libdvdnav/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../sysutils/vcdimager/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"