2002-05-27 15:25:00 +02:00
|
|
|
# Ports collection makefile for: gnump3d
|
|
|
|
# Date created: May 27, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnump3d
|
2005-01-12 19:57:55 +01:00
|
|
|
PORTVERSION= 2.9
|
2002-05-27 15:25:00 +02:00
|
|
|
CATEGORIES= audio
|
2003-10-18 21:25:21 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
2002-05-27 15:25:00 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-03-26 15:39:19 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
|
2004-02-13 08:54:20 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2002-05-27 15:25:00 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-18 21:25:21 +02:00
|
|
|
COMMENT= A streaming server for MP3, Ogg Vorbis, and other streamable audio files
|
2002-05-27 15:25:00 +02:00
|
|
|
|
2003-02-11 21:59:31 +01:00
|
|
|
RUN_DEPENDS= lame:${PORTSDIR}/audio/lame \
|
2003-10-18 21:25:21 +02:00
|
|
|
sox:${PORTSDIR}/audio/sox \
|
2003-05-08 17:24:04 +02:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools
|
2003-02-11 21:59:31 +01:00
|
|
|
|
2004-02-13 08:54:20 +01:00
|
|
|
USE_GPG?= yes
|
|
|
|
SIG_FILES= ${DISTNAME}${EXTRACT_SUFX}.asc
|
2002-06-17 22:26:24 +02:00
|
|
|
USE_BZIP2= yes
|
2002-06-29 21:08:03 +02:00
|
|
|
USE_PERL5= yes
|
2003-02-11 21:59:31 +01:00
|
|
|
NO_BUILD= yes
|
2002-06-29 21:08:03 +02:00
|
|
|
|
2003-07-08 08:30:55 +02:00
|
|
|
MAN1= gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1
|
2002-06-29 21:08:03 +02:00
|
|
|
|
2003-02-11 21:59:31 +01:00
|
|
|
CONFDIR= ${PREFIX}/etc/${PORTNAME}
|
|
|
|
PERL_SITELIBDIR= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}
|
2002-05-27 15:25:00 +02:00
|
|
|
|
2003-06-07 17:02:28 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
2004-02-22 07:08:22 +01:00
|
|
|
IGNORE= "You need at least perl 5.6.0. Do not use FreeBSD 4.x' system perl,\
|
2003-06-07 17:02:28 +02:00
|
|
|
it's outdated. Install lang/perl5 and issue 'use.perl port'"
|
|
|
|
.endif
|
|
|
|
|
2003-02-11 21:59:31 +01:00
|
|
|
post-patch:
|
2003-07-08 08:30:55 +02:00
|
|
|
.for file in bin/gnump3d-index bin/gnump3d-top bin/gnump3d2 etc/gnump3d.conf \
|
|
|
|
man/gnump3d.conf.1
|
2003-02-11 21:59:31 +01:00
|
|
|
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
|
|
s|%%PERL_SITELIBDIR%%|${PERL_SITELIBDIR}|g' ${WRKSRC}/${file}
|
2002-07-15 23:38:20 +02:00
|
|
|
.endfor
|
|
|
|
|
2003-02-11 21:59:31 +01:00
|
|
|
do-install:
|
2003-07-08 08:30:55 +02:00
|
|
|
.for file in gnump3d-index gnump3d-top gnump3d2
|
2003-02-11 21:59:31 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${LN} -sf gnump3d2 ${PREFIX}/bin/gnump3d
|
2003-07-08 08:30:55 +02:00
|
|
|
.for file in gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1
|
2003-02-11 21:59:31 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${file} ${MANPREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${PERL_SITELIBDIR}
|
2004-05-19 23:15:01 +02:00
|
|
|
cd ${WRKSRC}/lib && ${FIND} . ! -empty | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PERL_SITELIBDIR}
|
2003-02-11 21:59:31 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
2004-05-19 23:15:01 +02:00
|
|
|
cd ${WRKSRC}/templates && ${FIND} . ! -empty | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
2003-02-11 21:59:31 +01:00
|
|
|
${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}
|
2002-08-20 21:26:03 +02:00
|
|
|
|
2003-06-07 17:02:28 +02:00
|
|
|
.include <bsd.port.post.mk>
|