new packages: file libgnurx lzo

This commit is contained in:
Moritz Bunkus 2011-10-24 22:30:35 +02:00
parent 8eb852c111
commit 2d6ae8c49d
5 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,21 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -Nur file-5.09/magic/Makefile.am file-5.09-mingw-cross-env/magic/Makefile.am
--- file-5.09/magic/Makefile.am 2011-09-08 23:58:42.000000000 +0200
+++ file-5.09-mingw-cross-env/magic/Makefile.am 2011-10-23 17:31:31.456765605 +0200
@@ -246,13 +246,8 @@
# FIXME: Build file natively as well so that it can be used to compile
# the target's magic file; for now we bail if the local version does not match
-if IS_CROSS_COMPILE
-FILE_COMPILE = file
+FILE_COMPILE = $(top_builddir)/src/file.local
FILE_COMPILE_DEP =
-else
-FILE_COMPILE = $(top_builddir)/src/file
-FILE_COMPILE_DEP = $(FILE_COMPILE)
-endif
${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
@rm -fr magic

38
src/file.mk Normal file
View File

@ -0,0 +1,38 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# file
PKG := file
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.09
$(PKG)_CHECKSUM := 9d905f9e50033c3f5be3728473cbb709a41550fb
$(PKG)_SUBDIR := file-$($(PKG)_VERSION)
$(PKG)_FILE := file-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.darwinsys.com/file/
$(PKG)_URL := ftp://ftp.astron.com/pub/file/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgnurx
define $(PKG)_UPDATE
wget -q -O- 'ftp://ftp.astron.com/pub/file/' | \
grep 'file-' | \
$(SED) -n 's,.*file-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
# "file" needs a runnable version of the "file" utility
# itself. This must match the source code regarding its
# version. Therefore we build a native one ourselves first.
cd '$(1)' && ./configure \
--disable-shared
$(MAKE) -C '$(1)/src' -j '$(JOBS)' file
cp '$(1)/src/file' '$(1)/src/file.local'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' clean
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

View File

@ -0,0 +1,18 @@
This file is part of mingw-cross-env.
See doc/index.html for further information.
diff -Nur mingw-libgnurx-2.5.1/Makefile.mingw-cross-env mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env
--- mingw-libgnurx-2.5.1/Makefile.mingw-cross-env 1970-01-01 01:00:00.000000000 +0100
+++ mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env 2011-10-23 16:57:18.579312050 +0200
@@ -0,0 +1,11 @@
+include Makefile
+
+libgnurx.a: $(OBJECTS)
+ rm -f $@
+ $(TARGET)-ar rcu $@ $(OBJECTS)
+ $(TARGET)-ranlib $@
+
+install-static: libgnurx.a
+ mkdir -p ${includedir} ${libdir}
+ cp -p ${srcdir}/regex.h ${includedir}
+ cp -p ${srcdir}/libgnurx.a ${libdir}

29
src/libgnurx.mk Normal file
View File

@ -0,0 +1,29 @@
# This libgnurx is part of mingw-cross-env.
# See doc/index.html for further information.
# libgnurx
PKG := libgnurx
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.5.1
$(PKG)_CHECKSUM := f1e4af2541645dac82362b618aaa849658cd4988
$(PKG)_SUBDIR := mingw-libgnurx-$($(PKG)_VERSION)
$(PKG)_FILE := mingw-libgnurx-$($(PKG)_VERSION)-src.tar.gz
$(PKG)_WEBSITE := http://sourceforge.net/projects/mingw/files/UserContributed/regex/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/UserContributed/regex/mingw-regex-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/mingw/files/UserContributed/regex/' | \
grep 'mingw-regex-' | \
$(SED) -n 's,.*mingw-regex-\([0-9\.]*\).*,\1,p' | \
sort | \
uniq | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -f Makefile.mingw-cross-env -j '$(JOBS)' TARGET=$(TARGET) bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= install-static
endef

29
src/lzo.mk Normal file
View File

@ -0,0 +1,29 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# lzo
PKG := lzo
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.06
$(PKG)_CHECKSUM := a11768b8a168ec607750842bbef406f11547b904
$(PKG)_SUBDIR := lzo-$($(PKG)_VERSION)
$(PKG)_FILE := lzo-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.oberhumer.com/opensource/lzo/
$(PKG)_URL := http://www.oberhumer.com/opensource/lzo/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.oberhumer.com/opensource/lzo/download/' | \
grep 'lzo-' | \
grep -v 'minilzo-' | \
$(SED) -n 's,.*lzo-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef