2005-07-10 18:43:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2005/07/10 22:43:11 alek Exp $
|
2004-12-19 02:59:24 -05:00
|
|
|
|
|
|
|
COMMENT= "gtk+2 media player based on XMMS"
|
|
|
|
COMMENT-mp3= "MP3 input plugin for bmp"
|
|
|
|
COMMENT-vorbis= "Ogg Vorbis input plugin for bmp"
|
2004-12-22 07:28:50 -05:00
|
|
|
V= 0.9.7
|
|
|
|
DISTNAME= bmp-$V
|
2005-07-10 18:43:11 -04:00
|
|
|
PKGNAME= bmp-$Vp2
|
|
|
|
PKGNAME-mp3= bmp-mp3-$Vp2
|
|
|
|
PKGNAME-vorbis= bmp-vorbis-$Vp2
|
2004-12-19 02:59:24 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=beepmp/}
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.sosdg.org/~larne/w/BMP_Homepage
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2005-07-10 18:43:11 -04:00
|
|
|
WANTLIB= X11 Xft Xrender fontconfig freetype m
|
2004-12-19 02:59:24 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
|
|
|
|
LIB_DEPENDS= gdk_pixbuf-2.0.400.3,gdk-x11-2.0.400.3::x11/gtk+2 \
|
|
|
|
gtk-x11-2.0.0.5::x11/gtk+2 \
|
2005-01-02 13:57:26 -05:00
|
|
|
glib-2.0.400.2,gthread-2.0.400.2::devel/glib2
|
2004-12-22 07:28:50 -05:00
|
|
|
WANTLIB+= gmodule-2.0.0.0 pangoxft-1.0.0.0 atk-1.0.0.0 gobject-2.0.0.0 \
|
2005-01-02 13:57:26 -05:00
|
|
|
pangox-1.0.0.0 pango-1.0.0.0 pangoft2-1.0.0.0
|
2004-12-19 02:59:24 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES=
|
|
|
|
PSEUDO_FLAVORS= no_mp3 no_vorbis
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_mp3}
|
|
|
|
MULTI_PACKAGES+=-mp3
|
|
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_vorbis}
|
|
|
|
MULTI_PACKAGES+=-vorbis
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${MULTI_PACKAGES:M-mp3}
|
|
|
|
CONFIGURE_ARGS+=--disable-mp3
|
|
|
|
.endif
|
|
|
|
.if ${MULTI_PACKAGES:M-vorbis}
|
2004-12-22 07:28:50 -05:00
|
|
|
. if !defined(PACKAGING)
|
2004-12-19 02:59:24 -05:00
|
|
|
LIB_DEPENDS+= vorbisfile.4.0::audio/libvorbis
|
2004-12-22 07:28:50 -05:00
|
|
|
. endif
|
2004-12-19 02:59:24 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2005-01-02 13:57:26 -05:00
|
|
|
.if $(SUBPACKAGE) != "-mp3"
|
|
|
|
LIB_DEPENDS+= esd.2.34::audio/esound \
|
|
|
|
glade-2.0.0.4::devel/libglade2 \
|
|
|
|
xml2.9.0::textproc/libxml
|
|
|
|
.endif
|
|
|
|
|
2004-12-19 02:59:24 -05:00
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-mp3"
|
|
|
|
PERMIT_DISTFILES_CDROM= "patent issues"
|
|
|
|
PERMIT_DISTFILES_FTP= "patent issues"
|
2004-12-22 07:28:50 -05:00
|
|
|
LIB_DEPENDS+= beep::audio/bmp
|
|
|
|
. elif ${SUBPACKAGE} == "-vorbis"
|
2005-01-02 13:57:26 -05:00
|
|
|
LIB_DEPENDS= vorbisfile.4.0,vorbis::audio/libvorbis
|
2004-12-22 07:28:50 -05:00
|
|
|
WANTLIB+= gthread-2.0.0.0 gtk-x11-2.0.0.0 gdk-x11-2.0.0.0 glib-2.0.0.0 \
|
|
|
|
ogg gdk_pixbuf-2.0.0.0
|
2004-12-19 02:59:24 -05:00
|
|
|
RUN_DEPENDS= ::audio/bmp
|
2005-01-02 13:57:26 -05:00
|
|
|
. else
|
|
|
|
WANTLIB+= pthread ICE audiofile c SM z
|
2004-12-19 02:59:24 -05:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/bmp-0.9.7
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--disable-alsa \
|
|
|
|
--disable-oss
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|