pkgsrc/graphics/MesaDemos/Makefile
joerg d26cf36e57 - fine grained X11 dependencies for packages which have either USE_IMAKE
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
2006-12-27 13:37:35 +00:00

38 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2006/12/27 13:37:38 joerg Exp $
PKGNAME= MesaDemos-${MESA_VERSION}
COMMENT= OpenGL examples and Demos
# We include Makefile.lib instead of Makefile.common since we actually
# build the Mesa libraries as part of the build process, even though we
# don't install them.
#
.include "../../graphics/Mesa/Makefile.lib"
PATCHDIR= ${.CURDIR}/patches
DISTINFO_FILE= ${.CURDIR}/distinfo
USE_TOOLS+= gmake
MAKE_FLAGS+= LIB_DEP=""
.include "../../graphics/Mesa/buildlink3.mk"
pre-build:
cd ${WRKSRC} && ${RM} -fr src
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
cd ${WRKSRC}/progs && ${PAX} \
-s ',^./.*Makefile.*,,' \
-s ',^./CVS.*,,' \
-s ',^./.*\.o$$,,' \
-s ',^./\.libs.*,,' \
-s ',^./\.deps.*,,' \
-s ',^./.*\.orig$$,,' \
-rw . ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
${CHMOD} -R a+rX ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"