aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gnupod/Makefile
blob: 54b7dd18a6d6fb74bcfc8ada82377a51b06fa820 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# New ports collection makefile for:    gnupod
# Date created:             30 November 2002
# Whom:                 David Le Brun <david@dyn-ns.net>
#
# $FreeBSD$
#

PORTNAME=   gnupod
PORTVERSION=    0.99.7
PORTREVISION=   1
CATEGORIES= audio perl5
MASTER_SITES=   ${MASTER_SITE_SAVANNAH} \
        http://www.blinkenlights.ch/gnupod-dist/stable/
MASTER_SITE_SUBDIR= gnupod
EXTRACT_SUFX=   .tgz

MAINTAINER= david@trucs.org
COMMENT=    Set of Perl scripts for using an Apple iPod

BUILD_DEPENDS=  ${SITE_PERL}/MP3/Info.pm:${PORTSDIR}/audio/p5-MP3-Info \
        ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
        ${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
        ${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String  \
        ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
        ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
        ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
        ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
RUN_DEPENDS=    ${BUILD_DEPENDS}

INFO=       gnupod
MAN1=       gnupod_addsong.pl.1 gnupod_check.pl.1 gnupod_INIT.pl.1 \
        gnupod_otgsync.pl.1 gnupod_search.pl.1 mktunes.pl.1 \
        tunes2pod.pl.1
MANCOMPRESSED=  yes

USE_PERL5=  5.8.0+
GNU_CONFIGURE=  yes
NO_BUILD=   yes

CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV=  ac_cv_path_PERL=${PERL}

OPTIONS=    FLAC "Enable FLAC support" off \
        VORBIS "Enable Ogg Vorbis support" off

.include <bsd.port.pre.mk>

.if defined(WITH_FLAC) || exists(${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm)
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm:${PORTSDIR}/audio/p5-Audio-FLAC-Header
.endif

.if defined(WITH_VORBIS) || exists(${SITE_PERL}/Ogg/Vorbis/Header/PurePerl.pm)
BUILD_DEPENDS+= ${SITE_PERL}/Ogg/Vorbis/Header/PurePerl.pm:${PORTSDIR}/audio/p5-Ogg-Vorbis-Header-PurePerl
BUILD_DEPENDS+= oggdec:${PORTSDIR}/audio/vorbis-tools
.endif

.ifndef(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/gnupodrc.example ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/gnutunesdb.example ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/gnupod.html ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/mkspl.html ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/gnupod.texi ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/fdl.texi ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/version.texi ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/doc/ipod.svg ${DOCSDIR}
.endif

.include <bsd.port.post.mk>