2001-07-20 07:21:15 -04:00
|
|
|
# New ports collection makefile for: ruby-audiofile
|
|
|
|
# Date created: 20 July 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= audiofile
|
2002-07-15 01:28:19 -04:00
|
|
|
PORTVERSION= 0.2.1
|
2001-07-20 07:21:15 -04:00
|
|
|
CATEGORIES= audio ruby
|
2002-11-25 12:46:04 -05:00
|
|
|
MASTER_SITES= http://ruby-${PORTNAME}.sourceforge.net/download/
|
2001-07-20 07:21:15 -04:00
|
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2001-07-26 01:17:02 -04:00
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
2001-07-20 07:21:15 -04:00
|
|
|
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
|
|
|
|
|
2001-07-26 01:17:02 -04:00
|
|
|
CDDB_DISTNAME= cddb-0.2
|
|
|
|
CDDB_WRKSRC= ${WRKDIR}/example
|
2001-08-30 04:56:49 -04:00
|
|
|
|
2001-07-20 07:21:15 -04:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
|
|
|
DOCS= audiofile.html audiofile.rd
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${RUBY} -i -pe 'gsub %r|/home/jaredj/ruby-lib/cddb\b|, "cddb"' \
|
2001-07-26 01:17:02 -04:00
|
|
|
${CDDB_WRKSRC}/wavcddb
|
2001-07-20 07:21:15 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 17:08:30 -04:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/cddb
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${INSTALL_DATA} ${CDDB_WRKSRC}/* ${RUBY_MODEXAMPLESDIR}/cddb/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2001-07-20 07:21:15 -04:00
|
|
|
.for f in ${DOCS}
|
2002-10-06 17:08:30 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-07-20 07:21:15 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|