[csw-devel] SF.net SVN: gar:[15766] csw/mgar/pkg/lmbench/trunk/Makefile
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Mon Sep 26 20:25:27 CEST 2011
Revision: 15766
http://gar.svn.sourceforge.net/gar/?rev=15766&view=rev
Author: skayser
Date: 2011-09-26 18:25:27 +0000 (Mon, 26 Sep 2011)
Log Message:
-----------
lmbench/trunk: get build working, installation tbd
Modified Paths:
--------------
csw/mgar/pkg/lmbench/trunk/Makefile
Modified: csw/mgar/pkg/lmbench/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lmbench/trunk/Makefile 2011-09-26 17:41:27 UTC (rev 15765)
+++ csw/mgar/pkg/lmbench/trunk/Makefile 2011-09-26 18:25:27 UTC (rev 15766)
@@ -1,8 +1,9 @@
# $Id$
# TODO (release-critical prefixed with !, non release-critical with *)
#
-# ! doesn't build yet gcc: error: language arch=v8 not recognized
-# ! doesn't honor our build flags (e.g. gcc get's used despite CC)
+# ! lmbench is supposed to be run from the extracted tarbarll, thus
+# no installation mechanism. See Debian for their packaging approach
+# http://patch-tracker.debian.org/patch/debianonly/view/lmbench/3.0-a9-1
#
NAME = lmbench
VERSION = 3
@@ -21,9 +22,24 @@
# lmbench doesn't use autoconf, but their own set of Makefiles and custom
# written platform detection scripts, cf. Makefile & src/Makefile
CONFIGURE_SCRIPTS =
-BUILD_ARGS = build CC=$(CC)
+# There's no test suite
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+# Build relies on bk.ver which gets generated from bk VCS version information
+# that we don't have. Skip it's generation in favor of pre-build-modulated.
+# Beware: $(MAKEFLAGS) doesn't carry -o to make subinvocations, so we need to
+# add -o to $(MAKE) instead of $(BUILD_ARGS).
+BUILD_ARGS = build CC=$(CC) MAKE="$(MAKE) -o bk.ver"
+
include gar/category.mk
# relies on grep -r
PATH := /opt/csw/gnu:$(PATH)
+
+pre-build-modulated:
+ echo "v3 no-bk-rev-info" > $(WORKSRC)/src/bk.ver
+ @$(MAKECOOKIE)
+
+custom-install:
+ $(error Easy tiger, there's work to be done first (custom-install))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list