blob: c98e36c3c6c0e84217b72ad7fcaf6d14f4be7cd1 (
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
|
# New ports collection makefile for: podcastamatic
# Date created: 12 July 2005
# Whom: lars.eggert@gmx.net
#
# $FreeBSD$
#
PORTNAME= podcastamatic
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://kenwardtown.com/projects/podcastamatic/ \
http://people.nokia.net/~lars/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
MAINTAINER= lars.eggert@gmx.net
COMMENT= Automates creation of webpage and RSS feed for a podcast
RUN_DEPENDS= p5-MP3-Info>=0:${PORTSDIR}/audio/p5-MP3-Info \
p5-MP4-Info>=0:${PORTSDIR}/multimedia/p5-MP4-Info
USE_ZIP= yes
USE_PERL5_RUN= yes
NO_BUILD= yes
do-patch:
@${REINPLACE_CMD} -e "s|${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}.conf|"\
${WRKSRC}/${PORTNAME}.pl
@${REINPLACE_CMD} -e "s|../test/podcastamatic.log|/var/log/${PORTNAME}.log|"\
${WRKSRC}/example_${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|/projects/podcastamatic|/podcast|"\
${WRKSRC}/example_${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|style.css|${PREFIX}/share/${PORTNAME}/style.css|"\
${WRKSRC}/example_${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|/testpodcast||" ${WRKSRC}/example_${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|/audio||" ${WRKSRC}/example_${PORTNAME}.conf
@${REINPLACE_CMD} -e "s|[wW]:|${PREFIX}/www|" ${WRKSRC}/example_${PORTNAME}.conf
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
@${INSTALL_DATA} ${WRKSRC}/example_${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
test \! -f ${PREFIX}/etc/${PORTNAME}.conf && ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf || true
@${MKDIR} ${PREFIX}/share/${PORTNAME}
@${INSTALL_DATA} ${WRKSRC}/style.css ${PREFIX}/share/${PORTNAME}/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR}
.endif
@${ECHO}
@${ECHO} "Edit ${PREFIX}/etc/${PORTNAME}.conf"
@${ECHO} "CSS in ${PREFIX}/share/${PORTNAME}/style.css"
@${ECHO}
.include <bsd.port.mk>
|