diff options
author | jlam <jlam@pkgsrc.org> | 2006-08-01 21:40:19 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-08-01 21:40:19 +0000 |
commit | 396fe8e4c88f5a952574e3118cfdc3932d0bc247 (patch) | |
tree | 73431f86ad963ea226431316d9e99d95b7beb0c3 /graphics/Mesa/Makefile.lib | |
parent | 74239163b54830b0c5ea219978322486b1ab12bb (diff) | |
download | pkgsrc-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/Mesa/Makefile.lib')
-rw-r--r-- | graphics/Mesa/Makefile.lib | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/graphics/Mesa/Makefile.lib b/graphics/Mesa/Makefile.lib new file mode 100644 index 00000000000..4aeb06e573a --- /dev/null +++ b/graphics/Mesa/Makefile.lib @@ -0,0 +1,52 @@ +# $NetBSD: Makefile.lib,v 1.1 2006/08/01 21:40:19 jlam Exp $ +# +# This Makefile fragment is included by all packages that build libraries +# from the Mesa sources. +# + +.include "../../graphics/Mesa/Makefile.common" + +DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} +DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} +DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_TOOLS+= makedepend + +PATCHDIR= ${.CURDIR}/../MesaLib/patches +DISTINFO_FILE= ${.CURDIR}/../MesaLib/distinfo + +INSTALLATION_DIRS+= lib + +.include "../../mk/compiler.mk" +.include "../../mk/bsd.prefs.mk" + +# Mesa has proper support for Solaris and SunPro, use it. +.if ${OPSYS} == "SunOS" +. if ${MACHINE_ARCH} == "sparc" +. if !empty(PKGSRC_COMPILER:Msunpro) +BUILD_TARGET= sunos5 +. else +BUILD_TARGET= sunos5-gcc +. endif +. else # i386 +BUILD_TARGET= pkgsrc +. endif +.elif ${OPSYS} == "Interix" +BUILD_TARGET= interix3 +.else +BUILD_TARGET= pkgsrc +.endif + +.PHONY: Mesa-install-libs +pre-install: Mesa-install-libs +Mesa-install-libs: + @${TEST} -z ${INSTLIBS:M*:Q}"" || ${ECHO_MSG} "Installing libraries." + @for lib in "" ${INSTLIBS}; do \ + ${TEST} -n "$$lib" || continue; \ + ${LIBTOOL} --mode=install ${INSTALL_LIB} \ + $$lib ${PREFIX}/lib; \ + done |