summaryrefslogtreecommitdiff
path: root/graphics/openrm/files/patch-bin-mklib.freebsd
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-24 09:03:28 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-24 09:03:28 +0000
commit8917c8e4e6510c02b971565855cc56fb60f876b7 (patch)
treeadfd661639ad269ccab517bb972ff43732c56661 /graphics/openrm/files/patch-bin-mklib.freebsd
parentiUpdate port: net/cvsync 0.24.7 (diff)
Update port: graphics/openrm 1.4.3 -> 1.5.0
Updating port 1.4.3 -> 1.5.0 details: 1. Fixed contact emails 2. Wrote patches for the port in a different manner (now it would be easier to submit them to openrm developers) Unfortunatly openrm has quite ugly building environment, so MAKE_ARGS still remain. 3. Removed comments around pthread_setconcurrency in both library sources and one of demos. This function has been finally added to STABLE. PR: ports/56996 Submitted by: Igor Pokrovsky <tiamat@comset.net>
Notes
Notes: svn path=/head/; revision=89158
Diffstat (limited to 'graphics/openrm/files/patch-bin-mklib.freebsd')
-rw-r--r--graphics/openrm/files/patch-bin-mklib.freebsd62
1 files changed, 62 insertions, 0 deletions
diff --git a/graphics/openrm/files/patch-bin-mklib.freebsd b/graphics/openrm/files/patch-bin-mklib.freebsd
new file mode 100644
index 000000000000..e05c94eff00d
--- /dev/null
+++ b/graphics/openrm/files/patch-bin-mklib.freebsd
@@ -0,0 +1,62 @@
+--- /dev/null Fri Sep 19 10:51:17 2003
++++ bin/mklib.freebsd Fri Sep 19 10:51:54 2003
+@@ -0,0 +1,59 @@
++#!/bin/sh
++
++# Make a FreeBSD ELF shared library
++
++# $Id$
++
++#--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
++#
++# 04/23/01 jdb
++#
++
++ARCHFLAGS=$1
++shift 1
++
++LIBRARY=$1
++shift 1
++
++MAJOR=$1
++shift 1
++
++MINOR=$1
++shift 1
++
++# we don't care about ${MINOR} here
++VERSION=$MAJOR
++
++OBJECTS=$*
++
++DEPLIBS="-lGL -lGLU -L${X11BASE}/lib -lXmu"
++
++#--platform------------------------------------------------------------
++
++# build library objects
++${ECHO_CMD} "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a"
++${RM} -f ${LIBRARY}.a ${LIBRARY}.so.${VERSION}
++${AR} qv ${LIBRARY}.a ${OBJECTS}
++
++# FreeBSD specific build
++${CC} -shared -Wl,-soname,${LIBRARY}.so.${VERSION} -o ${LIBRARY}.so.${VERSION} ${OBJECTS} ${DEPLIBS}
++if [ ${ARCHFLAGS##*-} != "debug" ]; then
++ ${STRIP_CMD} ${LIBRARY}.so.${VERSION}
++ ${ECHO_CMD} "library has been stripped (non-debug build)."
++fi
++
++# code tree
++${CP} ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ../lib
++${RM} -f ../lib/${LIBRARY}.so
++${LN} -s ${LIBRARY}.so.${VERSION} ${LIBRARY}.so