Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2000 23:41:35 +0900
From:      "Mas.TAKEMURA" <mastake@msel.t.u-tokyo.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18656: New Ports linux_mesa3 with RedHat Package
Message-ID:  <20000518234135E.takemura@naoe.t.u-tokyo.ac.jp>

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

>Number:         18656
>Category:       ports
>Synopsis:       New Ports linux_mesa3 with RedHat Package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 18 07:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Masahiro TAKEMURA
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
University of Tokyo, Japan.
>Environment:
>Description:
	To run Jun for Smalltalk in VisualWorks with Linux Emulation,
	I need Linux Version of MesaLib.
	So I made this port to be easier to install.

>How-To-Repeat:
>Fix:
# 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:
#
#	linux_mesa3
#	linux_mesa3/Makefile
#	linux_mesa3/files
#	linux_mesa3/files/md5
#	linux_mesa3/pkg
#	linux_mesa3/pkg/PLIST
#	linux_mesa3/pkg/DESCR
#	linux_mesa3/pkg/COMMENT
#
echo c - linux_mesa3
mkdir -p linux_mesa3 > /dev/null 2>&1
echo x - linux_mesa3/Makefile
sed 's/^X//' >linux_mesa3/Makefile << 'END-of-linux_mesa3/Makefile'
XPORTNAME=		linux_mesa
XPORTVERSION=		3.2.2
XCATEGORIES=		graphics emulators linux
XMASTER_SITES=		${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
XDISTFILES=		Mesa-${PORTVERSION:S/./-/g:S/-/./}.${MACHINE_ARCH}.rpm
X
XPATCH_SITES=		${RPM_MIRRORS:S/__DIR__/${UPDDIR}/g}
XPATCHFILES=
X
XMAINTAINER=		mastake@msel.t.u-tokyo.ac.jp
X
XBUILD_DEPENDS=		rpm2cpio:${PORTSDIR}/misc/rpm
XRUN_DEPENDS=		\
X	/compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
X
XONLY_FOR_ARCHS=		i386
XDIST_SUBDIR=		rpm
XPREFIX=			/compat/linux
XEXTRACT_ONLY=
XNO_BUILD=		yes
XNO_FILTER_SHLIBS=	yes
XNO_MTREE=		yes
X
XRPM_MIRRORS=		\
X	ftp://ftp.freesoftware.com/pub/linux/redhat/__DIR__/ \
X	ftp://ftp.redhat.com/redhat/__DIR__/ \
X	ftp://ftp.infomagic.com/pub/mirrors/linux/RedHat/__DIR__/ \
X	ftp://ftp.crc.ca/mirrors/by-site/ftp.redhat.com/redhat/__DIR__/ \
X	ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
X	ftp://mirror.nucba.ac.jp/mirror/redhat/__DIR__/ \
X	ftp://ftp.is.co.za/linux/distributions/redhat/__DIR__/ \
X	ftp://mirror.aarnet.edu.au/pub/linux/redhat/__DIR__/
X
XSTDDIR=			redhat-6.2/${MACHINE_ARCH}/RedHat/RPMS
XUPDDIR=			updates/6.2/${MACHINE_ARCH}
X
X.include <bsd.port.pre.mk>
X
XRPMDIR=			${DISTDIR}/${DIST_SUBDIR}
X
Xdo-install:
X	@if [ -z "`kldstat -v | ${GREP} -E 'linux(aout|elf)'`" ]; then \
X		${ECHO} 'Linux mode is not enabled.\
X			Loading linux kernel module...' | fmt; \
X		linux || { \
X		${ECHO} 'The linux kernel module could not be loaded.\
X			Please manually load the module and retry.\
X			See "man linux" for details.' | fmt; \
X		${FALSE}; \
X		};\
X	fi
X#
X# Install all packages.
X#
X	@for R in ${DISTFILES}; do \
X		${ECHO} $$R; \
X		cd ${PREFIX} && rpm2cpio ${RPMDIR}/$$R | cpio -di; \
X	done
X#
X# Install updates
X#
X	@for R in ${PATCHFILES}; do \
X		${ECHO} $$R; \
X		cd ${PREFIX} && rpm2cpio ${RPMDIR}/$$R | cpio -di; \
X	done
X#
X# Create Symbolic link
X#
X	@for R in GL GLU; do \
X		cd ${PREFIX}/usr/X11R6/lib && ${LN} -s lib$$R.so libMesa$$R.so; \
X	done
X#
X# Finish
X#
X	${PREFIX}/sbin/ldconfig
X
X.include <bsd.port.post.mk>
END-of-linux_mesa3/Makefile
echo c - linux_mesa3/files
mkdir -p linux_mesa3/files > /dev/null 2>&1
echo x - linux_mesa3/files/md5
sed 's/^X//' >linux_mesa3/files/md5 << 'END-of-linux_mesa3/files/md5'
XMD5 (rpm/Mesa-3.2-2.i386.rpm) = 593aa72451380019b466edad1120b02e
END-of-linux_mesa3/files/md5
echo c - linux_mesa3/pkg
mkdir -p linux_mesa3/pkg > /dev/null 2>&1
echo x - linux_mesa3/pkg/PLIST
sed 's/^X//' >linux_mesa3/pkg/PLIST << 'END-of-linux_mesa3/pkg/PLIST'
Xetc/mesa.conf
Xusr/X11R6/lib/libGL.la
Xusr/X11R6/lib/libGL.so
Xusr/X11R6/lib/libGL.so.1
Xusr/X11R6/lib/libGL.so.1.2.0
Xusr/X11R6/lib/libGLU.la
Xusr/X11R6/lib/libGLU.so
Xusr/X11R6/lib/libGLU.so.1
Xusr/X11R6/lib/libGLU.so.1.2.0
Xusr/X11R6/lib/libglut.la
Xusr/X11R6/lib/libglut.so
Xusr/X11R6/lib/libglut.so.3
Xusr/X11R6/lib/libglut.so.3.7.0
Xusr/X11R6/lib/libMesaGL.so
Xusr/X11R6/lib/libMesaGLU.so
X@dirrm etc
X@dirrm usr/X11R6/lib
X@dirrm usr/X11R6
X@dirrm usr
END-of-linux_mesa3/pkg/PLIST
echo x - linux_mesa3/pkg/DESCR
sed 's/^X//' >linux_mesa3/pkg/DESCR << 'END-of-linux_mesa3/pkg/DESCR'
XThis port installs a Linux shared library of Mesa from RedHat Package,
Xto be used by Linux programs.
X
XMesa is a 3-D graphics library with an API which is very similar to that
Xof OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
Xor state machine, it is being used with authorization from Silicon Graphics,
XInc.  However, the author makes no claim that Mesa is in any way a
Xcompatible replacement for OpenGL or associated with Silicon Graphics, Inc.
XThose who want a licensed implementation of OpenGL should contact a licensed
Xvendor.  This software is distributed under the terms of the GNU Library
XGeneral Public License, see the LICENSE file for details.
END-of-linux_mesa3/pkg/DESCR
echo x - linux_mesa3/pkg/COMMENT
sed 's/^X//' >linux_mesa3/pkg/COMMENT << 'END-of-linux_mesa3/pkg/COMMENT'
XInstalls Linux shared library of Mesa from RedHat Pachage
END-of-linux_mesa3/pkg/COMMENT
exit


>Release-Note:
>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?20000518234135E.takemura>