mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
37 lines
896 B
XML
37 lines
896 B
XML
# $FreeBSD$
|
|
#
|
|
# this file holds common targets
|
|
|
|
post-patch:
|
|
.if ${OPSYS} == FreeBSD
|
|
@${REINPLACE_CMD} -e 's|x86_64|amd64|' ${WRKSRC}/configure
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
|
|
${WRKSRC}/src/util/xmlconfig.c
|
|
|
|
pre-build: mesa-pre-build
|
|
|
|
#custom targets so we can build parts of Mesa
|
|
mesa-pre-build:
|
|
# do propper gmake target.
|
|
@cd ${WRKSRC}/src && ${MAKE_CMD} git_sha1.h libglsl_util.la
|
|
@cd ${WRKSRC}/src/mesa/drivers/dri/common/ && ${MAKE_CMD}
|
|
@cd ${WRKSRC}/src/loader && ${MAKE_CMD}
|
|
# libloader.la
|
|
|
|
.if defined(MESA_BUILD_WRKSRC)
|
|
do-build:
|
|
. for dir in ${MESA_BUILD_WRKSRC}
|
|
(cd ${WRKSRC}/${dir}; ${DO_MAKE_BUILD} ${ALL_TARGET};)
|
|
. endfor
|
|
.endif
|
|
|
|
.if defined(MESA_INSTALL_WRKSRC)
|
|
do-install:
|
|
. for dir in ${MESA_INSTALL_WRKSRC}
|
|
(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
. endfor
|
|
.endif
|
|
|