summaryrefslogtreecommitdiff
path: root/graphics/Mesa3/Makefile
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-09-26 23:33:15 +0000
committerSteve Price <steve@FreeBSD.org>1998-09-26 23:33:15 +0000
commit5f04d00a964a61e294ed22f80ea1274b539712a8 (patch)
treeb6f86c6488d68a980426295d516eb14b50b8587e /graphics/Mesa3/Makefile
parentMASTER_SITES _must_ have a trailing slash. While we're here make (diff)
Convert to ELF.
Notes
Notes: svn path=/head/; revision=13411
Diffstat (limited to 'graphics/Mesa3/Makefile')
-rw-r--r--graphics/Mesa3/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/graphics/Mesa3/Makefile b/graphics/Mesa3/Makefile
index 638b2ce9e3e6..d74e86d067c4 100644
--- a/graphics/Mesa3/Makefile
+++ b/graphics/Mesa3/Makefile
@@ -3,7 +3,7 @@
# Date created: Tue Feb 7 12:02:49 1995
# Whom: hsu
#
-# $Id: Makefile,v 1.26 1998/08/05 09:31:07 asami Exp $
+# $Id: Makefile,v 1.27 1998/08/12 22:52:25 asami Exp $
#
DISTNAME= MesaLib-3.0beta6
@@ -18,25 +18,36 @@ MANUAL_PACKAGE_BUILD= shlib version conflict
WRKSRC= ${WRKDIR}/Mesa-3.0
-ALL_TARGET= freebsd
USE_X_PREFIX= yes
LIBS= libMesaGL libMesaGLU
-SHLIB_VERSION= 14.0
NO_LATEST_LINK= yes
do-install:
.for file in ${LIBS}
${INSTALL_DATA} ${WRKSRC}/lib/${file}.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/${file}.so.${SHLIB_VERSION} ${PREFIX}/lib
+ ${LN} -fs ${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/${file}.so
.endfor
${INSTALL_DATA} ${WRKSRC}/lib/libglut.a ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/lib/libglut.so.3.7 ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib/libglut.so.${GLUT_VERSION} ${PREFIX}/lib
+ ${LN} -fs libglut.so.${GLUT_VERSION} ${PREFIX}/lib/libglut.so
.for file in GL GLU
- @ln -fs ${PREFIX}/lib/libMesa${file}.a ${PREFIX}/lib/lib${file}.a
- @ln -fs ${PREFIX}/lib/libMesa${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/lib${file}.so.${SHLIB_VERSION}
+ @${LN} -fs libMesa${file}.a ${PREFIX}/lib/lib${file}.a
+ @${LN} -fs libMesa${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/lib${file}.so.${SHLIB_VERSION}
+ @${LN} -fs libMesa${file}.so ${PREFIX}/lib/lib${file}.so
.endfor
@${MKDIR} ${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/include/GL/* ${PREFIX}/include/GL
- ${LDCONFIG} -m ${PREFIX}/lib
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
+
+.if ${PORTOBJFORMAT} == "elf"
+ALL_TARGET= freebsd-elf
+SHLIB_VERSION= 14
+GLUT_VERSION= 3
+.else
+ALL_TARGET= freebsd
+SHLIB_VERSION= 14.0
+GLUT_VERSION= 3.7
+.endif