View | Details | Raw Unified | Return to bug 226403 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 / +8 lines)
Lines 237-256 Link Here
237
	${REINPLACE_CMD} -E '/\/lib\/libGLESv[12](_CM)?(\.so)?(_nvidia.so(\.[0-9]|\.[0-9]+\.[0-9]+)?)?$$/d ; \
237
	${REINPLACE_CMD} -E '/\/lib\/libGLESv[12](_CM)?(\.so)?(_nvidia.so(\.[0-9]|\.[0-9]+\.[0-9]+)?)?$$/d ; \
238
		/libEGL_nvidia\.so\.${PORTVERSION}/d' ${TMPPLIST}
238
		/libEGL_nvidia\.so\.${PORTVERSION}/d' ${TMPPLIST}
239
.endif
239
.endif
240
# rename libGL.so, libEGL.so and libGLESv2.so
240
# Link NVIDIA libraries to point to correct files.
241
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so \
241
# libGL.so, libEGL.so and libGLESv2.so should not be provided by this port.
242
	${LN} -sf libGL-NVIDIA.so.1 \
242
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so
243
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so
243
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so.1 \
244
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so.1 \
244
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so.1
245
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so.1
246
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libGL.so
245
.if ${NVVERSION} >= 331.013
247
.if ${NVVERSION} >= 331.013
246
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so \
248
	${LN} -sf libEGL-NVIDIA.so.1 \
247
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so
249
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so
248
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so.1 \
250
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so.1 \
249
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so.1
251
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so.1
250
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so \
252
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so
253
	${LN} -sf libGLESv2-NVIDIA.so.2 \
251
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so
254
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so
252
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so.2 \
255
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so.2 \
253
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so.2
256
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so.2
257
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so
254
.endif
258
.endif
255
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/libmap.d/
259
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/libmap.d/
256
	${INSTALL_DATA} ${WRKDIR}/nvidia.conf \
260
	${INSTALL_DATA} ${WRKDIR}/nvidia.conf \

Return to bug 226403