diff options
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 |