SF.net SVN: gar:[24862] csw/mgar/pkg/isaexec/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 19 18:45:54 CEST 2015


Revision: 24862
          http://sourceforge.net/p/gar/code/24862
Author:   wahwah
Date:     2015-04-19 16:45:53 +0000 (Sun, 19 Apr 2015)
Log Message:
-----------
isaexec/trunk: Why not our own isaexec?

Added Paths:
-----------
    csw/mgar/pkg/isaexec/trunk/Makefile
    csw/mgar/pkg/isaexec/trunk/files/
    csw/mgar/pkg/isaexec/trunk/files/Makefile
    csw/mgar/pkg/isaexec/trunk/files/csw-isaexec.c

Property Changed:
----------------
    csw/mgar/pkg/isaexec/trunk/

Index: csw/mgar/pkg/isaexec/trunk
===================================================================
--- csw/mgar/pkg/isaexec/trunk	2015-04-19 14:26:11 UTC (rev 24861)
+++ csw/mgar/pkg/isaexec/trunk	2015-04-19 16:45:53 UTC (rev 24862)

Property changes on: csw/mgar/pkg/isaexec/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/isaexec/trunk/Makefile
===================================================================
--- csw/mgar/pkg/isaexec/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/isaexec/trunk/Makefile	2015-04-19 16:45:53 UTC (rev 24862)
@@ -0,0 +1,36 @@
+# $Id: Makefile 24861 2015-04-19 14:26:11Z wahwah $
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = isaexec
+VERSION = 0.3
+GARTYPE = v2
+
+DESCRIPTION = Find and execute an architecture-optimized binary
+
+VENDOR_URL = http://www.opencsw.org
+
+MASTER_SITES =
+DISTFILES  = csw-isaexec.c Makefile
+
+PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+TEST_TARGET =
+
+GARCOMPILER = GNU
+
+MKPACKAGE_ARGS = --nocompress
+
+include gar/category.mk
+
+pre-configure:
+	cp $(WORKDIR)/Makefile $(WORKSRC)
+	cp $(WORKDIR)/csw-isaexec.c $(WORKSRC)
+	@$(MAKECOOKIE)
+
+build-custom:
+	(cd $(WORKSRC); gmake $(BUILD_ENV) $(PARALLELMFLAGS))
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/isaexec/trunk/files/Makefile
===================================================================
--- csw/mgar/pkg/isaexec/trunk/files/Makefile	                        (rev 0)
+++ csw/mgar/pkg/isaexec/trunk/files/Makefile	2015-04-19 16:45:53 UTC (rev 24862)
@@ -0,0 +1,5 @@
+all: csw-isaexec
+
+install:
+	ginstall -d -m 755 $(DESTDIR)$(bindir)
+	ginstall -m 755 csw-isaexec $(DESTDIR)$(bindir)/isaexec

Added: csw/mgar/pkg/isaexec/trunk/files/csw-isaexec.c
===================================================================
--- csw/mgar/pkg/isaexec/trunk/files/csw-isaexec.c	                        (rev 0)
+++ csw/mgar/pkg/isaexec/trunk/files/csw-isaexec.c	2015-04-19 16:45:53 UTC (rev 24862)
@@ -0,0 +1,7 @@
+// Based on isaexec man page.
+#include <stdlib.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[], char *envp[]) {
+  return (isaexec(getexecname(), argv, envp));
+}

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