2004-03-11 22:06:37 +01: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
|
2006-08-02 14:09:59 +02:00
|
|
|
PORTVERSION= 1.4.1
|
2004-03-11 22:06:37 +01:00
|
|
|
CATEGORIES= audio kde
|
2004-06-17 15:43:11 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2004-03-11 22:06:37 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2005-07-19 16:10:20 +02:00
|
|
|
MAINTAINER= mich@FreeBSD.org
|
2004-03-11 22:06:37 +01:00
|
|
|
COMMENT= Media player for KDE
|
|
|
|
|
2005-08-31 15:34:15 +02:00
|
|
|
LIB_DEPENDS= tag.5:${PORTSDIR}/audio/taglib \
|
2006-08-02 14:09:59 +02:00
|
|
|
tunepimp.3:${PORTSDIR}/audio/libtunepimp-old \
|
2006-07-13 18:20:10 +02:00
|
|
|
mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
|
|
|
|
xine.15:${PORTSDIR}/multimedia/libxine
|
2004-11-30 23:40:26 +01:00
|
|
|
|
2006-08-02 14:09:59 +02:00
|
|
|
MIN_OPTIONS_VER= ${PORTNAME}-1.4.1
|
2006-07-03 17:41:32 +02:00
|
|
|
|
2004-03-11 22:06:37 +01:00
|
|
|
USE_BZIP2= yes
|
2005-04-22 04:14:05 +02:00
|
|
|
USE_KDEBASE_VER=3
|
2004-03-11 22:06:37 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-26 02:44:08 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-02-06 19:27:52 +01:00
|
|
|
USE_SDL= sdl
|
2006-07-03 16:44:38 +02:00
|
|
|
USE_RUBY= yes
|
2004-03-11 22:06:37 +01:00
|
|
|
|
2006-07-13 18:20:10 +02:00
|
|
|
OPTIONS= GPOD "iPod support" on \
|
2005-04-12 01:16:39 +02:00
|
|
|
XMMS "XMMS visualizations" off \
|
2004-06-17 15:43:11 +02:00
|
|
|
OPENGL "OpenGL support" on \
|
2005-04-12 01:16:39 +02:00
|
|
|
AMAZON "Amazon cover fetching support" on \
|
|
|
|
MYSQL "Use MySQL as collection backend" off \
|
2005-09-21 12:13:59 +02:00
|
|
|
POSTGRESQL "Use PostgreSQL as collection backend" off \
|
2004-06-17 15:43:11 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-08-02 14:09:59 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-amarok_src_expression.h
|
|
|
|
.endif
|
|
|
|
|
2006-07-03 16:44:38 +02:00
|
|
|
CONFIGURE_ARGS+=--without-exscalibar \
|
|
|
|
--with-mp4v2 \
|
2006-08-02 14:09:59 +02:00
|
|
|
--with-mp4v2-dir=${PREFIX} \
|
|
|
|
--without-libvisual
|
2004-06-17 15:43:11 +02:00
|
|
|
|
2006-07-03 16:44:38 +02:00
|
|
|
.if !defined(WITH_GPOD)
|
2006-07-04 10:13:29 +02:00
|
|
|
PLIST_SUB+= GPOD="@comment "
|
2006-07-03 16:44:38 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= gpod.302:${PORTSDIR}/audio/libgpod
|
|
|
|
CONFIGURE_ARGS+=--with-libgpod
|
|
|
|
PLIST_SUB+= GPOD=""
|
|
|
|
.endif
|
|
|
|
|
2005-10-10 18:02:17 +02:00
|
|
|
.if !defined(WITH_XMMS)
|
2004-06-17 15:43:11 +02:00
|
|
|
PLIST_SUB+= XMMS="@comment "
|
2006-07-03 16:44:38 +02:00
|
|
|
CONFIGURE_ARGS+=--without-xmms
|
2004-06-17 15:43:11 +02:00
|
|
|
.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 22:06:37 +01:00
|
|
|
.endif
|
|
|
|
|
2004-10-14 00:58:29 +02:00
|
|
|
.if defined(WITHOUT_AMAZON)
|
2006-07-03 16:44:38 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-amazon
|
2004-10-14 00:58:29 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-10 18:02:17 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
2005-04-12 01:16:39 +02:00
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-mysql
|
|
|
|
.endif
|
|
|
|
|
2005-10-10 18:02:17 +02:00
|
|
|
.if defined(WITH_POSTGRESQL)
|
2005-09-21 12:13:59 +02:00
|
|
|
USE_PGSQL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-postgresql
|
2005-04-12 01:16:39 +02:00
|
|
|
.endif
|
|
|
|
|
2006-07-03 17:41:32 +02:00
|
|
|
pre-extract: check-options-version
|
|
|
|
|
2004-03-11 22:06:37 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2006-04-16 17:39:52 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|LIBS="-ltunepimp $$LIBS"|LIBS="-ltunepimp -liconv $$LIBS"|g' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-10-14 00:58:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|xx||g' ${WRKSRC}/po/Makefile.in
|
2004-11-30 23:40:26 +01:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${TOUCH}
|
2004-03-11 22:06:37 +01:00
|
|
|
|
2005-09-21 12:13:59 +02:00
|
|
|
post-install:
|
2005-10-10 18:02:17 +02:00
|
|
|
.if defined(WITH_LIBVISUAL)
|
2005-09-21 12:13:59 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2004-06-17 15:43:11 +02:00
|
|
|
|
2006-07-03 17:41:32 +02:00
|
|
|
check-options-version:
|
|
|
|
.ifdef(_OPTIONS_READ)
|
|
|
|
@(if ${PKG_VERSION} -t ${_OPTIONS_READ} ${MIN_OPTIONS_VER} | ${GREP} -q '<'; \
|
|
|
|
then ${ECHO_CMD} ""; \
|
|
|
|
${ECHO_CMD} "===> You have unsupported (old) OPTIONS, please do a 'make rmconfig; make'"; \
|
|
|
|
${ECHO_CMD} ""; \
|
|
|
|
exit 1; \
|
|
|
|
fi)
|
|
|
|
.endif
|
|
|
|
|
2004-06-17 15:43:11 +02:00
|
|
|
.include <bsd.port.post.mk>
|