Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-dri/Makefile.targets
- This file was moved from graphics/libGL/Makefile.targets.
# $FreeBSD: head/graphics/libGL/Makefile.targets 438198 2017-04-10 19:14:48Z rezny $ | # $FreeBSD: head/graphics/mesa-libs/Makefile.targets 438198 2017-04-10 19:14:48Z rezny $ | ||||
kwm: Don't forget to reset $FreeBSD$ here and in other files.
This file seems to be in… | |||||
Not Done Inline ActionsStrange, that file does have svn:keywords set but $FreeBSD$ is handled differently than most of the other files in the diff where it is not expanded. It should not be necessary to change, svn should expand it properly on checkout. I notice Makefile.common is similarly affected, both files that were moved more than once in a single changeset, so perhaps that confuses phabricator. I'll reset those before committing to be sure. rezny: Strange, that file does have svn:keywords set but $FreeBSD$ is handled differently than most of… | |||||
# | # | ||||
# this file holds common targets | # this file holds common targets | ||||
post-patch: | post-patch: | ||||
.if ${OPSYS} == FreeBSD | .if ${OPSYS} == FreeBSD | ||||
@${REINPLACE_CMD} -e 's|x86_64|amd64|' \ | @${REINPLACE_CMD} -e 's|x86_64|amd64|' ${WRKSRC}/configure | ||||
${WRKSRC}/configure | |||||
# Clang 3.4 in 10.x on i386 fails with the following error when using "GCC atomics" | # Clang 3.4 in 10.x on i386 fails with the following error when using "GCC atomics" | ||||
# | # | ||||
# glsl/cache.c:613:4: error: cannot compile this atomic library call yet | # glsl/cache.c:613:4: error: cannot compile this atomic library call yet | ||||
# p_atomic_add(cache->size, size); note: expanded from macro 'p_atomic_add' | # p_atomic_add(cache->size, size); note: expanded from macro 'p_atomic_add' | ||||
# define p_atomic_add(v, i) (void) __atomic_add_fetch((v), (i), __ATOMIC_ACQ_REL) | # define p_atomic_add(v, i) (void) __atomic_add_fetch((v), (i), __ATOMIC_ACQ_REL) | ||||
# | # | ||||
.if ${OSVERSION} < 1100000 && ${ARCH} == "i386" | .if ${OSVERSION} < 1100000 && ${ARCH} == "i386" | ||||
@${REINPLACE_CMD} -e 's|-DUSE_GCC_ATOMIC_BUILTINS||' ${WRKSRC}/configure | @${REINPLACE_CMD} -e 's|-DUSE_GCC_ATOMIC_BUILTINS||' ${WRKSRC}/configure | ||||
.endif | .endif | ||||
.else # ${OPSYS} == DragonFly | |||||
# Sed on dragonfly doesn't support \< or \> | |||||
@${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' \ | |||||
${WRKSRC}/configure | |||||
.endif # ${OPSYS} | .endif # ${OPSYS} | ||||
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \ | @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \ | ||||
${WRKSRC}/src/mesa/drivers/dri/common/xmlconfig.c | ${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 | pre-build: mesa-pre-build | ||||
#custom targets so we can build parts of Mesa | #custom targets so we can build parts of Mesa | ||||
mesa-pre-build: | mesa-pre-build: | ||||
# do propper gmake target. | # 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/mesa/drivers/dri/common/ && ${MAKE_CMD} | ||||
@cd ${WRKSRC}/src/loader && ${MAKE_CMD} | @cd ${WRKSRC}/src/loader && ${MAKE_CMD} | ||||
# libloader.la | # libloader.la | ||||
.if defined(MESA_BUILD_WRKSRC) | .if defined(MESA_BUILD_WRKSRC) | ||||
do-build: | do-build: | ||||
. for dir in ${MESA_BUILD_WRKSRC} | . for dir in ${MESA_BUILD_WRKSRC} | ||||
(cd ${WRKSRC}/${dir}; ${DO_MAKE_BUILD} ${ALL_TARGET};) | (cd ${WRKSRC}/${dir}; ${DO_MAKE_BUILD} ${ALL_TARGET};) | ||||
Show All 11 Lines |
Don't forget to reset $FreeBSD$ here and in other files.
This file seems to be in graphics/mesa-dri but mentions mesa-libs?