summaryrefslogtreecommitdiff
path: root/graphics/OpenRM/patches/patch-ah
blob: 6264183bfc3b01e629cb095bd07b258f15e9ca96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
$NetBSD: patch-ah,v 1.2 2011/07/21 17:04:46 joerg 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,48 @@
+#!/bin/sh
+
+# Make a libtool archive
+
+# $Id: patch-ah,v 1.2 2011/07/21 17:04:46 joerg 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------------------------------------------------------------
+
+# libtool specific build
+libtool --mode=link ${REAL_CC} ${LDFLAGS} -o ${LIBRARY}.la ${OBJECTS} ${DEPLIBS} -rpath ${PREFIX}/lib -version-info ${MAJOR}:${MINOR}