Mercurial > mxe-octave
view src/protobuf.mk @ 2765:851daf6da276
package qt: update patches
-added security related openssl patch
-use upstream versions of pkg-config patches
-simplify recent mac patch
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 20 Sep 2012 10:30:12 +0200 |
parents | 30b0ab7e6406 |
children | 47558e958113 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := protobuf $(PKG)_IGNORE := $(PKG)_CHECKSUM := df5867e37a4b51fb69f53a8baf5b994938691d6d $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://protobuf.googlecode.com/files/$($(PKG)_FILE) $(PKG)_DEPS := gcc zlib define $(PKG)_UPDATE $(WGET) -q -O- 'http://code.google.com/p/protobuf/downloads/list?sort=-uploaded' | \ $(SED) -n 's,.*protobuf-\([0-9][^<]*\)\.tar.*,\1,p' | \ head -1 endef define $(PKG)_BUILD # First step: Build for host system in order to create "protoc" binary. cd '$(1)' && ./configure \ --disable-shared $(MAKE) -C '$(1)' -j '$(JOBS)' cp '$(1)/src/protoc' '$(1)/src/protoc_host' $(MAKE) -C '$(1)' -j 1 distclean # Second step: Build for target system. cd '$(1)' && ./configure \ --host='$(TARGET)' \ --prefix='$(PREFIX)/$(TARGET)' \ --disable-shared \ --with-zlib \ --with-protoc=src/protoc_host $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install '$(TARGET)-g++' \ -W -Wall -Werror -ansi -pedantic \ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-protobuf.exe' \ `'$(TARGET)-pkg-config' protobuf --cflags --libs` endef