ports/graphics/libGL/files/patch-src_mapi_es2api_Makefile.in
Niclas Zeising 5a4c543c2b The FreeBSD graphics/x11 team proudly presents
a kwm, zeising production:

MESA 9.1.6

Starring:
Mesa 9.1.6, including libGL, libGLU and dri (new xorg only)
Addition of libEGL and libglesv2
KMS support for ATI graphics cards in 10-current (new xorg only)
Improved sparc64 support for new xorg. [1]
pixman 0.30.2, including shlib bump and portrevision bumps
libX11 1.6.2
Make absolute pointing devices work with x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-ati 7.2.0 for 10-current (KMS aware ati driver)

Also starring:
Updates to drivers and other libraries and utilities

Additional notes:
When updating MESA related ports (libGL, dri) you need to remove old versions
first.  See UPDATING for details.

PR:		ports/181962 [2]
Submitted by:	marius [1]
		zeising [2]
Exp-run by:	bdrewery
Approved by:	portmgr (bdrewery)

Thanks to all who helped testing!
2013-09-29 17:01:41 +00:00

20 lines
1.1 KiB
Text

--- src/mapi/es2api/Makefile.in.orig 2013-08-01 23:22:21.000000000 +0200
+++ src/mapi/es2api/Makefile.in 2013-09-01 11:38:01.000000000 +0200
@@ -958,9 +958,14 @@
# a while by putting a link to the driver into /lib of the build tree.
all-local: libGLESv2.la
$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
- ln -f .libs/libGLESv2.so $(top_builddir)/$(LIB_DIR)/libGLESv2.so
- ln -f .libs/libGLESv2.so.2 $(top_builddir)/$(LIB_DIR)/libGLESv2.so.2
- ln -f .libs/libGLESv2.so.2.0.0 $(top_builddir)/$(LIB_DIR)/libGLESv2.so.2.0.0
+ base=$(basename $<); \
+ dlname=$$(grep dlname= .libs/$< | cut -d "'" -f 2); \
+ ver=$$(grep current= .libs/$< | cut -d "=" -f 2); \
+ ln -f .libs/$$dlname $(top_builddir)/$(LIB_DIR)/$$dlname; \
+ if [ ! -f $(top_builddir)/$(LIB_DIR)/$$base.so.$$ver ]; then \
+ ln -sf $$dlname $(top_builddir)/$(LIB_DIR)/$$base.so.$$ver; \
+ fi; \
+ ln -sf $$base.so.$$ver $(top_builddir)/$(LIB_DIR)/$$base.so
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.