2004-03-11 21:06:37 +00:00
|
|
|
# New ports collection makefile for: amarok
|
|
|
|
# Date created: Tue Feb 24 02:21:14 CET 2004
|
|
|
|
# Whom: Markus Brueffer <markus@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= amarok
|
2004-10-13 22:58:29 +00:00
|
|
|
PORTVERSION= 1.1.1
|
2004-11-07 22:37:47 +00:00
|
|
|
PORTREVISION= 1
|
2004-03-11 21:06:37 +00:00
|
|
|
CATEGORIES= audio kde
|
2004-06-17 13:43:11 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2004-03-11 21:06:37 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= markus@FreeBSD.org
|
|
|
|
COMMENT= Media player for KDE
|
|
|
|
|
2004-10-13 22:58:29 +00:00
|
|
|
LIB_DEPENDS= tag.4:${PORTSDIR}/audio/taglib
|
2004-03-11 21:06:37 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_KDELIBS_VER=3
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-10-13 22:58:29 +00:00
|
|
|
OPTIONS= ARTS "aRts support" off \
|
|
|
|
GSTREAMER "GStreamer support" on \
|
|
|
|
XINE "xine support" off \
|
2004-06-17 13:43:11 +00:00
|
|
|
XMMS "XMMS visualizations" on \
|
|
|
|
OPENGL "OpenGL support" on \
|
2004-10-13 22:58:29 +00:00
|
|
|
AMAZON "Amazon cover fetching support" on
|
2004-06-17 13:43:11 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_ARTS)
|
|
|
|
CONFIGURE_ARGS+=--without-arts
|
|
|
|
PLIST_SUB+= ARTS="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= artsgui:${PORTSDIR}/multimedia/kdemultimedia3
|
|
|
|
PLIST_SUB+= ARTS=""
|
2004-03-11 21:06:37 +00:00
|
|
|
.endif
|
2004-06-17 13:43:11 +00:00
|
|
|
|
|
|
|
.if defined(WITHOUT_GSTREAMER)
|
|
|
|
CONFIGURE_ARGS+=--without-gstreamer
|
|
|
|
PLIST_SUB+= GSTREAMER="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= gstplay-0.8.1:${PORTSDIR}/multimedia/gstreamer-plugins
|
|
|
|
PLIST_SUB+= GSTREAMER=""
|
|
|
|
.endif
|
|
|
|
|
2004-10-13 22:58:29 +00:00
|
|
|
.if defined(WITHOUT_XINE)
|
|
|
|
CONFIGURE_ARGS+=--without-xine
|
|
|
|
PLIST_SUB+= XINE="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= xine.9:${PORTSDIR}/multimedia/libxine
|
|
|
|
PLIST_SUB+= XINE=""
|
|
|
|
.endif
|
|
|
|
|
2004-06-17 13:43:11 +00:00
|
|
|
.if defined(WITHOUT_XMMS)
|
|
|
|
PLIST_SUB+= XMMS="@comment "
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= xmms-config:${PORTSDIR}/multimedia/xmms
|
|
|
|
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
|
|
|
|
PLIST_SUB+= XMMS=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_OPENGL)
|
|
|
|
CONFIGURE_ARGS+=--without-opengl
|
2004-03-11 21:06:37 +00:00
|
|
|
.endif
|
|
|
|
|
2004-10-13 22:58:29 +00:00
|
|
|
.if defined(WITHOUT_AMAZON)
|
|
|
|
CONFIGURE_ARGS+=--without-amazon
|
|
|
|
.endif
|
|
|
|
|
2004-03-11 21:06:37 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-10-13 22:58:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|xx||g' ${WRKSRC}/po/Makefile.in
|
2004-03-11 21:06:37 +00:00
|
|
|
|
2004-06-17 13:43:11 +00:00
|
|
|
post-configure:
|
|
|
|
.if defined(WITHOUT_XMMS)
|
|
|
|
@${REINPLACE_CMD} -e '/XMMS /d' ${WRKSRC}/config.h
|
2004-10-13 22:58:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/xmmswrapper//g' ${WRKSRC}/amarok/src/vis/Makefile
|
2004-06-17 13:43:11 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|