aboutsummaryrefslogtreecommitdiff
path: root/audio/atunes
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2009-05-09 19:05:39 +0000
committerLars Engels <lme@FreeBSD.org>2009-05-09 19:05:39 +0000
commit62e9a923ee4ad7c0ba4b6260e06da38763120ee9 (patch)
tree5af40cd85b95e26e09a5efe74fe78f10dd814c87 /audio/atunes
parenta4f14650010ec33bd2c7b7f9b62e7c0a76cb7570 (diff)
downloadports-62e9a923ee4ad7c0ba4b6260e06da38763120ee9.tar.gz
ports-62e9a923ee4ad7c0ba4b6260e06da38763120ee9.zip
Notes
Diffstat (limited to 'audio/atunes')
-rw-r--r--audio/atunes/Makefile27
-rw-r--r--audio/atunes/pkg-plist2
2 files changed, 26 insertions, 3 deletions
diff --git a/audio/atunes/Makefile b/audio/atunes/Makefile
index 121e4b578e77..1d2e249b3da3 100644
--- a/audio/atunes/Makefile
+++ b/audio/atunes/Makefile
@@ -7,6 +7,7 @@
PORTNAME= atunes
PORTVERSION= 1.13.0
+PORTREVISION= 1
CATEGORIES= audio java
MASTER_SITES= SF
DISTNAME= aTunes_${PORTVERSION}
@@ -21,20 +22,34 @@ SUB_FILES= atunes
WRKSRC= ${WRKDIR}/aTunes
-OPTIONS= CDDA2WAV "Ripper: Enable cdrtools support" on \
+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)
+RUN_DEPENDS+= xine.1:${PORTSDIR}/multimedia/libxine
+.endif
.if defined(WITH_CDDA2WAV)
USE_CDRTOOLS= yes
.endif
-.if !defined(WITHOUT_LAME)
+.if defined(WITH_LAME)
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
@@ -57,6 +72,8 @@ INSTALL_FILES= aTunes.ico aTunes.jar build.properties changelog.txt \
extendedLog.properties license.txt log4j.properties \
presets.properties shortcutSpec.xml
+PIXMAPS= atunes125.png
+
do-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/lib
@@ -64,7 +81,7 @@ do-install:
@${MKDIR} ${DATADIR}/translations
${INSTALL_SCRIPT} ${WRKDIR}/atunes ${PREFIX}/bin
.for file in ${INSTALL_FILES}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/${file}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/${file}
.endfor
cd ${WRKSRC} && ${FIND} translations -type f -exec ${INSTALL_DATA} {} \
${DATADIR}/{} \;
@@ -72,5 +89,9 @@ do-install:
${DATADIR}/{} \;
cd ${WRKSRC} && ${FIND} settings -type f -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>
diff --git a/audio/atunes/pkg-plist b/audio/atunes/pkg-plist
index 2313e6ac9676..4b9c90315ec5 100644
--- a/audio/atunes/pkg-plist
+++ b/audio/atunes/pkg-plist
@@ -86,8 +86,10 @@ bin/atunes
%%DATADIR%%/translations/flag_uk.png
%%DATADIR%%/translations/flag_zh.png
%%DATADIR%%/translations/flag_zh_TW.png
+share/pixmaps/atunes125.png
@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%/settings
@dirrm %%DATADIR%%/lib
@dirrm %%DATADIR%%
@dirrmtry share/applications
+@dirrmtry share/pixmaps