summaryrefslogblamecommitdiff
path: root/audio/amarok-kde4/Makefile
blob: c3d7bb4b9d821df4c421a00d826bc12f199dce65 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                    
                     
                         
                                                   

                                   
                                

                                    
                                                
                                                      
 
                   
                 
                   
                          
                   
 

                                                                                  


                                                   
                                            

                                                             
                                                                       








                                                             
      
 
                            


                                     
                                              


                            
                       
                              
                                
     
                                                      
                       

      
                       






                                                       
                            
                                     
     

                                                       

      

                                

      



                                
                       



                              
                            

                                   

      

                                                                     
                                                               
                                                                  
 
               
                       
                                                          
                                                                                 
      
                            


                                                                               

             
                           

                             

                           
# 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
PORTVERSION=	1.3.9
CATEGORIES=	audio kde
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	mich@FreeBSD.org
COMMENT=	Media player for KDE

LIB_DEPENDS=	tag.5:${PORTSDIR}/audio/taglib \
		tunepimp:${PORTSDIR}/audio/libtunepimp

USE_BZIP2=	yes
USE_KDEBASE_VER=3
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:15
USE_SDL=	sdl

OPTIONS=	ARTS "aRts playback engine" on \
		GSTREAMER "GStreamer playback engine (includes aRts-output)" off \
		XINE "Xine playback engine" off \
		XMMS "XMMS visualizations" off \
		LIBVISUAL "libvisual support" off \
		OPENGL "OpenGL support" on \
		AMAZON "Amazon cover fetching support" on \
		MYSQL "Use MySQL as collection backend" off \
		POSTGRESQL "Use PostgreSQL as collection backend" off \

.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=""
.endif

.if !defined(WITH_GSTREAMER)
CONFIGURE_ARGS+=--without-gstreamer
PLIST_SUB+=	GSTREAMER="@comment "
.else
USE_GSTREAMER+=	mad vorbis flac musepack artsd
PLIST_SUB+=	GSTREAMER=""
.endif

.if !defined(WITH_XINE)
CONFIGURE_ARGS+=--without-xine
PLIST_SUB+=	XINE="@comment "
.else
LIB_DEPENDS+=	xine.15:${PORTSDIR}/multimedia/libxine
PLIST_SUB+=	XINE=""
.endif

.if !defined(WITH_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(WITH_LIBVISUAL)
PLIST_SUB+=	LIBVISUAL="@comment "
.else
LIB_DEPENDS+=	visual.0:${PORTSDIR}/graphics/libvisual
PLIST_SUB+=	LIBVISUAL=""
.endif

.if defined(WITHOUT_OPENGL)
CONFIGURE_ARGS+=--without-opengl
.endif

.if defined(WITHOUT_AMAZON)
CONFIGURE_ARGS+=--without-amazon
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=	yes
CONFIGURE_ARGS+=--enable-mysql
.endif

.if defined(WITH_POSTGRESQL)
USE_PGSQL=	yes
CONFIGURE_ARGS+=--enable-postgresql
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-O2||g'	${WRKSRC}/${CONFIGURE_SCRIPT}
	@${REINPLACE_CMD} -e 's|xx||g' ${WRKSRC}/po/Makefile.in
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${TOUCH}

post-configure:
.if !defined(WITH_XMMS)
	@${REINPLACE_CMD} -e '/XMMS /d' ${WRKSRC}/config.h
	@${REINPLACE_CMD} -e 's/xmmswrapper//g' ${WRKSRC}/amarok/src/vis/Makefile
.endif
.if !defined(WITH_LIBVISUAL)
	@${REINPLACE_CMD} -e '/LIBVISUAL /d' ${WRKSRC}/config.h
	@${REINPLACE_CMD} -e 's/libvisual//g' ${WRKSRC}/amarok/src/vis/Makefile
.endif

post-install:
.if defined(WITH_LIBVISUAL)
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>