2003-11-13 20:54:51 +01:00
|
|
|
# New ports collection makefile for: beep
|
|
|
|
# Date created: Thu Nov 6 19:24:01 CET 2003
|
|
|
|
# Whom: Miguel Mendez <flynn@energyhq.es.eu.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= beep-media-player
|
2004-12-11 20:05:11 +01:00
|
|
|
PORTVERSION= 0.9.7
|
2004-12-12 21:36:33 +01:00
|
|
|
PORTREVISION= 1
|
2004-02-08 09:08:09 +01:00
|
|
|
PORTEPOCH= 1
|
2003-11-13 20:54:51 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2004-02-08 09:08:09 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= beepmp
|
2004-12-11 20:05:11 +01:00
|
|
|
DISTNAME= bmp-${PORTVERSION}
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2004-03-09 19:52:32 +01:00
|
|
|
MAINTAINER= flynn@energyhq.es.eu.org
|
2003-11-13 20:54:51 +01:00
|
|
|
COMMENT= GTK2 mp3 player
|
|
|
|
|
2004-08-25 17:09:26 +02:00
|
|
|
USE_GNOME= gtk20 libglade2
|
2003-11-13 20:54:51 +01:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_REINPLACE= yes
|
2004-07-31 23:54:29 +02:00
|
|
|
USE_LIBTOOL_VER=15
|
2004-08-25 17:09:26 +02:00
|
|
|
LIBTOOLFILES= configure
|
2003-11-13 20:54:51 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-12-12 21:36:33 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lstdc++" \
|
2003-11-13 20:54:51 +01:00
|
|
|
INPUT_PLUGINS="${INPUT_PLUGINS}" \
|
|
|
|
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
|
|
|
|
VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
|
2004-02-08 09:08:09 +01:00
|
|
|
MAN1= beep-media-player.1
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
INPUT_PLUGINS= cdaudio,mpg123
|
|
|
|
OUTPUT_PLUGINS= OSS
|
2003-11-15 03:24:06 +01:00
|
|
|
VISUALIZATION_PLUGINS= blur_scope
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
PLIST_SUB= DATADIR="share"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
|
|
|
|
#.if !defined(WITHOUT_MIKMOD)
|
|
|
|
#LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
|
|
|
#INPUT_PLUGINS+= mikmod
|
|
|
|
#PLIST_SUB+= MIKMODPLUGIN:=""
|
|
|
|
#.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mikmod
|
|
|
|
PLIST_SUB+= MIKMODPLUGIN:="@comment "
|
|
|
|
#.endif
|
|
|
|
|
2003-11-19 20:01:55 +01:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
2003-12-20 17:37:57 +01:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2003-11-19 20:01:55 +01:00
|
|
|
INPUT_PLUGINS+= vorbis
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:=""
|
|
|
|
.else
|
2003-11-13 20:54:51 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:="@comment "
|
2003-11-19 20:01:55 +01:00
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
USE_GNOME+= esound
|
|
|
|
OUTPUT_PLUGINS+= esd
|
|
|
|
PLIST_SUB+= ESDPLUGIN:=""
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -esound
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
PLIST_SUB+= ESDPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-07-31 23:54:29 +02:00
|
|
|
.if ${ARCH} != "i386"
|
2003-11-13 20:54:51 +01:00
|
|
|
WITHOUT_3DNOW= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
CONFIGURE_ARGS+= --enable-3dnow
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021
|
|
|
|
post-extract:
|
|
|
|
(cd ${WRKSRC}/Input/mpg123 && ${MV} decode_i586.s decode_i586.S && \
|
|
|
|
cd ${WRKSRC}/Visualization/blur_scope && ${MV} blur_8.s blur_8.S);
|
|
|
|
${REINPLACE_CMD} -e 's:\.s :\.S :g' ${WRKSRC}/Input/mpg123/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's:blur_8.s:blur_8.S:g' \
|
|
|
|
${WRKSRC}/Visualization/blur_scope/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
.if !defined(WITHOUT_MIKMOD) || !defined(WITHOUT_VORBIS) || ( !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 ) || ${HAVE_GNOME:Mesound}!=""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
@${ECHO_MSG} "You can disable 3DNow! optimized decoding routines by defining WITHOUT_3DNOW."
|
|
|
|
.endif
|
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
@${ECHO_MSG} "You can disable support for esound by defining WITHOUT_GNOME=esound."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-07-31 23:54:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2003-11-13 20:54:51 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|{datadir}/locale|{prefix}/share/locale|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/beep/Skins
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|