Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2004 21:02:44 +0300 (MSK)
From:      Igor Pokrovsky <tiamat@comset.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/61286: New port: graphics/ayam 3D modeling environment for the RenderMan interface 
Message-ID:  <200401121802.i0CI2i0Z000300@doom.homeunix.org>
Resent-Message-ID: <200401130400.i0D40XQL002321@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61286
>Category:       ports
>Synopsis:       New port: graphics/ayam 3D modeling environment for the RenderMan interface
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 12 20:00:33 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #1: Sun Dec 14 13:12:44 MSK 2003 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
	Ayam is a free 3D modeling environment for the RenderMan Interface
	(formerly known as "The Mops"). Ayam is primarily aimed at the
	platforms BMRT (Blue Moon Rendering Tools, a RenderMan compliant
	renderer by Larry Gritz (Exluna) runs on. As BMRT are available
	in FreeBSD only as Linux binaries, Ayam will be compiled with code
	from the Affine Toolkit with limited functionality.
	No parsing of slc compiled shaders will be possible.
	
	WWW: http://www.ayam3d.org/
	
>How-To-Repeat:
	
>Fix:

	

--- ayam.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ayam
#	ayam/files
#	ayam/files/patch-Makefile.shared
#	ayam/files/patch-ayam.tcl
#	ayam/pkg-plist
#	ayam/pkg-descr
#	ayam/distinfo
#	ayam/Makefile
#
echo c - ayam
mkdir -p ayam > /dev/null 2>&1
echo c - ayam/files
mkdir -p ayam/files > /dev/null 2>&1
echo x - ayam/files/patch-Makefile.shared
sed 's/^X//' >ayam/files/patch-Makefile.shared << 'END-of-ayam/files/patch-Makefile.shared'
X--- Makefile.shared.orig	Fri Sep 26 17:17:52 2003
X+++ Makefile.shared	Mon Jan 12 14:28:28 2004
X@@ -34,14 +34,14 @@
X MKDIR = mkdir -p
X 
X # the compiler
X-CC = cc
X+CC ?= cc
X #CC = gcc
X 
X # the linker
X # Starting with BMRT2.5, libribout and libslcargs are in C++,
X # which forces us to use "CC" or "g++" to link the right libraries
X # automatically
X-LD = CC
X+LD = ${CC}
X # for Linux, use
X #LD = g++
X 
X@@ -65,7 +65,7 @@
X #   switched off and rotating views via keyboard will fill up the undo buffer
X # o add -DAYOLDSLX if you compile with an Aqsis libslxargs prior to 0.7.19
X 
X-CFLAGS = -O -DAYUSESLCARGS -DAYUSEBMRTRIBOUT
X+CFLAGS += -O -DAYUSEAFFINE -DAYENABLEWAIT
X # IRIX (-DAYIRIXBUG is needed by ncurve.c to work around a bug in libGLU)::
X #CFLAGS = -O -fullwarn -DAYIRIXBUG -DAYUSESLCARGS -DAYUSEBMRTRIBOUT
X # Linux:
X@@ -107,50 +107,36 @@
X TOGLOBJECT = togl/togl.o
X 
X # OpenGL
X-GLINCDIR = /usr/X11R6/include/
X+GLINCDIR = ${X11BASE}/include/
X # link options for linking with OpenGL libraries
X GLLIBS = -lGLU -lGL
X 
X # TIFF
X-TIFFINCDIR = /usr/include/
X+TIFFINCDIR = ${LOCALBASE}/include/
X # link options for linking with TIFF library
X TIFFLIB = -ltiff
X 
X # Tcl/Tk
X # Tcl directory
X-#TCLDIR = ../../tcl8.2.2
X-TCLDIR = ../../tcl8.0
X 
X # Tcl includes
X-TCLINC = -I$(TCLDIR)/generic
X+TCLINC = -I${LOCALBASE}/include/tcl8.2/generic
X 
X # Tcl library
X # link options for linking with Tcl library
X-#TCLLIB = -L$(TCLDIR)/unix -ltcl8.2
X-TCLLIB = -L$(TCLDIR)/unix -ltcl8.0
X-# if you have an installed Tcl/Tk, you probably just want:
X-#TCLLIB = -ltcl
X-
X-# Tk sources directory
X-# Note: You really need the Tk _sources_ in order to compile Ayam!
X-#TKDIR = ../../tk8.2.2
X-TKDIR = ../../tk8.0
X+TCLLIB = -L${LOCALBASE}/lib -ltcl82
X 
X # Tk includes
X-TKINC = -I$(TKDIR)/generic -I$(TKDIR)/unix
X+TKINC = -I${LOCALBASE}/include/tk8.2/generic -I${LOCALBASE}/include/tk8.2/unix
X 
X # Tk library
X # link options for linking with Tk library
X-#TKLIB = -L$(TKDIR)/unix -ltk8.2
X-TKLIB = -L$(TKDIR)/unix -ltk8.0
X-# if you have an installed Tcl/Tk, you probably just want:
X-#TKLIB = -ltk
X+TKLIB = -L${LOCALBASE}/lib -ltk82
X 
X 
X # X11-libs
X # link options for linking with X11
X-X11LIBS = -L/usr/X11R6/lib -lXmu -lXext -lX11
X-#X11LIBS = -L/usr/X11R6/lib -lXmu -lXext -lX11
X+X11LIBS = -L${X11BASE}/lib -lXmu -lXext -lX11
X 
X 
X # Affine Toolkit
X@@ -198,9 +184,9 @@
X # Dynamic Loading
X # Library for dynamic loading (contains dlopen())
X # Linux, IRIX, Solaris:
X-DL = -ldl
X+#DL = -ldl
X # NetBSD:
X-#DL =
X+DL =
X 
X # RRIB Plugin Required Libraries
X RRIBLIBS = -L /home/randi/sdk/affine0008/lib -lribrdr -lribhash -lribnop -lm
X@@ -347,14 +333,15 @@
X 
X RRIBOBJS = plugins/rrib.o
X 
X+AFFINEOBJS = affine/src/constant.o affine/src/write.o
X 
X .c.o: 
X-	$(CC) -c $(CFLAGS) $*.c -o $@ -I. -IMF3D -I$(TOGLINCDIR) $(TCLINC) $(TKINC) -I$(BMRTINCDIR) -I$(GLINCDIR) -I$(AFFINEINCDIR) -I$(AQSISINCDIR) -I$(TIFFINCDIR)
X+	$(CC) -c $(CFLAGS) $*.c -o $@ -I. -IMF3D -I$(TOGLINCDIR) $(TCLINC) $(TKINC) -I$(GLINCDIR) -I$(AFFINEINCDIR) -I$(AQSISINCDIR) -I$(TIFFINCDIR)
X 
X all: ayamsh csphere.so mfio.so metaobj.so
X 
X ayamsh: $(AYAMOBJS) $(TOGLOBJECT) $(AFFINEOBJS)
X-	$(LD) $(AYAMOBJS) $(TOGLOBJECT) $(EXLDFLAGS) -o ayamsh $(TKLIB) $(TCLLIB) $(GLLIBS) $(X11LIBS) $(RIBOUTLIB) $(AQSISRI2RIB) $(SLCARGSLIB) $(AFFINEOBJS) $(AQSISOBJS) $(TIFFLIB) -lm $(DL)
X+	$(LD) $(AYAMOBJS) $(TOGLOBJECT) $(EXLDFLAGS) -o ayamsh $(TKLIB) $(TCLLIB) $(GLLIBS) $(X11LIBS) $(SLCARGSLIB) $(AFFINEOBJS) $(TIFFLIB) -lm
X 
X csphere.so: $(CSPHEREOBJS)
X 	$(CC) -shared $(CSPHEREOBJS) -o plugins/csphere.so
END-of-ayam/files/patch-Makefile.shared
echo x - ayam/files/patch-ayam.tcl
sed 's/^X//' >ayam/files/patch-ayam.tcl << 'END-of-ayam/files/patch-ayam.tcl'
X--- tcl/ayam.tcl.orig	Mon Jan 12 16:05:21 2004
X+++ tcl/ayam.tcl	Mon Jan 12 16:06:01 2004
X@@ -391,7 +391,7 @@
X  pady 3
X  failsafe 0
X  showsplash 1
X- aysplash "../lib/ayam-splash.gif"
X+ aysplash "%%DATADIR%%/ayam-splash.gif"
X  filename ""
X  tmpfiles ""
X  ayamrc "~/.ayamrc"
END-of-ayam/files/patch-ayam.tcl
echo x - ayam/pkg-plist
sed 's/^X//' >ayam/pkg-plist << 'END-of-ayam/pkg-plist'
Xbin/ayam
Xbin/ayamsh
Xlib/ayam/csphere.tcl
Xlib/ayam/csphere.so
Xlib/ayam/metaobj.so
Xlib/ayam/metacomp.tcl
Xlib/ayam/metaobj.tcl
Xlib/ayam/mfio.tcl
Xlib/ayam/mfio.so
Xlib/ayam/tcl/about.tcl
Xlib/ayam/tcl/action.tcl
Xlib/ayam/tcl/ai.tcl
Xlib/ayam/tcl/ayam.tcl
Xlib/ayam/tcl/balloon.tcl
Xlib/ayam/tcl/box.tcl
Xlib/ayam/tcl/bpatch.tcl
Xlib/ayam/tcl/browser.tcl
Xlib/ayam/tcl/bwlangrc.tcl
Xlib/ayam/tcl/camera.tcl
Xlib/ayam/tcl/cap.tcl
Xlib/ayam/tcl/clone.tcl
Xlib/ayam/tcl/concatnc.tcl
Xlib/ayam/tcl/cone.tcl
Xlib/ayam/tcl/console.tcl
Xlib/ayam/tcl/control.tcl
Xlib/ayam/tcl/cylinder.tcl
Xlib/ayam/tcl/disk.tcl
Xlib/ayam/tcl/extrude.tcl
Xlib/ayam/tcl/hyperb.tcl
Xlib/ayam/tcl/icons.tcl
Xlib/ayam/tcl/icurve.tcl
Xlib/ayam/tcl/instance.tcl
Xlib/ayam/tcl/io.tcl
Xlib/ayam/tcl/level.tcl
Xlib/ayam/tcl/light.tcl
Xlib/ayam/tcl/material.tcl
Xlib/ayam/tcl/mmenu.tcl
Xlib/ayam/tcl/ms.tcl
Xlib/ayam/tcl/ncurve.tcl
Xlib/ayam/tcl/npatch.tcl
Xlib/ayam/tcl/objbar.tcl
Xlib/ayam/tcl/objsel.tcl
Xlib/ayam/tcl/olb.tcl
Xlib/ayam/tcl/pamesh.tcl
Xlib/ayam/tcl/pane.tcl
Xlib/ayam/tcl/parab.tcl
Xlib/ayam/tcl/pclip.tcl
Xlib/ayam/tcl/plb.tcl
Xlib/ayam/tcl/pomesh.tcl
Xlib/ayam/tcl/prefs.tcl
Xlib/ayam/tcl/prog.tcl
Xlib/ayam/tcl/prop.tcl
Xlib/ayam/tcl/render.tcl
Xlib/ayam/tcl/revolve.tcl
Xlib/ayam/tcl/riattr.tcl
Xlib/ayam/tcl/riinc.tcl
Xlib/ayam/tcl/riopt.tcl
Xlib/ayam/tcl/root.tcl
Xlib/ayam/tcl/run.tcl
Xlib/ayam/tcl/sdmesh.tcl
Xlib/ayam/tcl/shader.tcl
Xlib/ayam/tcl/shortcut.tcl
Xlib/ayam/tcl/skin.tcl
Xlib/ayam/tcl/sphere.tcl
Xlib/ayam/tcl/splash.tcl
Xlib/ayam/tcl/sweep.tcl
Xlib/ayam/tcl/tc.tcl
Xlib/ayam/tcl/tmp.tcl
Xlib/ayam/tcl/toolbox.tcl
Xlib/ayam/tcl/torus.tcl
Xlib/ayam/tcl/tree.tcl
Xlib/ayam/tcl/uie.tcl
Xlib/ayam/tcl/view.tcl
Xlib/ayam/tcl/vmenu.tcl
Xlib/ayam/tcl/widget.tcl
Xlib/ayam/tcl/win.tcl
Xlib/ayam/tcl/zap.tcl
Xlib/ayam/tcl/BWidget-1.2.1/arrow.tcl
Xlib/ayam/tcl/BWidget-1.2.1/bitmap.tcl
Xlib/ayam/tcl/BWidget-1.2.1/button.tcl
Xlib/ayam/tcl/BWidget-1.2.1/buttonbox.tcl
Xlib/ayam/tcl/BWidget-1.2.1/color.tcl
Xlib/ayam/tcl/BWidget-1.2.1/combobox.tcl
Xlib/ayam/tcl/BWidget-1.2.1/dialog.tcl
Xlib/ayam/tcl/BWidget-1.2.1/dragsite.tcl
Xlib/ayam/tcl/BWidget-1.2.1/dropsite.tcl
Xlib/ayam/tcl/BWidget-1.2.1/dynhelp.tcl
Xlib/ayam/tcl/BWidget-1.2.1/entry.tcl
Xlib/ayam/tcl/BWidget-1.2.1/font.tcl
Xlib/ayam/tcl/BWidget-1.2.1/init.tcl
Xlib/ayam/tcl/BWidget-1.2.1/label.tcl
Xlib/ayam/tcl/BWidget-1.2.1/labelentry.tcl
Xlib/ayam/tcl/BWidget-1.2.1/labelframe.tcl
Xlib/ayam/tcl/BWidget-1.2.1/listbox.tcl
Xlib/ayam/tcl/BWidget-1.2.1/mainframe.tcl
Xlib/ayam/tcl/BWidget-1.2.1/messagedlg.tcl
Xlib/ayam/tcl/BWidget-1.2.1/notebook.tcl
Xlib/ayam/tcl/BWidget-1.2.1/pagesmgr.tcl
Xlib/ayam/tcl/BWidget-1.2.1/panedw.tcl
Xlib/ayam/tcl/BWidget-1.2.1/passwddlg.tcl
Xlib/ayam/tcl/BWidget-1.2.1/pkgIndex.tcl
Xlib/ayam/tcl/BWidget-1.2.1/progressbar.tcl
Xlib/ayam/tcl/BWidget-1.2.1/progressdlg.tcl
Xlib/ayam/tcl/BWidget-1.2.1/scrollframe.tcl
Xlib/ayam/tcl/BWidget-1.2.1/scrollview.tcl
Xlib/ayam/tcl/BWidget-1.2.1/scrollw.tcl
Xlib/ayam/tcl/BWidget-1.2.1/separator.tcl
Xlib/ayam/tcl/BWidget-1.2.1/spinbox.tcl
Xlib/ayam/tcl/BWidget-1.2.1/titleframe.tcl
Xlib/ayam/tcl/BWidget-1.2.1/tree.tcl
Xlib/ayam/tcl/BWidget-1.2.1/utils.tcl
Xlib/ayam/tcl/BWidget-1.2.1/widget.tcl
Xlib/ayam/tcl/BWidget-1.2.1/xpm2image.tcl
Xlib/ayam/tcl/BWidget-1.2.1/images/bold.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/copy.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/cut.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/dragfile.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/dragicon.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/error.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/file.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/folder.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/hourglass.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/info.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/italic.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/minus.xbm
Xlib/ayam/tcl/BWidget-1.2.1/images/new.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/opcopy.xbm
Xlib/ayam/tcl/BWidget-1.2.1/images/open.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/openfold.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/oplink.xbm
Xlib/ayam/tcl/BWidget-1.2.1/images/opmove.xbm
Xlib/ayam/tcl/BWidget-1.2.1/images/overstrike.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/palette.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/passwd.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/paste.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/plus.xbm
Xlib/ayam/tcl/BWidget-1.2.1/images/print.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/question.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/save.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/underline.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/undo.gif
Xlib/ayam/tcl/BWidget-1.2.1/images/warning.gif
Xlib/ayam/tcl/BWidget-1.2.1/lang/de.rc
Xlib/ayam/tcl/BWidget-1.2.1/lang/en.rc
Xlib/ayam/tcl/BWidget-1.2.1/lang/es.rc
Xlib/ayam/tcl/BWidget-1.2.1/lang/fr.rc
X@dirrm lib/ayam/tcl/BWidget-1.2.1/lang
X@dirrm lib/ayam/tcl/BWidget-1.2.1/images
X@dirrm lib/ayam/tcl/BWidget-1.2.1
X@dirrm lib/ayam/tcl
X@dirrm lib/ayam
X%%DATADIR%%/ayam-splash.gif
X@dirrm %%DATADIR%%
X%%PORTDOCS%%%%DOCSDIR%%/Changes.txt
X%%PORTDOCS%%%%DOCSDIR%%/License.txt
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%%%DOCSDIR%%/Setup.txt
X%%PORTDOCS%%%%DOCSDIR%%/refcard.ps
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-1.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-2.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-3.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-4.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-5.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-6.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-7.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam-8.html
X%%PORTDOCS%%%%DOCSDIR%%/html/ayam.html
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/ampick.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/cap.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/clampnc.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/clone.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/concatnc.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/extrude.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/icurves.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/inskn.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/listbox.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/main.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/meta.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/multip.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/prefs.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/primitives.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/propgui.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/refine.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/revolve.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/skin.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/splitnc.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/ssweep.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/sweep.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/tce.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/tools.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/treeview.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/pics/view.gif
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/pics
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-ayam/pkg-plist
echo x - ayam/pkg-descr
sed 's/^X//' >ayam/pkg-descr << 'END-of-ayam/pkg-descr'
XAyam is a free 3D modeling environment for the RenderMan Interface
X(formerly known as "The Mops"). Ayam is primarily aimed at the
Xplatforms BMRT (Blue Moon Rendering Tools, a RenderMan compliant
Xrenderer by Larry Gritz (Exluna) runs on. As BMRT are available
Xin FreeBSD only as Linux binaries, Ayam will be compiled with code
Xfrom the Affine Toolkit with limited functionality.
XNo parsing of slc compiled shaders will be possible.
X
XWWW: http://www.ayam3d.org/
X
X- Igor Pokrovsky
Xtiamat@comset.net
END-of-ayam/pkg-descr
echo x - ayam/distinfo
sed 's/^X//' >ayam/distinfo << 'END-of-ayam/distinfo'
XMD5 (ayam1.6.src.tar.gz) = 4b0c04179180b7f5b075c2e4d648ae73
END-of-ayam/distinfo
echo x - ayam/Makefile
sed 's/^X//' >ayam/Makefile << 'END-of-ayam/Makefile'
X# New ports collection makefile for: ayam
X# Date created:		19 Apr 2003
X# Whom:			Igor Pokrovsky <tiamat@comset.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		ayam
XPORTVERSION=		1.6
XCATEGORIES=		graphics
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=		${PORTNAME}${PORTVERSION}
XEXTRACT_SUFX=		.src.tar.gz
X
XMAINTAINER=	tiamat@comset.net
XCOMMENT=	3D modeling environment for the RenderMan interface
X
XLIB_DEPENDS=	tcl82.1:${PORTSDIR}/lang/tcl82 \
X		tk82.1:${PORTSDIR}/x11-toolkits/tk82
X
XUSE_GL=		yes
XUSE_XLIB=	yes
XUSE_X_PREFIX=	yes
XUSE_REINPLACE=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}/src
XMAKEFILE=	Makefile.shared
X
XAYAM_PLUGINS=	csphere mfio
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/tcl/ayam.tcl
X
Xdo-install:
X# binary and wrapper
X	${INSTALL_PROGRAM} ${WRKSRC}/ayamsh ${PREFIX}/bin
X	@(${ECHO_CMD} "#!${SH}"; \
X	  ${ECHO_CMD} "${PREFIX}/bin/ayamsh ${PREFIX}/lib/ayam/tcl/ayam.tcl \$$@" \
X	) >${PREFIX}/bin/ayam
X	@${CHMOD} ugo+x ${PREFIX}/bin/ayam
X
X# plugins
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}
X.for i in ${AYAM_PLUGINS}
X	${INSTALL_DATA} ${WRKSRC}/plugins/${i}.tcl \
X		${PREFIX}/lib/${PORTNAME}
X	${INSTALL_PROGRAM} ${WRKSRC}/plugins/${i}.so \
X		${PREFIX}/lib/${PORTNAME}
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/contrib/meta/*.tcl ${PREFIX}/lib/${PORTNAME}
X	${INSTALL_PROGRAM} ${WRKSRC}/contrib/meta/metaobj.so ${PREFIX}/lib/${PORTNAME}
X
X# tcl libs
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}/tcl
X	${INSTALL_DATA} ${WRKSRC}/tcl/*.tcl ${PREFIX}/lib/${PORTNAME}/tcl
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1
X	${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/*.tcl \
X		${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1/images
X	${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/images/* \
X		${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1/images
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1/lang
X	${INSTALL_DATA} ${WRKSRC}/tcl/BWidget-1.2.1/lang/* \
X		${PREFIX}/lib/${PORTNAME}/tcl/BWidget-1.2.1/lang
X
X# data
X	@${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/lib/ayam-splash.gif ${DATADIR}
X
X# docs
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.txt ${DOCSDIR}
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/refcard.ps ${DOCSDIR}
X	@${MKDIR} ${DOCSDIR}/html
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/*.html ${DOCSDIR}/html
X	@${MKDIR} ${DOCSDIR}/html/pics
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/html/pics/* \
X		${DOCSDIR}/html/pics
X.endif
X
X.include <bsd.port.mk>
END-of-ayam/Makefile
exit
--- ayam.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401121802.i0CI2i0Z000300>