aboutsummaryrefslogtreecommitdiffstats
path: root/audio/asunder/Makefile
blob: 0a959b54e55432f54f3879132799e9f1525d7abf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    asunder
# Date created:             14 September 2007
# Whom:                 frase@frase.id.au
#
# $FreeBSD$

PORTNAME=   asunder
PORTVERSION=    1.0.2
CATEGORIES= audio
MASTER_SITES=   http://littlesvr.ca/asunder/releases/

MAINTAINER= frase@frase.id.au
COMMENT=    A lightweight GTK+ CD ripper

LIB_DEPENDS=    cddb.4:${PORTSDIR}/audio/libcddb
RUN_DEPENDS=    ${LOCALBASE}/bin/cdparanoia:${PORTSDIR}/audio/cdparanoia

OPTIONS=    LAME "lame support" on \
        OGG "ogg-vorbis support" on \
        FLAC "FLAC support" on

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GNOME=  gtk20

DOCS=       AUTHORS COPYING ChangeLog INSTALL NEWS README TODO

.include <bsd.port.pre.mk>

.if defined(WITH_LAME)
RUN_DEPENDS+=   lame:${PORTSDIR}/audio/lame
.endif

.if defined(WITH_OGG)
RUN_DEPENDS+=   oggenc:${PORTSDIR}/audio/vorbis-tools
.endif

.if defined(WITH_FLAC)
RUN_DEPENDS+=   flac:${PORTSDIR}/audio/flac
.endif

do-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
    @${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/asunder.desktop ${DATADIR}/
    @${INSTALL_DATA} ${WRKSRC}/pixmaps/asunder.png ${DATADIR}/

.include <bsd.port.post.mk>