2008-11-08 08:42:47 +00:00
|
|
|
# MinGW Windows API
|
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := w32api
|
|
|
|
$(PKG)_VERSION := 3.13-mingw32
|
|
|
|
$(PKG)_CHECKSUM := 5eb7d8ec0fe032a92bea3a2c8282a78df2f1793c
|
|
|
|
$(PKG)_SUBDIR := .
|
|
|
|
$(PKG)_FILE := w32api-$($(PKG)_VERSION)-dev.tar.gz
|
|
|
|
$(PKG)_WEBSITE := http://mingw.sourceforge.net/
|
|
|
|
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
|
|
|
|
$(PKG)_DEPS :=
|
2008-11-08 08:42:47 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2009-08-10 12:24:12 +01:00
|
|
|
$(call SOURCEFORGE_FILES,http://sourceforge.net/projects/mingw/files/MinGW API for MS-Windows/) | \
|
2008-11-08 08:42:47 +00:00
|
|
|
$(SED) -n 's,.*w32api-\([0-9][^>]*\)-src\.tar.*,\1,p' | \
|
2009-08-10 12:24:12 +01:00
|
|
|
tail -1
|
2008-11-08 08:42:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
# fix incompatibilities with gettext
|
2008-11-08 18:06:50 +00:00
|
|
|
$(SED) 's,\(SUBLANG_BENGALI_INDIA\t\)0x01,\10x00,' -i '$(1)/include/winnt.h'
|
|
|
|
$(SED) 's,\(SUBLANG_PUNJABI_INDIA\t\)0x01,\10x00,' -i '$(1)/include/winnt.h'
|
|
|
|
$(SED) 's,\(SUBLANG_ROMANIAN_ROMANIA\t\)0x01,\10x00,' -i '$(1)/include/winnt.h'
|
2008-11-08 08:42:47 +00:00
|
|
|
# fix incompatibilities with jpeg
|
2008-11-08 18:06:50 +00:00
|
|
|
$(SED) 's,typedef unsigned char boolean;,,' -i '$(1)/include/rpcndr.h'
|
2008-11-08 08:42:47 +00:00
|
|
|
# fix missing definitions for WinPcap and libdnet
|
2008-11-08 18:06:50 +00:00
|
|
|
$(SED) '1i\#include <wtypes.h>' -i '$(1)/include/iphlpapi.h'
|
|
|
|
$(SED) '1i\#include <wtypes.h>' -i '$(1)/include/wincrypt.h'
|
2009-03-07 07:52:50 +00:00
|
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)'
|
2008-11-08 18:06:50 +00:00
|
|
|
cp -rpv '$(1)/include' '$(1)/lib' '$(PREFIX)/$(TARGET)'
|
2008-11-08 08:42:47 +00:00
|
|
|
endef
|