1d106488bd
libGL is legacy GLX entry point, so maybe missing if libglvnd and/or mesa-libs was built without X11 support. $ make clean all deinstall install WITHOUT=X11 -C ../libglvnd $ make clean all [...] ===> glew-wayland-2.2.0_2 depends on shared library: libGL.so - not found *** Error code 1 [...] ld -shared -soname libGLEW-wayland.so.2 -o lib/libGLEW-wayland.so.2.2.0 tmp/freebsd/default/shared/glew.o -L/usr/local/lib -lEGL -lGL ld: error: unable to find library -lGL gmake[1]: *** [Makefile:123: lib/libGLEW-wayland.so.2.2.0] Error 1
39 lines
1.3 KiB
Makefile
39 lines
1.3 KiB
Makefile
PORTREVISION= 3
|
|
PKGNAMESUFFIX= -wayland
|
|
|
|
# https://github.com/nigels-com/glew/issues/172
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
MASTERDIR= ${.CURDIR}/../glew
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
PKGMESSAGE= ${.CURDIR}/pkg-message
|
|
|
|
USE_GL= egl opengl
|
|
USE_XORG= # empty
|
|
MAKE_ARGS= NAME=${PORTNAME:tu}${PKGNAMESUFFIX}
|
|
INSTALL_TARGET= install.lib
|
|
|
|
OPTIONS_DEFINE= # empty
|
|
|
|
post-patch: slave-post-patch
|
|
slave-post-patch:
|
|
@${REINPLACE_CMD} 's/Makefile.$$(SYSTEM)/&-egl-glvnd/' ${WRKSRC}/Makefile
|
|
@${SED} 's/linux/${OPSYS:tl}/' ${WRKSRC}/config/Makefile.linux-egl-glvnd \
|
|
>${WRKSRC}/config/Makefile.${OPSYS:tl}-egl-glvnd
|
|
@${REINPLACE_CMD} -e '/^Name:/s/${PORTNAME}/${PKGBASE}/' \
|
|
${WRKSRC}/${PORTNAME}.pc.in
|
|
# GCC 4.2 doesn't support redefining same typedef
|
|
@${REINPLACE_CMD} '/typedef.*EGLint;/d' ${WRKSRC}/include/GL/eglew.h
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo \
|
|
${STAGEDIR}${PREFIX}/bin/glewinfo${PKGNAMESUFFIX}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo \
|
|
${STAGEDIR}${PREFIX}/bin/visualinfo${PKGNAMESUFFIX}
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
|
|
${INSTALL_DATA} ${WRKSRC}/include/GL/eglew.h \
|
|
${STAGEDIR}${PREFIX}/include/GL
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pc \
|
|
${STAGEDIR}${PREFIX}/libdata/pkgconfig/${PKGBASE}.pc
|
|
|
|
.include "${MASTERDIR}/Makefile"
|