diff options
author | Cory Fields <theuni-nospam-@xbmc.org> | 2012-09-13 14:17:21 -0400 |
---|---|---|
committer | Cory Fields <theuni-nospam-@xbmc.org> | 2012-09-13 14:19:24 -0400 |
commit | e7dd906d2705b6a8301ae59090584318eedfd99a (patch) | |
tree | e65aaf284257b347902382180a1ebae08da5507d /tools | |
parent | 8b796ee9d179df20b5e2d1c65498a6d7eb23c315 (diff) |
[droid] add pcre-native for swig-native
Diffstat (limited to 'tools')
-rw-r--r-- | tools/android/depends/pcre-native/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/android/depends/pcre-native/Makefile b/tools/android/depends/pcre-native/Makefile new file mode 100644 index 0000000000..90071321d8 --- /dev/null +++ b/tools/android/depends/pcre-native/Makefile @@ -0,0 +1,41 @@ +NATIVE_BUILD=1 +include ../Makefile.include +DEPS= ../Makefile.include Makefile + +# lib name, version +LIBNAME=pcre +VERSION=7.9 +SOURCE=$(LIBNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz + +# configuration settings +CONFIGURE=./configure --prefix=$(PREFIX) --disable-cpp + + +LIBDYLIB=$(PLATFORM)/.libs/lib$(LIBNAME).so +CLEAN_FILES=$(ARCHIVE) $(PLATFORM) + +all: .installed-$(PLATFORM) + +$(TARBALLS_LOCATION)/$(ARCHIVE): + $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) + +$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) + rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + cd $(PLATFORM); $(CONFIGURE) + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -C $(PLATFORM) + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(PLATFORM) install + touch $(LIBDYLIB) + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + rm -f .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) |