76e5273624
* Depend on libelf on DragonFly * Rework the vdpau support code and enable vdpau for DragonFly, FreeBSD doesn't support it just yet. * Revert commit that removed support for non-render nodes. Neither FreeBSD nor DragonFly supports render nodes at this time. * Fix LDFLAGS to work with GCC5, which DragonFly uses by default. * Update Makefile.targets: ffast-math isn't used since 8.0.3, don't replace x86_64 with amd64 on Dragonfly. Drop obsolete python disable replace.
45 lines
1.3 KiB
XML
45 lines
1.3 KiB
XML
# $FreeBSD$
|
|
#
|
|
# this file holds common targets
|
|
|
|
post-patch:
|
|
.if ${OPSYS} == FreeBSD
|
|
@${REINPLACE_CMD} -e 's|x86_64|amd64|' \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
# Sed on 9.x and dragonfly don't support \< or \>
|
|
@${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
|
|
${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c
|
|
@${REINPLACE_CMD} -e 's|#!/use/bin/python|#!${PYTHON_CMD}|g' \
|
|
${WRKSRC}/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py
|
|
@${REINPLACE_CMD} -e 's|!/use/bin/python2|!${PYTHON_CMD}|g' \
|
|
${WRKSRC}/src/mesa/main/get_hash_generator.py \
|
|
${WRKSRC}/src/mapi/glapi/gen/gl_enums.py \
|
|
${WRKSRC}/src/mapi/glapi/gen/gl_table.py
|
|
|
|
pre-build: mesa-pre-build
|
|
|
|
#custom targets so we can build parts of Mesa
|
|
mesa-pre-build:
|
|
# do propper gmake target.
|
|
@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
|
|
|