2004-01-14 02:29:01 +00:00
|
|
|
# New ports collection makefile for: ayam
|
|
|
|
# Date created: 19 Apr 2003
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ayam
|
2004-12-14 02:58:59 +00:00
|
|
|
PORTVERSION= 1.8
|
2004-01-14 02:29:01 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-04-01 12:21:01 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}.src
|
2004-01-14 02:29:01 +00:00
|
|
|
|
2004-07-21 17:47:52 +00:00
|
|
|
MAINTAINER= ip@doom.homeunix.org
|
2004-01-14 02:29:01 +00:00
|
|
|
COMMENT= 3D modeling environment for the RenderMan interface
|
|
|
|
|
2004-02-02 08:55:42 +00:00
|
|
|
LIB_DEPENDS= aqsis.0:${PORTSDIR}/graphics/aqsis \
|
|
|
|
tcl82.1:${PORTSDIR}/lang/tcl82 \
|
2004-01-24 08:05:50 +00:00
|
|
|
tk82.1:${PORTSDIR}/x11-toolkits/tk82 \
|
2005-01-20 13:54:57 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2004-01-14 02:29:01 +00:00
|
|
|
|
2004-11-26 17:46:53 +00:00
|
|
|
USE_GCC= 3.4
|
2004-01-14 02:29:01 +00:00
|
|
|
USE_GL= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
|
|
|
MAKEFILE= Makefile.shared
|
2004-02-02 08:55:42 +00:00
|
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
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"
|
|
|
|
BROKEN= "Does not build on alpha"
|
|
|
|
.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>
|