pkgsrc-wip/Mesa/Makefile.lib
Blair Sadewitz dbe7fadf73 This is Mesa 6.5.2, primarily for recent modular X.org servers.
This package is from complete or polished and were unabashedly haphazardly put
together.  You have been warned, and please let me know about any problems,
etc.  Many thanks to Jeremy Reed for doing the bulk of the work (patches).
2007-01-23 17:48:28 +00:00

53 lines
1.3 KiB
Makefile

# $NetBSD: Makefile.lib,v 1.1 2007/01/23 17:48:28 bsadewitz Exp $
#
# This Makefile fragment is included by all packages that build libraries
# from the Mesa sources.
#
.include "../../wip/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; \
${LIBTOOL} --mode=install ${INSTALL_LIB} \
$$lib ${DESTDIR}${PREFIX}/lib; \
done