Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Mar 1998 17:47:01 -0800 (PST)
From:      dburr@POBoxes.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5919: Fix port graphics/Mesa, to build+install Mesaaux and Mesatk lib
Message-ID:  <199803050147.RAA09033@colossus.dyn.ml.org>

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

>Number:         5919
>Category:       ports
>Synopsis:       Fix port graphics/Mesa, to build+install Mesaaux and Mesatk lib
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar  4 17:50:01 PST 1998
>Last-Modified:
>Originator:     Donald Burr
>Organization:
Starfleet Command
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

	
FreeBSD 2.2.5, ports tree ftp'd last night

>Description:

	
A program I am trying to compile needs the Mesaaux and Mesatk libraries
and headers.  These weren't included in the Mesa port.  After poking
around in the Mesa ftp site, I discovered that the code for these libs
is in the MesaDemos tarball.

I've therefore fixed the Mesa port, so that it now fetches and extracts
the MesaDemos tarball along with MesaLib, and properly builds and installs
these two libraries.

>How-To-Repeat:

	
Try building a Mesa port that uses Mesaaux &/or Mesatk (such as the 'tank'
game I recently send-pr'd) with the old Mesa port, you'll see what I mean.

>Fix:
	
	

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1.4).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1998-03-04 17:43 PST by <dburr@control.colossus.dyn.ml.org>.
# Source directory was `/usr/ports/graphics'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    122 -rw-r--r-- Mesa/files/md5
#    173 -rw-r--r-- Mesa/patches/patch-aa
#     44 -rw-r--r-- Mesa/pkg/COMMENT
#    590 -rw-r--r-- Mesa/pkg/DESCR
#    642 -rw-r--r-- Mesa/pkg/PLIST
#   1297 -rw-r--r-- Mesa/Makefile
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= Mesa/files/md5 ==============
if test ! -d 'Mesa'; then
  echo 'x - creating directory Mesa'
  mkdir 'Mesa'
fi
if test ! -d 'Mesa/files'; then
  echo 'x - creating directory Mesa/files'
  mkdir 'Mesa/files'
fi
if test -f 'Mesa/files/md5' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/files/md5 (file already exists)'
else
  echo 'x - extracting Mesa/files/md5 (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/files/md5' &&
MD5 (MesaLib-2.6.tar.gz) = ee27bf2548dbc2031974c33ee6226c0c
MD5 (MesaDemos-2.6.tar.gz) = 6eef61e387f71a76b855ab6b3d2c89e5
SHAR_EOF
  $shar_touch -am 0304040698 'Mesa/files/md5' &&
  chmod 0644 'Mesa/files/md5' ||
  echo 'restore of Mesa/files/md5 failed'
  shar_count="`wc -c < 'Mesa/files/md5'`"
  test 122 -eq "$shar_count" ||
    echo "Mesa/files/md5: original size 122, current size $shar_count"
fi
# ============= Mesa/patches/patch-aa ==============
if test ! -d 'Mesa/patches'; then
  echo 'x - creating directory Mesa/patches'
  mkdir 'Mesa/patches'
fi
if test -f 'Mesa/patches/patch-aa' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/patches/patch-aa (file already exists)'
else
  echo 'x - extracting Mesa/patches/patch-aa (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/patches/patch-aa' &&
--- Make-config.orig	Fri Nov 21 20:05:40 1997
+++ Make-config	Fri Nov 21 20:06:25 1997
@@ -1,6 +1,6 @@
X # Make-config
X 
-MAJOR=2
+MAJOR=13
X MINOR=6
X VERSION=$MAJOR.$MINOR
X 
SHAR_EOF
  $shar_touch -am 0304040298 'Mesa/patches/patch-aa' &&
  chmod 0644 'Mesa/patches/patch-aa' ||
  echo 'restore of Mesa/patches/patch-aa failed'
  shar_count="`wc -c < 'Mesa/patches/patch-aa'`"
  test 173 -eq "$shar_count" ||
    echo "Mesa/patches/patch-aa: original size 173, current size $shar_count"
fi
# ============= Mesa/pkg/COMMENT ==============
if test ! -d 'Mesa/pkg'; then
  echo 'x - creating directory Mesa/pkg'
  mkdir 'Mesa/pkg'
fi
if test -f 'Mesa/pkg/COMMENT' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/pkg/COMMENT (file already exists)'
else
  echo 'x - extracting Mesa/pkg/COMMENT (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/pkg/COMMENT' &&
A graphics library similar to SGI's OpenGL.
SHAR_EOF
  $shar_touch -am 0304040298 'Mesa/pkg/COMMENT' &&
  chmod 0644 'Mesa/pkg/COMMENT' ||
  echo 'restore of Mesa/pkg/COMMENT failed'
  shar_count="`wc -c < 'Mesa/pkg/COMMENT'`"
  test 44 -eq "$shar_count" ||
    echo "Mesa/pkg/COMMENT: original size 44, current size $shar_count"
fi
# ============= Mesa/pkg/DESCR ==============
if test -f 'Mesa/pkg/DESCR' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/pkg/DESCR (file already exists)'
else
  echo 'x - extracting Mesa/pkg/DESCR (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/pkg/DESCR' &&
Mesa is a 3-D graphics library with an API which is very similar to that
of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
Those who want a licensed implementation of OpenGL should contact a licensed
vendor.  This software is distributed under the terms of the GNU Library
General Public License, see the LICENSE file for details.
X
paulo@isr.uc.pt
SHAR_EOF
  $shar_touch -am 0304040298 'Mesa/pkg/DESCR' &&
  chmod 0644 'Mesa/pkg/DESCR' ||
  echo 'restore of Mesa/pkg/DESCR failed'
  shar_count="`wc -c < 'Mesa/pkg/DESCR'`"
  test 590 -eq "$shar_count" ||
    echo "Mesa/pkg/DESCR: original size 590, current size $shar_count"
fi
# ============= Mesa/pkg/PLIST ==============
if test -f 'Mesa/pkg/PLIST' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/pkg/PLIST (file already exists)'
else
  echo 'x - extracting Mesa/pkg/PLIST (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/pkg/PLIST' &&
include/GL/FooMesa.h
include/GL/dosmesa.h
include/GL/fxmesa.h
include/GL/gl.h
include/GL/gl_mangle.h
include/GL/glu.h
include/GL/glu_mangle.h
include/GL/glut.h
include/GL/glx.h
include/GL/glx_mangle.h
include/GL/gmesa.h
include/GL/mglmesa.h
include/GL/osmesa.h
include/GL/svgamesa.h
include/GL/wmesa.h
include/GL/xmesa.h
include/glaux.h
include/gltk.h
lib/libGL.a
lib/libGL.so.13.6
lib/libGLU.a
lib/libGLU.so.13.6
lib/libMesaGL.a
lib/libMesaGL.so.13.6
lib/libMesaGLU.a
lib/libMesaGLU.so.13.6
lib/libMesaaux.a
lib/libMesaaux.so.13.6
lib/libMesatk.a
lib/libMesatk.so.13.6
lib/libglut.a
lib/libglut.so.3.6
@exec ldconfig -m %B
@dirrm include/GL
SHAR_EOF
  $shar_touch -am 0304042998 'Mesa/pkg/PLIST' &&
  chmod 0644 'Mesa/pkg/PLIST' ||
  echo 'restore of Mesa/pkg/PLIST failed'
  shar_count="`wc -c < 'Mesa/pkg/PLIST'`"
  test 642 -eq "$shar_count" ||
    echo "Mesa/pkg/PLIST: original size 642, current size $shar_count"
fi
# ============= Mesa/Makefile ==============
if test -f 'Mesa/Makefile' && test X"$1" != X"-c"; then
  echo 'x - skipping Mesa/Makefile (file already exists)'
else
  echo 'x - extracting Mesa/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Mesa/Makefile' &&
# New ports collection makefile for:    Mesa
# Version required:     2.6
# Date created:         Tue Feb  7 12:02:49  1995
# Whom:                 hsu
#
# $Id: Makefile,v 1.22 1998/02/15 17:13:13 jseger Exp $
#
X
DISTNAME=       MesaLib-2.6
PKGNAME=	Mesa-2.6
CATEGORIES=	graphics
MASTER_SITES= 	ftp://iris.ssec.wisc.edu/pub/Mesa/
DISTFILES=	${DISTNAME}.tar.gz MesaDemos-2.6.tar.gz
X
MAINTAINER=	jseger@FreeBSD.org
X
WRKSRC=		${WRKDIR}/${PKGNAME}
X
ALL_TARGET=	freebsd
USE_X11=	yes
LIBS=		libMesaGL libMesaGLU libMesaaux libMesatk
SHLIB_VERSION=	13.6
X
do-install:
X.for file in ${LIBS}
X	${INSTALL_DATA} ${WRKSRC}/lib/${file}.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/lib/${file}.so.${SHLIB_VERSION} ${PREFIX}/lib
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/lib/libglut.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/lib/libglut.so.3.6 ${PREFIX}/lib
X.for file in GL GLU
X	@ln -fs ${PREFIX}/lib/libMesa${file}.a ${PREFIX}/lib/lib${file}.a
X	@ln -fs ${PREFIX}/lib/libMesa${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/lib${file}.so.${SHLIB_VERSION}
X.endfor
X	@${MKDIR} ${PREFIX}/include/GL
X	${INSTALL_DATA} ${WRKSRC}/include/GL/* ${PREFIX}/include/GL
X	${INSTALL_DATA} ${WRKSRC}/include/glaux.h ${PREFIX}/include
X	${INSTALL_DATA} ${WRKSRC}/include/gltk.h ${PREFIX}/include
X	${LDCONFIG} -m ${PREFIX}/lib
X
X.include <bsd.port.mk>
SHAR_EOF
  $shar_touch -am 0304040798 'Mesa/Makefile' &&
  chmod 0644 'Mesa/Makefile' ||
  echo 'restore of Mesa/Makefile failed'
  shar_count="`wc -c < 'Mesa/Makefile'`"
  test 1297 -eq "$shar_count" ||
    echo "Mesa/Makefile: original size 1297, current size $shar_count"
fi
exit 0
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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