summaryrefslogtreecommitdiffstats
path: root/src/cunit.mk
diff options
context:
space:
mode:
authorMartin Gerhardy <martin.gerhardy@gmail.com>2010-09-18 19:59:04 (GMT)
committerMartin Gerhardy <martin.gerhardy@gmail.com>2010-09-18 19:59:04 (GMT)
commit65e88473e5155e7ecdfd69178e7b8a88801f0f43 (patch)
tree146bb5b70ddde6da5a7991b0242160cd412ff46d /src/cunit.mk
parent8c2cb2c0b37588ea809256e152f4bdbcb91e3f69 (diff)
downloadmxe-65e88473e5155e7ecdfd69178e7b8a88801f0f43.zip
mxe-65e88473e5155e7ecdfd69178e7b8a88801f0f43.tar.gz
mxe-65e88473e5155e7ecdfd69178e7b8a88801f0f43.tar.bz2
new package: cunit
Diffstat (limited to 'src/cunit.mk')
-rw-r--r--src/cunit.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cunit.mk b/src/cunit.mk
new file mode 100644
index 0000000..3d94972
--- /dev/null
+++ b/src/cunit.mk
@@ -0,0 +1,27 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# cunit
+PKG := cunit
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.1-0
+$(PKG)_CHECKSUM := 05920c1defda3527cee3bc82fb9eadf45c5ea7a1
+$(PKG)_SUBDIR := CUnit-$($(PKG)_VERSION)
+$(PKG)_FILE := CUnit-$($(PKG)_VERSION)-src.tar.gz
+$(PKG)_WEBSITE := http://cunit.sourceforge.net
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/cunit/CUnit/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/cunit/files/cunit/) | \
+ $(SED) -n 's,.*CUnit-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA=
+endef