View | Details | Raw Unified | Return to bug 234876
Collapse All | Expand All

(-)Makefile (-4 / +8 lines)
Lines 546-565 Link Here
546
		/libEGL_nvidia\.so\.${PORTVERSION}/d;}' ${TMPPLIST}
546
		/libEGL_nvidia\.so\.${PORTVERSION}/d;}' ${TMPPLIST}
547
.endif
547
.endif
548
	${REINPLACE_CMD} -E ${PLIST_RE:S/^/-e /} ${TMPPLIST}
548
	${REINPLACE_CMD} -E ${PLIST_RE:S/^/-e /} ${TMPPLIST}
549
# rename libGL.so, libEGL.so and libGLESv2.so
549
# Link NVIDIA libraries to point to correct files.
550
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so \
550
# libGL.so, libEGL.so and libGLESv2.so should not be provided by this port.
551
	${LN} -sf libGL-NVIDIA.so.1 \
551
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so
552
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so
552
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so.1 \
553
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGL.so.1 \
553
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so.1
554
		${STAGEDIR}${PREFIX}/lib/libGL-NVIDIA.so.1
555
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libGL.so
554
.if ${NVVERSION} >= 331.013
556
.if ${NVVERSION} >= 331.013
555
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so \
557
	${LN} -sf libEGL-NVIDIA.so.1 \
556
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so
558
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so
557
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so.1 \
559
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so.1 \
558
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so.1
560
		${STAGEDIR}${PREFIX}/lib/libEGL-NVIDIA.so.1
559
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so \
561
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libEGL.so
562
	${LN} -sf libGLESv2-NVIDIA.so.2 \
560
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so
563
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so
561
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so.2 \
564
	${MV} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so.2 \
562
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so.2
565
		${STAGEDIR}${PREFIX}/lib/libGLESv2-NVIDIA.so.2
566
	${RM} -f ${STAGEDIR}${PREFIX}/lib/libGLESv2.so
563
.endif
567
.endif
564
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/libmap.d/
568
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/libmap.d/
565
	${INSTALL_DATA} ${WRKDIR}/nvidia.conf \
569
	${INSTALL_DATA} ${WRKDIR}/nvidia.conf \

Return to bug 234876