aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>2000-11-23 00:09:07 +0800
committersada <sada@FreeBSD.org>2000-11-23 00:09:07 +0800
commit80dcb8221e0e5060aecfb7b7f8bb47b9eaf0033c (patch)
tree2e1aabea3eeeab2cf9f679ac95a489b36ad935ee /devel
parentc29c5c7ac4bf404896a6b0863983b41b45e91ff6 (diff)
downloadfreebsd-ports-gnome-80dcb8221e0e5060aecfb7b7f8bb47b9eaf0033c.tar.gz
freebsd-ports-gnome-80dcb8221e0e5060aecfb7b7f8bb47b9eaf0033c.tar.zst
freebsd-ports-gnome-80dcb8221e0e5060aecfb7b7f8bb47b9eaf0033c.zip
Support CC/CFLAGS properly.
PR: ports/22990 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'devel')
-rw-r--r--devel/xxgdb/Makefile4
-rw-r--r--devel/xxgdb/files/patch-aa45
-rw-r--r--devel/xxgdb/files/patch-ab13
-rw-r--r--devel/xxgdb/files/patch-ac21
-rw-r--r--devel/xxgdb/files/patch-ad56
-rw-r--r--devel/xxgdb/files/patch-ae11
-rw-r--r--devel/xxgdb/files/patch-af11
-rw-r--r--devel/xxgdb/files/patch-ag11
8 files changed, 125 insertions, 47 deletions
diff --git a/devel/xxgdb/Makefile b/devel/xxgdb/Makefile
index 0b5126d355ab..d09894611343 100644
--- a/devel/xxgdb/Makefile
+++ b/devel/xxgdb/Makefile
@@ -21,9 +21,9 @@ MAN1= xxgdb.1
# we have the cookie anyway and it's much easier this way
# than modifying the Imakefile.
post-build:
- cd ${WRKSRC}; gcc -o xxgdbiowin -O2 xxgdbiowin.c
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -o xxgdbiowin xxgdbiowin.c
post-install:
- install -c -s ${WRKSRC}/xxgdbiowin ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/xxgdbiowin ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/devel/xxgdb/files/patch-aa b/devel/xxgdb/files/patch-aa
deleted file mode 100644
index 958c62068cd0..000000000000
--- a/devel/xxgdb/files/patch-aa
+++ /dev/null
@@ -1,45 +0,0 @@
---- ./global.h.org Tue Nov 15 18:09:55 1994
-+++ ./global.h Tue May 2 21:56:19 1995
-@@ -68,7 +68,7 @@
- #define alloca __builtin_alloca
- #endif
-
--#ifndef __alpha
-+#if !defined(__alpha) && !defined(__FreeBSD__)
- #ifndef MAXPATHLEN
- #define MAXPATHLEN 1024
- #endif
---- ./calldbx.c.org Mon Dec 5 17:21:36 1994
-+++ ./calldbx.c Tue May 2 22:06:38 1995
-@@ -137,13 +137,17 @@
-
- #ifndef sco
- for (c='p'; c<'t'; c++) {
-+#ifdef __FreeBSD__
-+ for (i=0; i<32; i++) {
-+#else
- for (i=0; i<16; i++) {
-+#endif
- #else
- c = 'p';
- for (i=0; i<8; i++) {
- #endif
- pty[8] = c;
-- pty[9] = "0123456789abcdef"[i];
-+ pty[9] = "0123456789abcdefghijklmnopqrstuv"[i];
- if ((master = open(pty, O_RDWR)) >= 0)
- return (master);
- }
---- ./Imakefile.org Thu Mar 23 14:49:32 1995
-+++ ./Imakefile Tue May 2 22:14:58 1995
-@@ -50,6 +50,10 @@
- DEFINES = -DSYSV $(DEFGDB)
- #endif
-
-+#ifdef FreeBSDArchitecture
-+DEFINES = $(DEFGDB)
-+#endif
-+
- mallocc = #malloc.c
- malloco = #malloc.o
-
diff --git a/devel/xxgdb/files/patch-ab b/devel/xxgdb/files/patch-ab
new file mode 100644
index 000000000000..0468150dc770
--- /dev/null
+++ b/devel/xxgdb/files/patch-ab
@@ -0,0 +1,13 @@
+--- Imakefile.orig Tue Jun 20 07:20:55 1995
++++ Imakefile Fri Nov 17 21:27:09 2000
+@@ -79,6 +79,10 @@
+ # Add to open all windows at startup
+ #DEFINES+=-DOPEN_ALL_WINDOWS
+
++#ifdef FreeBSDArchitecture
++DEFINES = $(DEFGDB)
++#endif
++
+ mallocc = #malloc.c
+ malloco = #malloc.o
+
diff --git a/devel/xxgdb/files/patch-ac b/devel/xxgdb/files/patch-ac
new file mode 100644
index 000000000000..f58fc91673b0
--- /dev/null
+++ b/devel/xxgdb/files/patch-ac
@@ -0,0 +1,21 @@
+--- calldbx.c.orig Tue Jun 20 07:11:00 1995
++++ calldbx.c Fri Nov 17 21:27:09 2000
+@@ -137,13 +137,17 @@
+
+ #ifndef sco
+ for (c='p'; c<'t'; c++) {
++#ifdef __FreeBSD__
++ for (i=0; i<32; i++) {
++#else
+ for (i=0; i<16; i++) {
++#endif
+ #else
+ c = 'p';
+ for (i=0; i<8; i++) {
+ #endif
+ pty[8] = c;
+- pty[9] = "0123456789abcdef"[i];
++ pty[9] = "0123456789abcdefghijklmnopqrstuv"[i];
+ if ((master = open(pty, O_RDWR)) >= 0)
+ return (master);
+ }
diff --git a/devel/xxgdb/files/patch-ad b/devel/xxgdb/files/patch-ad
new file mode 100644
index 000000000000..3640e57aa382
--- /dev/null
+++ b/devel/xxgdb/files/patch-ad
@@ -0,0 +1,56 @@
+--- filemenu.c.orig Tue Aug 30 04:38:28 1994
++++ filemenu.c Fri Nov 17 22:05:05 2000
+@@ -95,7 +95,7 @@
+ #endif
+ #endif /* _POSIX_SOURCE */
+ #else /* SYSV */
+-#ifdef SUNOS4
++#if defined(SUNOS4) || defined(__FreeBSD__)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -185,7 +185,7 @@
+ * text files
+ * executable files
+ */
+-#ifndef SYSV
++#if !defined(SYSV) && !defined(__FreeBSD__)
+ static int InList(entry)
+ Directory *entry;
+ {
+@@ -228,7 +228,7 @@
+ static void ScanDir(dir)
+ char *dir;
+ {
+-#ifndef SYSV
++#if !defined(SYSV) && !defined(__FreeBSD__)
+ extern alphasort();
+ Directory **namelist;
+ #else
+@@ -238,7 +238,7 @@
+ #endif
+ register int i,j;
+
+-#ifdef SYSV
++#if defined(SYSV) || defined(__FreeBSD__)
+ if(!(WorkingDir = opendir(dir)))
+ {
+ UpdateMessageWindow("scandir: cannot open %s", dir);
+@@ -262,7 +262,7 @@
+ filelist = (char **) XtMalloc((nfiles+1) * sizeof(char *));
+ i = 0;
+ for (j=0; j<nfiles; j++) {
+-#ifdef SYSV
++#if defined(SYSV) || defined(__FreeBSD__)
+ WorkingDirEntry = readdir(WorkingDir);
+ if(!strcmp(WorkingDirEntry->d_name, "."))
+ strcpy(store, "./");
+@@ -305,7 +305,7 @@
+ }
+ filelist[i++] = NULL;
+
+-#ifdef SYSV
++#if defined(SYSV) || defined(__FreeBSD__)
+ closedir(WorkingDir);
+ #else
+ XtFree((XtPointer) namelist);
diff --git a/devel/xxgdb/files/patch-ae b/devel/xxgdb/files/patch-ae
new file mode 100644
index 000000000000..c6ae7cb54c42
--- /dev/null
+++ b/devel/xxgdb/files/patch-ae
@@ -0,0 +1,11 @@
+--- global.h.orig Fri Apr 7 01:23:42 1995
++++ global.h Fri Nov 17 21:27:09 2000
+@@ -70,7 +70,7 @@
+ #define alloca __builtin_alloca
+ #endif
+
+-#ifndef __alpha
++#if !defined(__alpha) && !defined(__FreeBSD__)
+ #ifndef MAXPATHLEN
+ #define MAXPATHLEN 1024
+ #endif
diff --git a/devel/xxgdb/files/patch-af b/devel/xxgdb/files/patch-af
new file mode 100644
index 000000000000..52495e44629b
--- /dev/null
+++ b/devel/xxgdb/files/patch-af
@@ -0,0 +1,11 @@
+--- regex.c.orig Thu Apr 20 01:58:00 1995
++++ regex.c Fri Nov 17 21:37:49 2000
+@@ -114,7 +114,7 @@
+ * Date : July 27, 1990
+ */
+
+-#ifndef NeXT
++#if !defined(NeXT) && !defined(__FreeBSD__)
+ #include <malloc.h>
+ #endif
+ #include <string.h>
diff --git a/devel/xxgdb/files/patch-ag b/devel/xxgdb/files/patch-ag
new file mode 100644
index 000000000000..8eb3c6d4d1dc
--- /dev/null
+++ b/devel/xxgdb/files/patch-ag
@@ -0,0 +1,11 @@
+--- source.c.orig Sat Apr 22 01:16:02 1995
++++ source.c Fri Nov 17 21:38:58 2000
+@@ -74,7 +74,7 @@
+ * LoadFile(): Search for a file and open it for display.
+ */
+
+-#ifndef NeXT
++#if !defined(NeXT) && !defined(__FreeBSD__)
+ #include <malloc.h>
+ #endif
+ #include <stdlib.h>