summaryrefslogtreecommitdiff
path: root/audio/ruby-audiofile/Makefile
blob: 89cad9d2236a21b7af4c49388585c2f62b84c54a (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
# New ports collection makefile for:	ruby-audiofile
# Date created:		20 July 2001
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	audiofile
PORTVERSION=	0.2
PORTREVISION=	1
CATEGORIES=	audio ruby
MASTER_SITES=	http://%SUBDIR%.sourceforge.net/download/
#MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	ruby-${PORTNAME}
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DISTNAME=	ruby-${PORTNAME}-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${CDDB_DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR=	ruby

MAINTAINER=	knu@FreeBSD.org

LIB_DEPENDS=	audiofile.0:${PORTSDIR}/audio/libaudiofile

USE_RUBY=	yes
USE_RUBY_EXTCONF=	yes

CDDB_DISTNAME=	cddb-0.2
CDDB_WRKSRC=	${WRKDIR}/example

INSTALL_TARGET=	site-install

DOCS=		audiofile.html audiofile.rd

post-patch:
	${RUBY} -i -pe 'gsub %r|/home/jaredj/ruby-lib/cddb\b|, "cddb"' \
		${CDDB_WRKSRC}/wavcddb

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/cddb
	${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/
	${INSTALL_DATA} ${CDDB_WRKSRC}/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/cddb/
	${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.endif

.include <bsd.port.mk>