aboutsummaryrefslogtreecommitdiff
path: root/devel/imake-6
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2007-01-30 20:23:33 +0000
committerKris Kennaway <kris@FreeBSD.org>2007-01-30 20:23:33 +0000
commitb0c4e070bd1bd77427971be7cfdb4b5d0cee3354 (patch)
treecbefea646d309bcf2030e107e310f1dec2ddc785 /devel/imake-6
parentd68c4243708954c0e17c4a7069ed90146c96b846 (diff)
downloadports-b0c4e070bd1bd77427971be7cfdb4b5d0cee3354.tar.gz
ports-b0c4e070bd1bd77427971be7cfdb4b5d0cee3354.zip
Notes
Diffstat (limited to 'devel/imake-6')
-rw-r--r--devel/imake-6/Makefile1
-rw-r--r--devel/imake-6/files/patch-imake.c35
2 files changed, 36 insertions, 0 deletions
diff --git a/devel/imake-6/Makefile b/devel/imake-6/Makefile
index 4299981b7f82..dadda6d56a4f 100644
--- a/devel/imake-6/Makefile
+++ b/devel/imake-6/Makefile
@@ -7,6 +7,7 @@
PORTNAME= imake
PORTVERSION= 6.9.0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src
diff --git a/devel/imake-6/files/patch-imake.c b/devel/imake-6/files/patch-imake.c
new file mode 100644
index 000000000000..7c3ffee0b65f
--- /dev/null
+++ b/devel/imake-6/files/patch-imake.c
@@ -0,0 +1,35 @@
+--- imake/imake.c.orig Tue Jan 30 14:57:37 2007
++++ imake/imake.c Tue Jan 30 14:55:59 2007
+@@ -1153,29 +1153,17 @@
+ int mib[2];
+ size_t len;
+ int osrel = 0;
+- FILE *objprog = NULL;
+ int iself = 0;
+- char buf[10];
+- char cmd[PATH_MAX];
+
+ mib[0] = CTL_KERN;
+ mib[1] = KERN_OSRELDATE;
+ len = sizeof(osrel);
+ sysctl(mib, 2, &osrel, &len, NULL, 0);
+- if (CrossCompiling) {
+- strcpy (cmd, CrossCompileDir);
+- strcat (cmd, "/");
+- strcat (cmd,"objformat");
+- } else
+- strcpy (cmd, "objformat");
+
+- if (osrel >= 300004 &&
+- (objprog = popen(cmd, "r")) != NULL &&
+- fgets(buf, sizeof(buf), objprog) != NULL &&
+- strncmp(buf, "elf", 3) == 0)
++ if (osrel < 300004)
++ iself = 0;
++ else
+ iself = 1;
+- if (objprog)
+- pclose(objprog);
+
+ fprintf(inFile, "#define DefaultToElfFormat %s\n", iself ? "YES" : "NO");
+ }