diff options
author | SADA Kenji <sada@FreeBSD.org> | 2001-12-23 12:28:56 +0000 |
---|---|---|
committer | SADA Kenji <sada@FreeBSD.org> | 2001-12-23 12:28:56 +0000 |
commit | 521d9539257875ed2f8bcbfd93bb4b56c45d8740 (patch) | |
tree | f3458481412cff291c8ca2b1c34e8b24699b1e46 /graphics/linux_mesa3 | |
parent | d1d021e1ad0b4028ee80782b4f0ef7cca9cff2d5 (diff) | |
download | ports-521d9539257875ed2f8bcbfd93bb4b56c45d8740.tar.gz ports-521d9539257875ed2f8bcbfd93bb4b56c45d8740.zip |
Notes
Diffstat (limited to 'graphics/linux_mesa3')
-rw-r--r-- | graphics/linux_mesa3/Makefile | 29 | ||||
-rw-r--r-- | graphics/linux_mesa3/pkg-plist | 16 |
2 files changed, 29 insertions, 16 deletions
diff --git a/graphics/linux_mesa3/Makefile b/graphics/linux_mesa3/Makefile index 39b23bc482db..4673e1e4bb11 100644 --- a/graphics/linux_mesa3/Makefile +++ b/graphics/linux_mesa3/Makefile @@ -18,24 +18,23 @@ DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \ MAINTAINER= mastake@msel.t.u-tokyo.ac.jp -BUILD_DEPENDS= ${PREFIX}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base \ - ${PREFIX}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools -RUN_DEPENDS= ${PREFIX}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base +BUILD_DEPENDS= ${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base \ + ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools USE_BZIP2= yes ONLY_FOR_ARCHS= i386 -PREFIX= /compat/linux +USE_LINUX_PREFIX= yes WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION} NO_FILTER_SHLIBS= yes NO_MTREE= yes -INSTALL= ${PREFIX}/usr/bin/install +INSTALL= ${LINUXBASE}/usr/bin/install GNU_CONFIGURE= yes CONFIGURE_TARGET= # CONFIGURE_ARGS= --libdir="${PREFIX}/usr/X11R6/lib" \ --includedir="${PREFIX}/usr/X11R6/include" -CONFIGURE_ENV= PATH="/compat/linux/bin:/compat/linux/usr/bin:${PATH}"\ +CONFIGURE_ENV= PATH="${LINUXBASE}/bin:${LINUXBASE}/usr/bin:${PATH}" \ GL_MAJOR_VER="${GL_MAJOR_VER}" \ GL_MINOR_VER="${GL_MINOR_VER}" \ GLUT_MAJOR_VER="${GLUT_MAJOR_VER}" \ @@ -45,11 +44,21 @@ GL_MINOR_VER= 3 GLUT_MAJOR_VER= 3 GLUT_MINOR_VER= 8 -MAKE_ENV= PATH=${PREFIX}/usr/bin:${PATH} +MAKE_ENV= PATH=${LINUXBASE}/usr/bin:${PATH} +STRIP_CMD= ${LINUXBASE}/usr/bin/strip -.include <bsd.port.pre.mk> +PLIST_SUB+= GL_MAJOR_VER=${GL_MAJOR_VER} \ + GL_MINOR_VER=${GL_MINOR_VER} \ + GLUT_MAJOR_VER=${GLUT_MAJOR_VER} \ + GLUT_MINOR_VER=${GLUT_MINOR_VER} post-install: - ${PREFIX}/sbin/ldconfig + ${STRIP_CMD} ${PREFIX}/usr/X11R6/lib/libglut.so.${GLUT_MAJOR_VER}.${GLUT_MINOR_VER}.0 + @for R in GL GLU; do \ + ${STRIP_CMD} ${PREFIX}/usr/X11R6/lib/lib$$R.so.${GL_MAJOR_VER}.${GL_MINOR_VER}.0; \ + ${LN} -s lib$$R.so ${PREFIX}/usr/X11R6/lib/libMesa$$R.so; \ + ${LN} -s lib$$R.so.${GL_MAJOR_VER} ${PREFIX}/usr/X11R6/lib/libMesa$$R.so.${GL_MAJOR_VER}; \ + done + ${LINUXBASE}/sbin/ldconfig -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/graphics/linux_mesa3/pkg-plist b/graphics/linux_mesa3/pkg-plist index 06692159ce9c..749f06a51369 100644 --- a/graphics/linux_mesa3/pkg-plist +++ b/graphics/linux_mesa3/pkg-plist @@ -1,15 +1,19 @@ -usr/X11R6/lib/libGL.so.1.3.0 -usr/X11R6/lib/libGL.so.1 +usr/X11R6/lib/libGL.so.%%GL_MAJOR_VER%%.%%GL_MINOR_VER%%.0 +usr/X11R6/lib/libGL.so.%%GL_MAJOR_VER%% usr/X11R6/lib/libGL.so usr/X11R6/lib/libGL.la -usr/X11R6/lib/libGLU.so.1.3.0 -usr/X11R6/lib/libGLU.so.1 +usr/X11R6/lib/libGLU.so.%%GL_MAJOR_VER%%.%%GL_MINOR_VER%%.0 +usr/X11R6/lib/libGLU.so.%%GL_MAJOR_VER%% usr/X11R6/lib/libGLU.so usr/X11R6/lib/libGLU.la -usr/X11R6/lib/libglut.so.3.8.0 -usr/X11R6/lib/libglut.so.3 +usr/X11R6/lib/libglut.so.%%GLUT_MAJOR_VER%%.%%GLUT_MINOR_VER%%.0 +usr/X11R6/lib/libglut.so.%%GLUT_MAJOR_VER%% usr/X11R6/lib/libglut.so usr/X11R6/lib/libglut.la +usr/X11R6/lib/libMesaGL.so.%%GL_MAJOR_VER%% +usr/X11R6/lib/libMesaGL.so +usr/X11R6/lib/libMesaGLU.so.%%GL_MAJOR_VER%% +usr/X11R6/lib/libMesaGLU.so etc/mesa.conf usr/X11R6/include/GL/gl.h usr/X11R6/include/GL/glext.h |