summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-15 23:59:05 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-15 23:59:05 +0000
commit4725de1edfbf2d28f768ba4c967aa190c2832b1a (patch)
treefb3f40f0903904b2216b0a99fe35771d6db941a8 /graphics
parent- Update to 20050715 (diff)
- Update to 1.8.3
PR: ports/83524 Submitted by: Igor Pokrovsky <ip@doom.homeunix.org> (maintainer)
Notes
Notes: svn path=/head/; revision=139315
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ayam/Makefile2
-rw-r--r--graphics/ayam/distinfo4
-rw-r--r--graphics/ayam/files/patch-Makefile.shared115
3 files changed, 54 insertions, 67 deletions
diff --git a/graphics/ayam/Makefile b/graphics/ayam/Makefile
index 075e91e9c687..beb9e3520bf2 100644
--- a/graphics/ayam/Makefile
+++ b/graphics/ayam/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ayam
-PORTVERSION= 1.8.1
+PORTVERSION= 1.8.3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/graphics/ayam/distinfo b/graphics/ayam/distinfo
index 611f3a8052d0..736be56971fc 100644
--- a/graphics/ayam/distinfo
+++ b/graphics/ayam/distinfo
@@ -1,2 +1,2 @@
-MD5 (ayam1.8.1.src.tar.gz) = 262b114ff1695d55eb828d4c7f001fdf
-SIZE (ayam1.8.1.src.tar.gz) = 2809528
+MD5 (ayam1.8.3.src.tar.gz) = c3da09a68aaccf19e142cac208288891
+SIZE (ayam1.8.3.src.tar.gz) = 2859196
diff --git a/graphics/ayam/files/patch-Makefile.shared b/graphics/ayam/files/patch-Makefile.shared
index b8926bafaad4..809e7b3475f7 100644
--- a/graphics/ayam/files/patch-Makefile.shared
+++ b/graphics/ayam/files/patch-Makefile.shared
@@ -12,7 +12,7 @@ $FreeBSD$
#PREFIX = /opt/ayam
# if you use one of the following, be sure to change LIBDIR
# and DOCDIR to a more suitable (Ayam specific) path
-@@ -31,21 +31,21 @@
+@@ -31,14 +31,14 @@
INSTALL = ./ninstall
#INSTALL = install
@@ -20,35 +20,29 @@ $FreeBSD$
+#MKDIR = mkdir -p
# the C compiler
--CC = cc
+-#CC = cc
+CC ?= cc
#CC = gcc
# the C++ compiler (just in use for the AyCSG and onio plugin)
--CXX = CC
+-#CXX = CC
+CXX = ${CC}
- #CXX = g++-3.0
+ #CXX = g++
# the linker
- # Starting with BMRT2.5, libribout and libslcargs are in C++,
- # which forces us to use "CC" or "g++" to link the right libraries
- # automatically
--LD = CC
-+LD = ${CC}
- # for Linux, use
- #LD = g++
- # MacOSX
-@@ -73,7 +73,8 @@
- # o add -DAYOLDSLX if you compile with an Aqsis libslxargs prior to 0.7.19
- # o add -DUSE_NON_CONST if you compile with Tcl/Tk 8.4.x
-
--CFLAGS = -O -DAYUSESLCARGS -DAYUSEBMRTRIBOUT
+@@ -77,7 +77,10 @@
+ # the default configuration is to build with Affine as RIB writer without
+ # any shader parsing library (i.e. you will have to build and load a
+ # plugin for shader parsing)
+-CFLAGS = -O -DAYUSEAFFINE
++#CFLAGS = -O -DAYUSEAFFINE
++
+# make amd64 happy with fPIC
+CFLAGS += -O -fPIC -DAYUSESLXARGS -DAYUSEAQSISRIB -DAYENABLEWAIT
- # IRIX (-DAYIRIXBUG is needed by ncurve.c to work around a bug in libGLU)::
- #CFLAGS = -O -fullwarn -DAYIRIXBUG -DAYUSESLCARGS -DAYUSEBMRTRIBOUT
- # Linux:
-@@ -120,49 +121,53 @@
+
+ # simple configuration using BMRT
+ #CFLAGS = -O -DAYUSESLCARGS -DAYUSEBMRTRIBOUT
+@@ -128,49 +131,53 @@
TOGLOBJECT = togl/togl.o
# OpenGL
@@ -65,9 +59,9 @@ $FreeBSD$
# Tcl/Tk
# Tcl directory
- #TCLDIR = ../../tcl8.2.2
--TCLDIR = ../../tcl8.0
-+#TCLDIR = ../../tcl8.0
+-TCLDIR = ../../tcl8.2.2
++#TCLDIR = ../../tcl8.2.2
+ #TCLDIR = ../../tcl8.0
# Tcl includes
-TCLINC = -I$(TCLDIR)/generic
@@ -76,18 +70,18 @@ $FreeBSD$
# Tcl library
# link options for linking with Tcl library
- #TCLLIB = -L$(TCLDIR)/unix -ltcl8.2
--TCLLIB = -L$(TCLDIR)/unix -ltcl8.0
-+#TCLLIB = -L$(TCLDIR)/unix -ltcl8.0
-+TCLLIB = -L${LOCALBASE}/lib -ltcl82
+-TCLLIB = -L$(TCLDIR)/unix -ltcl8.2
++#TCLLIB = -L$(TCLDIR)/unix -ltcl8.2
+ #TCLLIB = -L$(TCLDIR)/unix -ltcl8.0
# if you have an installed Tcl/Tk, you probably just want:
#TCLLIB = -ltcl
++TCLLIB = -L${LOCALBASE}/lib -ltcl82
# Tk sources directory
# Note: You really need the Tk _sources_ in order to compile Ayam!
- #TKDIR = ../../tk8.2.2
--TKDIR = ../../tk8.0
-+#TKDIR = ../../tk8.0
+-TKDIR = ../../tk8.2.2
++#TKDIR = ../../tk8.2.2
+ #TKDIR = ../../tk8.0
# Tk includes
-TKINC = -I$(TKDIR)/generic -I$(TKDIR)/unix
@@ -96,12 +90,12 @@ $FreeBSD$
# Tk library
# link options for linking with Tk library
- #TKLIB = -L$(TKDIR)/unix -ltk8.2
--TKLIB = -L$(TKDIR)/unix -ltk8.0
-+#TKLIB = -L$(TKDIR)/unix -ltk8.0
-+TKLIB = -L${LOCALBASE}/lib -ltk82
+-TKLIB = -L$(TKDIR)/unix -ltk8.2
++#TKLIB = -L$(TKDIR)/unix -ltk8.2
+ #TKLIB = -L$(TKDIR)/unix -ltk8.0
# if you have an installed Tcl/Tk, you probably just want:
#TKLIB = -ltk
++TKLIB = -L${LOCALBASE}/lib -ltk82
# X11-libs
@@ -111,8 +105,15 @@ $FreeBSD$
#X11LIBS = -L/usr/X11R6/lib -lXmu -lXext -lX11
-@@ -177,18 +182,18 @@
-
+@@ -179,23 +186,23 @@
+ AFFINEINCDIR = ./affine/include
+ # if you use Affine as BMRT libribout replacement
+ # (also add -DAYUSEAFFINE to CFLAGS!):
+-AFFINEOBJS = ./affine/src/write.o ./affine/src/constant.o
++#AFFINEOBJS = ./affine/src/write.o ./affine/src/constant.o
+ # if you do not use Affine as BMRT libribout replacement:
+-#AFFINEOBJS =
++AFFINEOBJS =
# Aqsis
-AQSISDIR = /usr/local/aqsis
@@ -125,41 +126,30 @@ $FreeBSD$
+#AQSISOBJS =
# if you use Aqsis libslxargs (add -DAYUSESLXARGS to CFLAGS!):
-#AQSISOBJS = $(AQSISLIBDIR)/rcdummy.o $(AQSISLIBDIR)/libshadervm.so $(AQSISLIBDIR)/libshaderexecenv.so $(AQSISLIBDIR)/libslxargs.so $(AQSISLIBDIR)/libaqsistypes.so -L /usr/local/lib -llog4cpp
-+AQSISOBJS = $(AQSISLIBDIR)/libaqsis.a $(AQSISLIBDIR)/libshadervm.so $(AQSISLIBDIR)/libshaderexecenv.so $(AQSISLIBDIR)/libslxargs.so $(AQSISLIBDIR)/libaqsistypes.so -L${LOCALBASE}/lib $(AQSISLIBDIR)/libraytrace.so -lstdc++
++AQSISOBJS = $(AQSISLIBDIR)/libaqsis.a $(AQSISLIBDIR)/libshadervm.so $(AQSISLIBDIR)/libshaderexecenv.so $(AQSISLIBDIR)/libslxargs.so $(AQSISLIBDIR)/libaqsistypes.so -L ${LOCALBASE}/lib $(AQSISLIBDIR)/libraytrace.so -lstdc++
# if you do not use Aqsis libri2rib as BMRT libribout replacement:
- #AQSISRI2RIB =
+-AQSISRI2RIB =
++#AQSISRI2RIB =
# if you use Aqsis libri2rib (add -DAYUSEAQSISRIB to CFLAGS above!):
--AQSISRI2RIB = $(AQSISLIBDIR)/libri2rib.so -L /usr/local/lib -llog4cpp
+-#AQSISRI2RIB = $(AQSISLIBDIR)/libri2rib.so -L /usr/local/lib -llog4cpp
+AQSISRI2RIB = $(AQSISLIBDIR)/libri2rib.so -L${AQSISLIBDIR} -lstdc++ ${PTHREAD_LIBS}
# BMRT
-@@ -199,9 +204,9 @@
- BMRTINCDIR = $(BMRTDIR)/include
- BMRTLIBDIR = $(BMRTDIR)/lib
- # if you use BMRT libribout and not Affine:
--RIBOUTLIB = -L$(BMRTLIBDIR) -lribout
-+#RIBOUTLIB = -L$(BMRTLIBDIR) -lribout
- # if you use Affine or Aqsis libri2rib as BMRT libribout replacement:
--#RIBOUTLIB =
-+RIBOUTLIB =
- # if you do not use libslcargs from BMRT:
- SLCARGSLIB =
- # if you use Affine as BMRT libribout replacement and libslcargs from BMRT:
-@@ -211,9 +216,9 @@
- # Dynamic Loading
- # Library for dynamic loading (contains dlopen())
- # Linux, IRIX, Solaris, (MacOSX: get libdl from Fink!):
--DL = -ldl
-+#DL = -ldl
+@@ -220,9 +227,9 @@
+ # IRIX, Solaris, (MacOSX: get libdl from Fink!):
+ #DL = -ldl
+ # Linux:
+-DL = -ldl -lpthread
++#DL = -ldl -lpthread
# NetBSD:
-#DL =
+DL =
# linker flags to produce shared modules:
# Linux, Solaris, IRIX:
-@@ -227,8 +232,8 @@
+@@ -236,8 +243,8 @@
RRIBLIBS = -L$(AFFINEDIR)/lib -lribrdr -lribhash -lribnop -lm
# Ayslx Plugin (Aqsis)
@@ -170,15 +160,12 @@ $FreeBSD$
# Ayso Plugin (RenderDotC, RDC)
RDCDIR = /usr/local/rdc
-@@ -422,9 +427,9 @@
+@@ -431,7 +438,7 @@
.cpp.o:
$(CXX) -c $(CFLAGS) $*.cpp -o $@ -I. -IMF3D -I$(TOGLINCDIR) $(TCLINC) $(TKINC) -I$(BMRTINCDIR) -I$(GLINCDIR) -I$(AFFINEINCDIR) -I$(AQSISINCDIR) -I$(OPENCSGINCDIR) -I$(GLEWINCDIR) -Iplugins
-all: ayamsh csphere.so mfio.so metaobj.so
+all: ayamsh csphere.so mfio.so metaobj.so ayslx.so
--ayamsh: $(AYAMOBJS) $(TOGLOBJECT) $(AFFINEOBJS)
-+ayamsh: $(AYAMOBJS) $(TOGLOBJECT)
+ ayamsh: $(AYAMOBJS) $(TOGLOBJECT) $(AFFINEOBJS)
$(LD) $(AYAMOBJS) $(TOGLOBJECT) $(EXLDFLAGS) -o ayamsh $(TKLIB) $(TCLLIB) $(GLLIBS) $(X11LIBS) $(RIBOUTLIB) $(AQSISRI2RIB) $(SLCARGSLIB) $(AFFINEOBJS) $(AQSISOBJS) $(TIFFLIB) -lm $(DL)
-
- aycsg.so: $(AYCSGOBJS) $(OPENCSGOBJS)