# $NetBSD: Makefile.lib,v 1.4 2007/03/19 16:47:43 reed 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 MAKE_JOBS_SAFE= no 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; \ ${SETENV} ${MAKE_ENV} \ ${LIBTOOL} --mode=install ${INSTALL_LIB} \ $$lib ${DESTDIR}${PREFIX}/lib; \ done