freebsd-ports/audio/atunes/Makefile
2012-06-05 19:52:52 +00:00

91 lines
2.1 KiB
Makefile

# New ports collection makefile for: atunes
# Date Created: 29 Dec 2007
# Whom: Lars Engels <lme@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= atunes
PORTVERSION= 2.1.0
CATEGORIES= audio java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/aTunes%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${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
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-SNAPSHOT
OPTIONS_DEFINE= CDDA2WAV
OPTIONS_MULTI= ENCODER ENGINE
OPTIONS_MULTI_ENCODER= LAME VORBIS FLAC
OPTIONS_MULTI_ENGINE= MPLAYER XINE
OPTIONS_DEFAULT= MPLAYER CDDA2WAV LAME VORBIS
MPLAYER_DESC= Engine: Use Mplayer
XINE_DESC= Engine: Use Xine
CDDA2WAV_DESC= Ripper: Enable cdrtools support
LAME_DESC= Encoder: Enable lame MP3 encoder
VORBIS_DESC= Encoder: Enable vorbis OGG encoder
FLAC_DESC= Encoder: Enable FLAC encoder
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
.endif
.if ${PORT_OPTIONS:MXINE}
LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
.endif
.if ${PORT_OPTIONS:MCDDA2WAV}
USE_CDRTOOLS= yes
.endif
.if ${PORT_OPTIONS:MLAME}
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
.if ${PORT_OPTIONS:MVORBIS}
RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools
.endif
.if ${PORT_OPTIONS:MFLAC}
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
.endif
DESKTOP_ENTRIES="aTunes" \
"Audio player and manager" \
"${DATADIR}/aTunes.ico" \
"aTunes" \
"Application;;AudioVideo;Java;" \
false
INSTALL_FILES= aTunes.ico aTunes.jar license.txt
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.mk>