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$
|
2009-08-02 21:36:34 +02:00
|
|
|
#
|
2004-03-11 22:06:37 +01:00
|
|
|
|
|
|
|
PORTNAME= amarok
|
2008-09-15 14:16:23 +02:00
|
|
|
PORTVERSION= 1.4.10
|
2011-02-25 02:32:17 +01:00
|
|
|
PORTREVISION= 13
|
2004-03-11 22:06:37 +01:00
|
|
|
CATEGORIES= audio kde
|
2006-09-04 14:25:55 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
|
|
|
MASTER_SITE_SUBDIR= stable/${PORTNAME}/${PORTVERSION}/src
|
2004-03-11 22:06:37 +01:00
|
|
|
|
2009-02-24 15:19:22 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2004-03-11 22:06:37 +01:00
|
|
|
COMMENT= Media player for KDE
|
|
|
|
|
2009-12-02 18:16:16 +01:00
|
|
|
LIB_DEPENDS= tag.1:${PORTSDIR}/audio/taglib \
|
2006-09-04 14:25:55 +02:00
|
|
|
tunepimp.5:${PORTSDIR}/audio/libtunepimp \
|
2010-08-11 22:58:04 +02:00
|
|
|
mp4v2.10:${PORTSDIR}/multimedia/mp4v2 \
|
2007-02-15 09:35:23 +01:00
|
|
|
xine.1:${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
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2008-02-05 18:44:57 +01:00
|
|
|
USE_GETTEXT= yes
|
2005-02-06 19:27:52 +01:00
|
|
|
USE_SDL= sdl
|
2006-07-03 16:44:38 +02:00
|
|
|
USE_RUBY= yes
|
2006-08-16 17:19:03 +02:00
|
|
|
USE_LDCONFIG= yes
|
2008-02-05 18:44:57 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2004-03-11 22:06:37 +01:00
|
|
|
|
2006-07-13 18:20:10 +02:00
|
|
|
OPTIONS= GPOD "iPod support" on \
|
2006-09-04 16:05:33 +02:00
|
|
|
NJB "Creative Nomad and Dell support" on \
|
2006-12-12 11:42:46 +01:00
|
|
|
MTP "MTP device support" on \
|
2008-02-21 11:06:25 +01:00
|
|
|
LIBVISUAL "libvisual support" 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 \
|
2007-08-30 17:50:03 +02:00
|
|
|
HIDEMENUBAR "Revert the 'Hide Menubar' feature" off \
|
2004-06-17 15:43:11 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-03 16:44:38 +02:00
|
|
|
CONFIGURE_ARGS+=--without-exscalibar \
|
|
|
|
--with-mp4v2 \
|
2008-02-21 11:06:25 +01:00
|
|
|
--with-mp4v2-dir=${PREFIX}
|
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-11-28 10:55:01 +01:00
|
|
|
CONFIGURE_ARGS+=--without-libgpod
|
2006-07-03 16:44:38 +02:00
|
|
|
.else
|
2009-08-07 19:03:22 +02:00
|
|
|
LIB_DEPENDS+= gpod.5:${PORTSDIR}/audio/libgpod
|
2006-07-03 16:44:38 +02:00
|
|
|
CONFIGURE_ARGS+=--with-libgpod
|
|
|
|
PLIST_SUB+= GPOD=""
|
|
|
|
.endif
|
|
|
|
|
2006-09-04 16:05:33 +02:00
|
|
|
.if !defined(WITH_NJB)
|
|
|
|
PLIST_SUB+= NJB="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= njb.6:${PORTSDIR}/audio/libnjb
|
|
|
|
CONFIGURE_ARGS+=--with-libnjb
|
|
|
|
PLIST_SUB+= NJB=""
|
|
|
|
.endif
|
|
|
|
|
2006-12-12 11:42:46 +01:00
|
|
|
.if !defined(WITH_MTP)
|
|
|
|
PLIST_SUB+= MTP="@comment "
|
|
|
|
.else
|
2010-05-10 15:07:52 +02:00
|
|
|
LIB_DEPENDS+= mtp.11:${PORTSDIR}/audio/libmtp
|
2006-12-12 11:42:46 +01:00
|
|
|
CONFIGURE_ARGS+=--with-libmtp
|
|
|
|
PLIST_SUB+= MTP=""
|
|
|
|
.endif
|
|
|
|
|
2008-02-21 11:06:25 +01:00
|
|
|
.if defined(WITHOUT_LIBVISUAL)
|
|
|
|
CONFIGURE_ARGS+=--without-libvisual
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= visual-0.4:${PORTSDIR}/graphics/libvisual04
|
|
|
|
.endif
|
|
|
|
|
2004-06-17 15:43:11 +02:00
|
|
|
.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
|
|
|
|
|
2007-08-30 17:50:03 +02:00
|
|
|
.if defined(WITH_HIDEMENUBAR)
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/hide-main-menu-bar-feature.patch
|
|
|
|
.endif
|
|
|
|
|
2007-02-12 18:02:44 +01:00
|
|
|
.if defined(DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--enable-debug=full
|
2008-02-05 18:44:57 +01:00
|
|
|
STRIP= # none
|
2007-02-12 18:02:44 +01: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:
|
2010-08-11 22:58:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g; \
|
|
|
|
s|LIBS="-ltunepimp $$LIBS"|LIBS="-ltunepimp -liconv $$LIBS"|g; \
|
|
|
|
s|mp4\.h|mp4v2/mp4v2.h|g' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-10-14 00:58:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|xx||g' ${WRKSRC}/po/Makefile.in
|
2010-08-11 22:58:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|<mp4\.h>|<mp4v2/mp4v2.h>|g' \
|
|
|
|
${WRKSRC}/amarok/src/metadata/mp4/mp4properties.h \
|
|
|
|
${WRKSRC}/amarok/src/metadata/mp4/mp4tag.h
|
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:
|
2006-12-26 16:00:46 +01:00
|
|
|
.if defined(WITH_MTP) || defined(WITH_NJB) || defined(WITH_GPOD)
|
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>
|