# New ports collection makefile for: Ruby/Math3d # Date created: 8 May 2001 # Whom: Akinori MUSHA aka knu # # $FreeBSD$ # PORTNAME= math3d PORTVERSION= 0.04 CATEGORIES= math ruby MASTER_SITES= http://www2.giganet.net/~yoshi/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org COMMENT= A Ruby library for mathematics for 3D graphics USE_RUBY= yes USE_RUBY_EXTCONF= yes INSTALL_TARGET= site-install .include .if ${ARCH} != "i386" BROKEN= "Does not compile on !i386" .endif pre-patch: cd ${WRKSRC}; ${RUBY} -i -pe 'sub(/\r/, "")' *.[ch] post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR}/ja ${INSTALL_DATA} ${WRKSRC}/manual.en ${RUBY_MODDOCDIR}/ ${INSTALL_DATA} ${WRKSRC}/manual.jis ${RUBY_MODDOCDIR}/ja/ .endif .include