2006-11-25 19:10:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2006/11/26 00:10:26 espie Exp $
|
2004-12-19 02:59:24 -05:00
|
|
|
|
2006-11-25 19:10:26 -05:00
|
|
|
COMMENT-main= "gtk+2 media player based on XMMS"
|
2004-12-19 02:59:24 -05:00
|
|
|
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
|
2006-11-25 19:10:26 -05:00
|
|
|
PKGNAME-main= bmp-$Vp9
|
2006-07-19 09:41:02 -04:00
|
|
|
PKGNAME-mp3= bmp-mp3-$Vp8
|
2006-11-25 19:10:26 -05:00
|
|
|
PKGNAME-vorbis= bmp-vorbis-$Vp8
|
2006-10-28 06:30:41 -04:00
|
|
|
SHARED_LIBS += beep 2.0 # .2.0
|
2004-12-19 02:59:24 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=beepmp/}
|
|
|
|
|
2006-07-19 09:41:02 -04:00
|
|
|
HOMEPAGE= http://bmp.beep-media-player.org/
|
2004-12-19 02:59:24 -05:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2005-08-16 14:22:26 -04:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
PATCH_LIST= patch-* gcc-*
|
|
|
|
.endif
|
|
|
|
|
2004-12-19 02:59:24 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2006-06-13 09:17:56 -04:00
|
|
|
WANTLIB= X11 Xext Xrender fontconfig freetype m z \
|
2006-09-18 07:40:06 -04:00
|
|
|
gmodule-2.0 atk-1.0 gobject-2.0 glitz png \
|
|
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0 cairo
|
2004-12-19 02:59:24 -05:00
|
|
|
|
2005-11-15 04:21:50 -05:00
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
|
2006-08-01 07:17:55 -04:00
|
|
|
LIB_DEPENDS= gdk_pixbuf-2.0.>=400.3,gdk-x11-2.0.>=400.3,gtk-x11-2.0.>=0.5::x11/gtk+2 \
|
|
|
|
glib-2.0.>=400.2,gthread-2.0.>=400.2::devel/glib2
|
2004-12-19 02:59:24 -05:00
|
|
|
|
2006-11-25 19:10:26 -05:00
|
|
|
MULTI_PACKAGES=-main
|
2004-12-19 02:59:24 -05:00
|
|
|
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
|
2006-11-25 19:10:26 -05:00
|
|
|
.if !${MULTI_PACKAGES:M-vorbis}
|
2004-12-19 02:59:24 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
|
|
|
.endif
|
|
|
|
|
2006-11-25 19:10:26 -05:00
|
|
|
LIB_DEPENDS-main=${LIB_DEPENDS} \
|
|
|
|
esd.>=2.34::audio/esound \
|
2006-08-01 12:20:46 -04:00
|
|
|
glade-2.0.>=0.4::devel/libglade2 \
|
|
|
|
xml2.>=9.0::textproc/libxml
|
2006-11-25 19:10:26 -05:00
|
|
|
LIB_DEPENDS-vorbis=${LIB_DEPENDS} \
|
|
|
|
vorbisfile.>=4.0,vorbis::audio/libvorbis
|
2005-01-02 13:57:26 -05:00
|
|
|
|
2006-11-25 19:10:26 -05:00
|
|
|
PERMIT_DISTFILES_CDROM-mp3= "patent issues"
|
|
|
|
PERMIT_DISTFILES_FTP-mp3= "patent issues"
|
|
|
|
|
|
|
|
LIB_DEPENDS-mp3=${LIB_DEPENDS} \
|
|
|
|
beep::${BUILD_PKGPATH}
|
|
|
|
|
|
|
|
WANTLIB-vorbis= ${WANTLIB} ogg
|
|
|
|
|
|
|
|
RUN_DEPENDS-vorbis= ::${BUILD_PKGPATH}
|
|
|
|
WANTLIB-main= ${WANTLIB} pthread ICE audiofile c SM
|
2004-12-19 02:59:24 -05:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/bmp-0.9.7
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--disable-alsa \
|
|
|
|
--disable-oss
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|