2005-03-18 18:14:19 +00:00
|
|
|
# New ports collection makefile for: Ayam
|
|
|
|
# Date created: 19 Apr 2003
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
2004-01-14 02:29:01 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ayam
|
2009-03-10 21:51:15 +00:00
|
|
|
PORTVERSION= 1.15.1
|
2010-02-05 11:46:55 +00:00
|
|
|
PORTREVISION= 3
|
2004-01-14 02:29:01 +00:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Ayam/${PORTVERSION}
|
2004-04-01 12:21:01 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}.src
|
2004-01-14 02:29:01 +00:00
|
|
|
|
2008-02-21 21:20:01 +00:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2004-01-14 02:29:01 +00:00
|
|
|
COMMENT= 3D modeling environment for the RenderMan interface
|
|
|
|
|
2010-01-09 14:50:42 +00:00
|
|
|
LIB_DEPENDS= aqsis_util.1:${PORTSDIR}/graphics/aqsis \
|
2007-12-18 00:19:10 +00:00
|
|
|
tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
|
2005-01-20 13:54:57 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2004-01-14 02:29:01 +00:00
|
|
|
|
2008-03-10 16:02:31 +00:00
|
|
|
USE_XORG= xmu xext x11
|
2004-01-14 02:29:01 +00:00
|
|
|
USE_GL= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
|
|
|
MAKEFILE= Makefile.shared
|
2004-02-02 08:55:42 +00:00
|
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2009-11-19 22:07:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-01-14 02:29:01 +00:00
|
|
|
|
|
|
|
AYAM_PLUGINS= csphere mfio
|
2004-02-02 08:55:42 +00:00
|
|
|
PLUGINS_DIR= ${PREFIX}/lib/${PORTNAME}
|
2004-01-14 02:29:01 +00:00
|
|
|
|
2005-01-02 00:41:28 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha"
|
2007-12-18 00:19:10 +00:00
|
|
|
BROKEN= Does not build on alpha
|
2005-01-02 00:41:28 +00:00
|
|
|
.endif
|
|
|
|
|
2004-01-14 02:29:01 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/tcl/ayam.tcl
|
2004-02-07 22:43:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^MF3DCFLAGS =|MF3DCFLAGS = -fPIC|g' \
|
|
|
|
${WRKSRC}/MF3D/Makefile.mf3d
|
2004-01-14 02:29:01 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
# binary and wrapper
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ayamsh ${PREFIX}/bin
|
|
|
|
@(${ECHO_CMD} "#!${SH}"; \
|
2004-02-02 08:55:42 +00:00
|
|
|
${ECHO_CMD} "${PREFIX}/bin/ayamsh ${PLUGINS_DIR}/tcl/ayam.tcl \$$@" \
|
2004-01-14 02:29:01 +00:00
|
|
|
) >${PREFIX}/bin/ayam
|
|
|
|
@${CHMOD} ugo+x ${PREFIX}/bin/ayam
|
|
|
|
|
|
|
|
# plugins
|
2004-02-02 08:55:42 +00:00
|
|
|
@${MKDIR} ${PLUGINS_DIR}
|
2004-01-14 02:29:01 +00:00
|
|
|
.for i in ${AYAM_PLUGINS}
|
2004-02-02 08:55:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/${i}.tcl ${PLUGINS_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/plugins/${i}.so ${PLUGINS_DIR}
|
2004-01-14 02:29:01 +00:00
|
|
|
.endfor
|
2004-02-02 08:55:42 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/plugins/ayslx.so ${PLUGINS_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/loadayslx.tcl ${PLUGINS_DIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/meta/*.tcl ${PLUGINS_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/contrib/meta/metaobj.so ${PLUGINS_DIR}
|
2004-01-14 02:29:01 +00:00
|
|
|
|
|
|
|
# tcl libs
|
2004-02-02 08:55:42 +00:00
|
|
|
@${MKDIR} ${PLUGINS_DIR}/tcl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcl/*.tcl ${PLUGINS_DIR}/tcl
|
|
|
|
@${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1
|
2004-01-14 02:29:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/*.tcl \
|
2004-02-02 08:55:42 +00:00
|
|
|
${PLUGINS_DIR}/tcl/BWidget-1.2.1
|
|
|
|
@${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1/images
|
2004-01-14 02:29:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/images/* \
|
2004-02-02 08:55:42 +00:00
|
|
|
${PLUGINS_DIR}/tcl/BWidget-1.2.1/images
|
|
|
|
@${MKDIR} ${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang
|
2004-01-14 02:29:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/lang/* \
|
2004-02-02 08:55:42 +00:00
|
|
|
${PLUGINS_DIR}/tcl/BWidget-1.2.1/lang
|
2004-01-14 02:29:01 +00:00
|
|
|
|
|
|
|
# data
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/lib/ayam-splash.gif ${DATADIR}
|
|
|
|
|
|
|
|
# docs
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-04-01 12:21:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Setup.txt ${DOCSDIR}
|
2004-02-02 08:55:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/ayam.pdf ${DOCSDIR}
|
2004-01-14 02:29:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.ps ${DOCSDIR}
|
2004-02-02 08:55:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.tcl ${DOCSDIR}
|
2004-01-14 02:29:01 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/*.html ${DOCSDIR}/html
|
|
|
|
@${MKDIR} ${DOCSDIR}/html/pics
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/pics/* \
|
|
|
|
${DOCSDIR}/html/pics
|
|
|
|
.endif
|
|
|
|
|
2005-01-02 00:41:28 +00:00
|
|
|
.include <bsd.port.post.mk>
|