Glew win32 cross compilation pkgconfig stuff.

master
safety0ff 2011-02-21 01:26:47 -05:00 committed by Per Inge Mathisen
parent 1fad90d5e6
commit ade752d0d4
2 changed files with 16 additions and 1 deletions

View File

@ -17,10 +17,17 @@ extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
$(PKG_SOURCEBASE)/Makefile: extract-stamp
patch-stamp: extract-stamp
@for patch in patches/*.diff; do \
echo sed -e "s/\$$sourcebase\b/$(PKG_SOURCEBASE)/g" -e "s/\$$host_triplet\b/$(HOST_TRIPLET)/g" "$$patch" \| patch -p0; \
sed -e "s/\$$sourcebase\b/$(PKG_SOURCEBASE)/g" -e "s/\$$host_triplet\b/$(HOST_TRIPLET)/g" "$$patch" | patch -p0 || exit ; \
done
touch patch-stamp
$(TOPDIR)/build/libs/lib/libglew32.a: $(PKG_SOURCEBASE)/lib/libglew32.a
$(MAKE) -C $(PKG_SOURCEBASE) GLEW_DEST=../$(TOPDIR)/build/libs SYSTEM=linux-mingw32 install
$(PKG_SOURCEBASE)/lib/libglew32.a: $(PKG_SOURCEBASE)/Makefile
$(PKG_SOURCEBASE)/lib/libglew32.a: $(PKG_SOURCEBASE)/Makefile patch-stamp
$(MAKE) -C $(PKG_SOURCEBASE) GLEW_DEST=../$(TOPDIR)/build/libs SYSTEM=linux-mingw32
build: $(TARGET)

View File

@ -0,0 +1,8 @@
--- $sourcebase/glew.pc.in.old 2010-11-03 16:55:35.000000000 -0400
+++ $sourcebase/glew.pc.in 2011-02-20 22:29:58.675048129 -0500
@@ -7,4 +7,4 @@
Description: The OpenGL Extension Wrangler library
Version: @version@
Cflags: -I${includedir}
-Libs: -L${libdir} -lGLEW
+Libs: -L${libdir} -lglew32