summaryrefslogtreecommitdiff
path: root/graphics/OpenRM/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/OpenRM/patches/patch-ah')
-rw-r--r--graphics/OpenRM/patches/patch-ah57
1 files changed, 57 insertions, 0 deletions
diff --git a/graphics/OpenRM/patches/patch-ah b/graphics/OpenRM/patches/patch-ah
new file mode 100644
index 00000000000..6900b226364
--- /dev/null
+++ b/graphics/OpenRM/patches/patch-ah
@@ -0,0 +1,57 @@
+$NetBSD: patch-ah,v 1.1 2005/06/23 04:02:48 jlam Exp $
+
+--- /dev/null 2005-06-22 02:24:06.000000000 -0400
++++ bin/mklib.libtool 2005-06-22 02:23:35.000000000 -0400
+@@ -0,0 +1,52 @@
++#!/bin/sh
++
++# Make a libtool archive
++
++# $Id: patch-ah,v 1.1 2005/06/23 04:02:48 jlam Exp $
++
++#--common--------------------------------------------------------------
++
++# Usage: mklib <archflags> <libname> <major> <minor> <file.o ... >
++#
++# <archflags> are arcitecture specific build flags
++# <libname> is name of output library (LIBRARY)
++# <major> is major version number (MAJOR)
++# <minor> is minor version number (MINOR)
++# <file.o ... > remaining arguments are object files (OBJECTS)
++#
++# added local installation target prefix (RM_INSTALL)
++# tidied up the build
++#
++# 06/22/05 Contributor: jlam at NetBSD dot org
++#
++
++ARCHFLAGS=$1
++shift 1
++
++LIBRARY=$1
++shift 1
++
++MAJOR=$1
++shift 1
++
++MINOR=$1
++shift 1
++
++VERSION=$MAJOR.$MINOR
++
++OBJECTS=
++for obj in "$@"; do
++ lobj=`basename $obj .o`.lo
++ OBJECTS="${OBJECTS} $lobj"
++done
++
++DEPLIBS="-lGL -lGLU -L${X11BASE}/lib -lX11 -lXmu"
++
++#--platform------------------------------------------------------------
++
++# build library objects
++echo "Building libtool archive $LIBRARY.la"
++libtool --mode=clean rm -f ${LIBRARY}.la
++
++# libtool specific build
++libtool --mode=link cc ${LDFLAGS} -o ${LIBRARY}.la ${OBJECTS} ${DEPLIBS} -rpath ${PREFIX}/lib -version-info ${MAJOR}:${MINOR}