freebsd-ports/audio/atunes/Makefile

89 lines
2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: atunes
# Date Created: 29 Dec 2007
# Whom: Lars Engels <lme@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= atunes
2010-10-01 19:00:16 +02:00
PORTVERSION= 2.0.1
PORTREVISION?= 1
CATEGORIES= audio java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/aTunes%20${PORTVERSION}
MAINTAINER= lme@FreeBSD.org
COMMENT= A full-featured audio player and manager developed in Java
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
SUB_FILES= atunes
2010-10-01 19:00:16 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-SNAPSHOT
OPTIONS= MPLAYER "Engine: Use Mplayer" on \
XINE "Engine: Use Xine" off \
CDDA2WAV "Ripper: Enable cdrtools support" on \
LAME "Encoder: Enable lame MP3 encoder" on \
VORBIS "Encoder: Enable vorbis OGG encoder" on \
FLAC "Encoder: Enable FLAC encoder" off
.include <bsd.port.pre.mk>
pre-everything::
.if !defined(WITH_MPLAYER) && !defined(WITH_XINE)
@${ECHO_MSG} "You need to select at least one engine, mplayer or xine!"
@${FALSE}
.endif
.if defined(WITH_MPLAYER)
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
.endif
.if defined(WITH_XINE)
- Update multimedia/libxine to 1.2.1 with a commit merged from hg to fix DVB support. (which still is broken for tuners using hardware pid filtering, like when running webcamd with "-m dvb-usb-init.force_pid_filter_usage=1".) - Add patches to fix build of ports depending on libxine to: audio/amarok, graphics/gimageview [1], graphics/pornview [1], graphics/osg [2], graphics/osg-devel [2], multimedia/emotion, x11/kdelibs4 [3], multimedia/kmplayer, multimedia/konverter, multimedia/qdvdauthor [4], multimedia/vdr-plugin-xineliboutput, multimedia/xfce4-media [5], multimedia/xine_artsplugin, multimedia/k9copy-kde4 [6] - Fix RUN_DEPENDS= xine... which should be LIB_DEPENDS for audio/atunes . [7] - Mark multimedia/phonon-xine BROKEN which refuses to build with libxine 1.2.x and is deprecated upstream. [3] - Disable XINE knob for x11/eaglemode for which I don't have a fix. [2] - Note: multimedia/kaffeine runs after rakuco's x11/kdelibs4 fix, but it only shows a green window at least with mp4 or ts files. (avi files and audio still work.) It seems the kaffeine developers have found this too and are now switching away from libxine in their git repo - so I guess we'll have a broken kaffeine at least until they release a new version. - Bump PORTREVISIONs for ports depending on libxine by default. - Add optional libbluray support to multimedia/libxine and multimedia/vdr-plugin-xineliboutput. PR: ports/165057 [6] Submitted by: nox (self) [6], rakuco [3] Approved by: dinoex (maintainer, via irc) [1], amdmi3 (maintainer, via private email) [2], kde@ (rakuco, via irc) [3], Phil Oleson <oz@nixil.net> (maintainer, via private email) [4], xfce@ (rene, via irc) [5], Eduardo Gielamo Oliveira <egoliveira@gmail.com> (maintainer) [6], lme (maintainer, via irc) [7] Thanx to: Darren Salt (upstream libxine maintainer) for a few hints on irc to help with patching ports depending on deprecated libxine features
2012-02-26 16:22:37 +01:00
LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
.endif
.if defined(WITH_CDDA2WAV)
USE_CDRTOOLS= yes
.endif
.if defined(WITH_LAME)
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
.if defined(WITH_VORBIS)
RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools
.endif
.if defined(WITH_FLAC)
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
.endif
DESKTOP_ENTRIES="aTunes" \
"Audio player and manager" \
"${DATADIR}/aTunes.ico" \
"aTunes" \
2010-10-01 19:00:16 +02:00
"Application;;AudioVideo;Java;" \
false
2010-10-01 19:00:16 +02:00
INSTALL_FILES= aTunes.ico aTunes.jar license.txt
2010-10-01 19:00:16 +02:00
PIXMAPS= atunes.png
do-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/lib
${INSTALL_SCRIPT} ${WRKDIR}/atunes ${PREFIX}/bin
.for file in ${INSTALL_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/${file}
.endfor
cd ${WRKSRC} && ${FIND} lib -type f -name "*.jar" -exec ${INSTALL_DATA} {} \
${DATADIR}/{} \;
@${MKDIR} ${PREFIX}/share/pixmaps
.for file in ${PIXMAPS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/pixmaps
.endfor
.include <bsd.port.post.mk>