summaryrefslogtreecommitdiff
path: root/graphics/MesaDemos
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-08-01 21:40:19 +0000
committerjlam <jlam@pkgsrc.org>2006-08-01 21:40:19 +0000
commit396fe8e4c88f5a952574e3118cfdc3932d0bc247 (patch)
tree73431f86ad963ea226431316d9e99d95b7beb0c3 /graphics/MesaDemos
parent74239163b54830b0c5ea219978322486b1ab12bb (diff)
downloadpkgsrc-396fe8e4c88f5a952574e3118cfdc3932d0bc247.tar.gz
Split Mesa/Makefile.common into Makefile.common and Makefile.lib.
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.
Diffstat (limited to 'graphics/MesaDemos')
-rw-r--r--graphics/MesaDemos/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/graphics/MesaDemos/Makefile b/graphics/MesaDemos/Makefile
index 78712c8031a..881bc5baa32 100644
--- a/graphics/MesaDemos/Makefile
+++ b/graphics/MesaDemos/Makefile
@@ -1,16 +1,21 @@
-# $NetBSD: Makefile,v 1.26 2006/02/09 12:27:42 adam Exp $
+# $NetBSD: Makefile,v 1.27 2006/08/01 21:40:19 jlam Exp $
PKGNAME= MesaDemos-${MESA_VERSION}
COMMENT= OpenGL examples and Demos
-PATCHDIR= ${.CURDIR}/patches
-DISTINFO_FILE= ${.CURDIR}/distinfo
+# 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"
-.include "../../graphics/Mesa/Makefile.common"
+PATCHDIR= ${.CURDIR}/patches
+DISTINFO_FILE= ${.CURDIR}/distinfo
-USE_LANGUAGES= c c++
-USE_TOOLS+= gmake
-MAKE_FLAGS+= LIB_DEP=""
+USE_TOOLS+= gmake
+MAKE_FLAGS+= LIB_DEP=""
+
+.include "../../graphics/Mesa/buildlink3.mk"
pre-build:
cd ${WRKSRC} && ${RM} -fr src
@@ -27,5 +32,4 @@ do-install:
-rw . ${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
${CHMOD} -R a+rX ${PREFIX}/share/examples/${PKGNAME_NOREV}
-.include "../../graphics/Mesa/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"