freebsd-ports/graphics/openrm/files/patch-bin-mklib.linux
Edwin Groothuis bdbdf19d92 New port: graphics/openrm OpenGL based library
OpenRM Scene Graph is set of tools and utilities that
	implement a high performance, flexible and extendible scene
	graph API. Underneath OpenRM, OpenGL(tm) is used as the
	graphics platform for rendering, so OpenRM is highly portable
	and can deliver blazing rendering speeds.  OpenRM can be
	used on any platform that has OpenGL.

PR:		ports/40366
Submitted by:	Igor Pokrovsky <tiamat@telegraph.spb.ru>
2003-04-06 23:24:39 +00:00

29 lines
798 B
Text

--- bin/mklib.linux.orig Sun Jun 3 13:56:31 2001
+++ bin/mklib.linux Sun Apr 6 15:26:58 2003
@@ -58,7 +58,7 @@
MINOR=$1
shift 1
-VERSION=$MAJOR.$MINOR
+VERSION=$MAJOR
OBJECTS=$*
@@ -71,7 +71,7 @@
# Linux specific build
gcc -shared -Wl,-soname,${LIBRARY}.so.${VERSION} -o ${LIBRARY}.so.${VERSION} ${OBJECTS}
-if [[ ${ARCHFLAGS##*-} != "debug" ]]; then
+if [ ${ARCHFLAGS##*-} != "debug" ]; then
strip ${LIBRARY}.so.${VERSION}
echo "library has been stripped (non-debug build)."
fi
@@ -83,7 +83,7 @@
# local install
-if [[ -n ${RM_INSTALL} ]]; then
+if [ -n ${RM_INSTALL} ]; then
echo "Installing ${LIBRARY} librairies locally in ${RM_INSTALL}/lib..."
\cp -f ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ${RM_INSTALL}/lib
\rm -f ${RM_INSTALL}/lib/${LIBRARY}.so