Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/libGL/Makefile.targets
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# 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|' -e 's|\\S\*//|[:space:]* //|' \ | @${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 | .else # ${OPSYS} == DragonFly | ||||
# Sed on dragonfly doesn't support \< or \> | # Sed on dragonfly doesn't support \< or \> | ||||
@${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' -e 's|\\S\*//|[:space:]* //|' \ | @${REINPLACE_CMD} -e 's|\\>//|[[:>:]]//|' \ | ||||
${WRKSRC}/configure | ${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' \ | @${REINPLACE_CMD} -e 's|#!/use/bin/python|#!${PYTHON_CMD}|g' \ | ||||
${WRKSRC}/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py | ${WRKSRC}/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py | ||||
@${REINPLACE_CMD} -e 's|!/use/bin/python2|!${PYTHON_CMD}|g' \ | @${REINPLACE_CMD} -e 's|!/use/bin/python2|!${PYTHON_CMD}|g' \ | ||||
${WRKSRC}/src/mesa/main/get_hash_generator.py \ | ${WRKSRC}/src/mesa/main/get_hash_generator.py \ | ||||
Show All 27 Lines |