pkgsrc/multimedia/xine-lib/Makefile
reed 3dd6c5696d Add PLIST.FreeBSD and three patches to make it build for FreeBSD.
Add patch-ak and patch-an to support -enable-fpic with recent
versions of gcc.  From xine cvs.

Bump PKGREVISION just in case these patch-ak and patch-an change
functionality.

Tested builds and running on FreeBSD 5.4-STABLE with gcc 3.4.2 and
FreeBSD 5.3, and Linux 2.6.9 with gcc 3.3.5. And tested build
and install on NetBSD 1.6.2_STABLE.

Okayed by jmmv a couple weeks ago.
2005-05-26 22:47:22 +00:00

49 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2005/05/26 22:47:22 reed Exp $
.include "Makefile.common"
PKGREVISION= 2
COMMENT= Multimedia player library
BUILDLINK_DEPENDS.vcdimager+= vcdimager>=0.7.20nb1
SUBST_CLASSES+= oss w32path
SUBST_STAGE.oss= post-patch
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_STAGE.w32path= post-patch
SUBST_FILES.w32path= src/libw32dll/wine/module.c
SUBST_SED.w32path= -e "s,@W32PATH@,${PREFIX}/lib/win32,"
SUBST_MESSAGE.w32path= "Fixing win32 dll path."
# This needs to come before checking the values, otherwise the builtin.mk
# files are not doing its work.
.include "../../graphics/Mesa/buildlink3.mk"
USE_BUILTIN.MesaLib?= no
USE_BUILTIN.glu?= no
.if !empty(USE_BUILTIN.MesaLib:M[Yy][Ee][Ss]) && \
!empty(USE_BUILTIN.glu:M[Yy][Ee][Ss])
PLIST_SUBST+= OPENGL_PLUGIN=
.else
PLIST_SUBST+= OPENGL_PLUGIN='@comment '
.endif
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/speex/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/aalib/buildlink3.mk"
.include "../../graphics/mng/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../misc/libcdio/buildlink3.mk"
.include "../../sysutils/vcdimager-devel/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"