1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/audio/gnupod/Makefile
Li-Wen Hsu 261649a9a6 - Update gnupod to 0.99.2
- Add FLAC support (option)

PR:		112466
Submitted by:	"David" <david AT trucs.org> (maintainer)
Approved by:	clsung (mentor, implicitly)
2007-05-29 07:22:08 +00:00

73 lines
2.1 KiB
Makefile

# 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.2
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}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String \
${SITE_PERL}/Getopt/Mixed.pm:${PORTSDIR}/devel/p5-Getopt-Mixed \
${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
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= yes
HAS_CONFIGURE= yes
NO_BUILD= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--infodir=${PREFIX}/info \
--mandir=${PREFIX}/man
CONFIGURE_ENV= ac_cv_path_PERL=${PERL}
OPTIONS= FLAC "Enable FLAC support" off
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
IGNORE= gnupod only support perl 5.8 or above
.endif
.if exists(${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm)
WITH_FLAC= YES
.endif
.if defined(WITH_FLAC)
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Audio/FLAC/Header.pm:${PORTSDIR}/audio/p5-Audio-FLAC-Header
.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>