summaryrefslogtreecommitdiffstats
path: root/src/mingw-w64.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-25 15:03:19 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-22 21:19:00 (GMT)
commitcded114ce350185bec04f26de7eb70eab2826809 (patch)
tree80cec4969849b55c574276e5f907cdf20f6d6fd7 /src/mingw-w64.mk
parent800377564b3ba02d090e107120fdfc28911e135e (diff)
downloadmxe-cded114ce350185bec04f26de7eb70eab2826809.zip
mxe-cded114ce350185bec04f26de7eb70eab2826809.tar.gz
mxe-cded114ce350185bec04f26de7eb70eab2826809.tar.bz2
mingw-w64: install gl *.pc files here instead of mxe-conf
Diffstat (limited to 'src/mingw-w64.mk')
-rw-r--r--src/mingw-w64.mk21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mingw-w64.mk b/src/mingw-w64.mk
index 87f5ff5..f4b1519 100644
--- a/src/mingw-w64.mk
+++ b/src/mingw-w64.mk
@@ -9,7 +9,7 @@ $(PKG)_CHECKSUM := 2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9
$(PKG)_SUBDIR := $(PKG)-v$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-v$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-release/$($(PKG)_FILE)
-$(PKG)_TYPE := archive
+$(PKG)_TYPE := script
$(PKG)_DEPS :=
define $(PKG)_UPDATE
@@ -18,3 +18,22 @@ define $(PKG)_UPDATE
$(SORT) -V | \
tail -1
endef
+
+# can't install headers here since dummy pthreads headers are installed
+# and then clobbered by inline winpthreads build in gcc (see #958)
+
+define $(PKG)_BUILD
+ # create pkg-config files for OpenGL/GLU
+ mkdir -p '$(PREFIX)/$(TARGET)/lib/pkgconfig'
+ (echo 'Name: gl'; \
+ echo 'Version: 0'; \
+ echo 'Description: OpenGL'; \
+ echo 'Libs: -lopengl32';) \
+ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/gl.pc'
+
+ (echo 'Name: glu'; \
+ echo 'Version: 0'; \
+ echo 'Description: OpenGL'; \
+ echo 'Libs: -lglu32';) \
+ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/glu.pc'
+endef