blob: b4152c17bf3cd8b7ea3c6d370350426d0a128a54 (
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
|
# Ports collection makefile for: gnump3d
# Date created: May 27, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gnump3d
PORTVERSION= 2.9.4
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Streaming server for MP3, Ogg Vorbis and other streamable audio files
RUN_DEPENDS= lame:${PORTSDIR}/audio/lame \
sox:${PORTSDIR}/audio/sox \
oggenc:${PORTSDIR}/audio/vorbis-tools
USE_GPG?= yes
SIG_FILES= ${DISTNAME}${EXTRACT_SUFX}.asc
USE_BZIP2= yes
USE_PERL5= yes
NO_BUILD= yes
MAN1= gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1
CONFDIR= ${PREFIX}/etc/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= You need at least perl 5.6.0. Do not use FreeBSD 4.x' system perl,\
it's outdated. Install lang/perl5 and issue 'use.perl port'
.endif
post-patch:
.for f in bin/gnump3d-index bin/gnump3d-top bin/gnump3d2 etc/gnump3d.conf \
man/gnump3d.conf.1
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%SITE_PERL%%|${SITE_PERL}|g' ${WRKSRC}/${f}
.endfor
do-install:
.for f in gnump3d-index gnump3d-top gnump3d2
${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin
.endfor
${LN} -sf gnump3d2 ${PREFIX}/bin/gnump3d
.for f in gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1
${INSTALL_MAN} ${WRKSRC}/man/${f} ${MANPREFIX}/man/man1
.endfor
${MKDIR} ${SITE_PERL}
cd ${WRKSRC}/lib && ${FIND} . ! -empty | \
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${SITE_PERL}
${MKDIR} ${DATADIR}
cd ${WRKSRC}/templates && ${FIND} . ! -empty | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
${MKDIR} ${CONFDIR}
${INSTALL_DATA} ${WRKSRC}/etc/mime.types ${CONFDIR}
${INSTALL_DATA} ${WRKSRC}/etc/gnump3d.conf \
${CONFDIR}/gnump3d.conf-default
.if !exists(${PREFIX}/etc/${PORTNAME}/gnump3d.conf)
cd ${CONFDIR} && ${CP} gnump3d.conf-default gnump3d.conf
.endif
${MKDIR} /var/log/${PORTNAME}
.include <bsd.port.post.mk>
|