POV-Ray : Newsgroups : povray.unix : Megapov 0.7 : Re: Megapov 0.7 Server Time
28 Jul 2024 14:24:48 EDT (-0400)
  Re: Megapov 0.7  
From: Warp
Date: 9 May 2001 07:01:32
Message: <3af9238c@news.povray.org>
Dennis Clarke <dcl### [at] interlogcom> wrote:
: Any ideas on a build for Solaris 8 and UltraSparc ?

  Just download the MegaPov source, copy it over the official povray source
and compile it yourself.
  Here is a makefile (requires gmake) you can use to build it (fix the
paths to the libraries where necessary). Put it in the unix/ directory
and compile from there.

--------8<--------8<--------8<--------8<--------8<--------8<--------8<-------

### Change to gcc if you prefer:
CC = cc
LD = cc

INCLUDES = $(SRCINC) $(LIBPNGINC) $(ZLIBINC) $(XLIBINC)

CFLAGS = -fast -xarch=v9 -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(INCLUDES)
### Or if using gcc:
#CFLAGS = -O3 -ffast-math -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(INCLUDES)

LFLAGS = -xarch=v9 $(LIBPNGLIB) $(ZLIBLIB) $(XLIBLIB) -lm
### Or if using gcc:
#LFLAGS = $(LIBPNGLIB) $(ZLIBLIB) $(XLIBLIB) -lm

X11 = /usr/openwin
XLIBINC = -I$(X11)/include
XLIBLIB = -L$(X11)/lib -lX11

PNGDIR = /share/local5/include
LIBPNGINC = -I$(PNGDIR)
LIBPNGLIB = -L/share/local5/lib -lpng

ZLIBDIR = /share/local5/include
ZLIBINC = -I$(ZLIBDIR)
ZLIBLIB = -L/share/local5/lib -lz

SRCDIR = ..
SRCINC = -I$(SRCDIR) -I.

SRC = $(wildcard $(SRCDIR)/*.c) $(wildcard *.c)
HEADERS = $(wildcard $(SRCDIR)/*.h) $(wildcard *.h)

BIN = xmegapov

$(BIN): $(SRC:.c=.o)
	$(LD) $^ -o $(BIN) $(LFLAGS)

include .makefile.dep

depend:
	gcc $(INCLUDES) -MM $(SRC) > .makefile.dep

.makefile.dep:
	- gcc $(INCLUDES) -MM $(SRC) > .makefile.dep

--------8<--------8<--------8<--------8<--------8<--------8<--------8<-------


-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.