2012-11-02 15:08:15 +01:00
|
|
|
# Created by: Miguel Mendez <flynn@energyhq.es.eu.org>
|
2003-11-13 20:54:51 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= beep-media-player
|
2006-05-07 23:02:45 +02:00
|
|
|
PORTVERSION= 0.9.7.1
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 11
|
2004-02-08 09:08:09 +01:00
|
|
|
PORTEPOCH= 1
|
2005-10-17 21:11:36 +02:00
|
|
|
CATEGORIES= multimedia audio ipv6
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/beepmp/bmp/${PORTVERSION}
|
2004-12-11 20:05:11 +01:00
|
|
|
DISTNAME= bmp-${PORTVERSION}
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-12-10 02:20:16 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-15 13:12:25 +02:00
|
|
|
COMMENT= GTK2 multimedia player
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
LIB_DEPENDS= id3-3.8:${PORTSDIR}/audio/id3lib
|
|
|
|
|
|
|
|
USE_PKGCONFIG= build
|
|
|
|
USE_GNOME= gnomehack gtk20 libglade2 desktopfileutils
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-11-13 20:54:51 +01:00
|
|
|
USE_GMAKE= yes
|
2006-08-07 13:46:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-11-02 15:08:15 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lstdc++
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
MAN1= beep-media-player.1
|
2012-07-16 13:45:41 +02:00
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
OPTIONS_MULTI= OUTPUT
|
|
|
|
OPTIONS_MULTI_OUTPUT= ALSA ESOUND OSS
|
|
|
|
OPTIONS_DEFINE= NLS GCONF GNOMEVFS2 IPV6 VORBIS
|
|
|
|
OPTIONS_DEFAULT= OSS VORBIS
|
2012-06-29 14:42:04 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2012-11-02 15:08:15 +01:00
|
|
|
PATCH_SITES+= http://ns.ael.ru/ports/distfiles/
|
2005-10-17 21:11:36 +02:00
|
|
|
PATCHFILES+= bmp-0.9.7-ipv6-simple.diff
|
|
|
|
PATCH_DIST_STRIP+= -p1
|
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MGCONF}
|
|
|
|
USE_GNOME+= gconf2
|
|
|
|
CONFIGURE_ARGS+=--enable-gconf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGNOMEVFS2}
|
|
|
|
USE_GNOME+= gnomevfs2
|
|
|
|
CONFIGURE_ARGS+=--enable-gnome-vfs
|
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MVORBIS}
|
2012-11-02 15:08:15 +01:00
|
|
|
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
|
|
|
|
PLIST_SUB+= VORBIS=""
|
2003-11-19 20:01:55 +01:00
|
|
|
.else
|
2012-11-02 15:08:15 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-vorbis
|
|
|
|
PLIST_SUB+= VORBIS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
|
|
|
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
|
|
|
|
PLIST_SUB+= ALSA=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-alsa
|
|
|
|
PLIST_SUB+= ALSA="@comment "
|
2003-11-19 20:01:55 +01:00
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MESOUND}
|
2003-11-13 20:54:51 +01:00
|
|
|
USE_GNOME+= esound
|
2012-11-02 15:08:15 +01:00
|
|
|
PLIST_SUB+= ESOUND=""
|
2003-11-13 20:54:51 +01:00
|
|
|
.else
|
2012-11-02 15:08:15 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
|
|
|
PLIST_SUB+= ESOUND="@comment "
|
2003-11-13 20:54:51 +01:00
|
|
|
.endif
|
2012-11-02 15:08:15 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOSS}
|
|
|
|
PLIST_SUB+= OSS=""
|
2003-11-13 20:54:51 +01:00
|
|
|
.else
|
2012-11-02 15:08:15 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-oss
|
|
|
|
PLIST_SUB+= OSS="@comment "
|
2003-11-13 20:54:51 +01:00
|
|
|
.endif
|
|
|
|
|
2012-11-02 15:08:15 +01:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
.if ${MACHINE_CPU:M3dnow} || ${MACHINE_CPU:Mmmx}
|
|
|
|
CONFIGURE_ARGS+=--enable-simd
|
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2012-11-02 15:08:15 +01:00
|
|
|
#Fix asm comments and mnemonics for clang
|
|
|
|
@${FIND} ${WRKSRC} -name "*.s" -type f | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's|\/|#|g' -e 's|fist |fists |g' -e 's|fistp |fistps |g'
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
post-install:
|
2005-02-25 16:12:06 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/bmp/General
|
2003-11-13 20:54:51 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/beep/Skins
|
2006-05-03 09:39:30 +02:00
|
|
|
-@update-desktop-database
|
2003-11-13 20:54:51 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.mk>
|