34 lines
981 B
Makefile
34 lines
981 B
Makefile
# $NetBSD: Makefile,v 1.2 2006/07/16 12:25:18 shattered Exp $
|
|
#
|
|
|
|
DISTNAME= jbmgen-1.1.0
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= audio ruby
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jbmgen/}
|
|
|
|
MAINTAINER= shattered@users.sourceforge.net
|
|
HOMEPAGE= http://jbmgen.sourceforge.net/
|
|
COMMENT= Archos Gmini playlist generator
|
|
|
|
NO_BUILD= yes
|
|
REPLACE_RUBY_DIRS= ${WRKSRC}/.
|
|
REPLACE_FILE_PAT= jbmgen
|
|
JBMGEN_FILES= BinaryStuff.rb Dictionary.rb FileEntry.rb JBMFile.rb \
|
|
Path.rb Pointable.rb TreeNode.rb TreeNodeTypes.rb \
|
|
mp3info.rb
|
|
|
|
post-extract:
|
|
for m in ${JBMGEN_FILES}; do \
|
|
${SED} -e 's,require *[^ ]\([^\.]*\)\.rb.,require "jbmgen/\1",' \
|
|
${WRKSRC}/$$m > ${WRKSRC}/$$m.new; \
|
|
done
|
|
|
|
do-install:
|
|
${MKDIR} ${RUBY_SITELIBDIR}/jbmgen
|
|
for m in ${JBMGEN_FILES}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$m.new ${RUBY_SITELIBDIR}/jbmgen/$$m; \
|
|
done
|
|
${INSTALL_SCRIPT} ${WRKSRC}/jbmgen ${PREFIX}/bin
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|