mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
a23bcd1501
- use ?= for the portrevision of a master port to make it possible to change it in a slave port which depends upon lame - bump portrevisions of ports which depend upon lame - done via a semi-automated way (manual review and fixup) - I tried to take care to not bump ports which only depend optionaly on lame (with a default of no dependency)
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
# Ports collection makefile for: gnump3d
|
|
# Date created: May 27, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnump3d
|
|
PORTVERSION= 3.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= jadawin@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_BZIP2= yes
|
|
USE_PERL5_RUN= 5.8.0+
|
|
NO_BUILD= yes
|
|
USE_RC_SUBR= gnump3d.sh
|
|
SUB_LIST+= PERL=${PERL}
|
|
|
|
MAN1= gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1
|
|
|
|
CONFDIR= ${PREFIX}/etc/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500806
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Encode.pm:${PORTSDIR}/converters/p5-Encode
|
|
.endif
|
|
|
|
post-patch:
|
|
.for f in bin/gnump3d-index bin/gnump3d-top bin/gnump3d2 etc/gnump3d.conf \
|
|
man/gnump3d.conf.1
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
|
s|!/usr/bin/perl|!${PERL}| ; \
|
|
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/file.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>
|