396fe8e4c8
The latter is used by packages that build libraries from the Mesa sources, while the former is only if the package builds from the Mesa sources. Modify the various Mesa packages to include the proper Makefile, and add some documentation to the Makefiles. As a side effect, this suppresses the "duplicate target" warning in graphics/glx-utils that was caused by having the same distfile listed in DISTFILES more than once.
30 lines
781 B
Makefile
30 lines
781 B
Makefile
# $NetBSD: Makefile,v 1.45 2006/08/01 21:40:20 jlam Exp $
|
|
|
|
PKGNAME= glut-${MESA_VERSION}
|
|
COMMENT= GLUT Graphics library similar to SGI's OpenGL
|
|
|
|
CONFLICTS+= Mesa-glx-[0-9]*
|
|
CONFLICTS+= Mesa<3.2.1
|
|
|
|
.include "../../graphics/Mesa/Makefile.lib"
|
|
|
|
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_VERSION}
|
|
BUILDLINK_API_DEPENDS.glu+= glu>=${MESA_VERSION}
|
|
|
|
INSTLIBS= ${WRKSRC}/src/glut/glx/libglut.la
|
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
.include "../../graphics/glu/buildlink3.mk"
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && ${RM} -fr src/mesa src/glu src/glw progs
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
|
|
cd ${WRKSRC}/include/GL; for hdr in \
|
|
glut.h glutf90.h; \
|
|
do \
|
|
${INSTALL_DATA} $${hdr} ${PREFIX}/include/GL; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|