aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-07-08 03:59:26 +0800
committersteve <steve@FreeBSD.org>2000-07-08 03:59:26 +0800
commit7879264d29ab2a706345ab21de9f9cd3139efc7a (patch)
tree0fb8a7b052271f54c6bdf617de3027472d998225 /editors
parentc691dd330a3da8e70bfc74508b9fb3b585604a4d (diff)
downloadfreebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.tar.gz
freebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.tar.zst
freebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.zip
- Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-config
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly PR: 19623 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'editors')
-rw-r--r--editors/gxedit/Makefile9
-rw-r--r--editors/gxedit/files/patch-aa6
-rw-r--r--editors/gxedit/files/patch-ab47
-rw-r--r--editors/gxedit/files/patch-ae4
-rw-r--r--editors/gxedit/pkg-plist1
-rw-r--r--editors/vim/Makefile2
-rw-r--r--editors/vim/files/patch-0214
-rw-r--r--editors/vim5/Makefile2
-rw-r--r--editors/vim5/files/patch-0214
-rw-r--r--editors/vim6/Makefile2
-rw-r--r--editors/vim6/files/patch-0214
11 files changed, 57 insertions, 58 deletions
diff --git a/editors/gxedit/Makefile b/editors/gxedit/Makefile
index b6104d846b0d..07dd7bf37ee7 100644
--- a/editors/gxedit/Makefile
+++ b/editors/gxedit/Makefile
@@ -16,9 +16,15 @@ MAINTAINER= dom@myrddin.demon.co.uk
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
USE_X_PREFIX= yes
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
ALL_TARGET= gxedit
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/config.h
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gtk-shell ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/gxedit ${PREFIX}/bin
@@ -29,10 +35,9 @@ do-install:
.for i in popmail.scr traceroute.scr userinfo.scr www.scr
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/gxedit
.endfor
-
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/gxedit/
-.for i in COPYING charmap.txt manual.ps manual.txt quickref.ps quickref.txt
+.for i in charmap.txt manual.ps manual.txt quickref.ps quickref.txt
${INSTALL_DATA} ${WRKSRC}/docs/$i ${PREFIX}/share/doc/gxedit/
.endfor
.endif
diff --git a/editors/gxedit/files/patch-aa b/editors/gxedit/files/patch-aa
index 1945abcb42ee..d4e7e3c0de27 100644
--- a/editors/gxedit/files/patch-aa
+++ b/editors/gxedit/files/patch-aa
@@ -16,9 +16,9 @@
-#define EMACS "/usr/bin/emacs"
-#define DES "/bin/des"
-#define IDEA "/bin/idea"
-+#define EMACS "/usr/local/bin/emacs"
-+#define DES "/usr/local/bin/des"
-+#define IDEA "/usr/local/bin/idea"
++#define EMACS "%%LOCALBASE%%/bin/emacs"
++#define DES "%%LOCALBASE%%/bin/des"
++#define IDEA "%%LOCALBASE%%/bin/idea"
#define XTERM "/usr/X11R6/bin/xterm"
#define AWK "awk"
#define SED "sed"
diff --git a/editors/gxedit/files/patch-ab b/editors/gxedit/files/patch-ab
index 22343cd85df9..8fbaa5ec96fd 100644
--- a/editors/gxedit/files/patch-ab
+++ b/editors/gxedit/files/patch-ab
@@ -1,15 +1,15 @@
---- Makefile.orig Fri Mar 19 16:31:49 1999
-+++ Makefile Mon Apr 5 17:00:51 1999
+--- Makefile.orig Fri Mar 19 15:01:49 1999
++++ Makefile Sat Jul 1 16:25:24 2000
@@ -3,12 +3,13 @@
INSTALL_DIR = /usr/X11R6/bin/
DOCS = /usr/doc
SHARE = /usr/share
-CFLAGS = `gtk-config --cflags` -I/usr/local/include -I. -O -Wall -DVERSION=\"1.23\"
+CFLAGS ?= -O2
-+CFLAGS += `gtk12-config --cflags` -I/usr/local/include -I. -Wall -DVERSION=\"1.23\"
++CFLAGS += `$(GTK_CONFIG) --cflags` -I. -DVERSION=\"1.23\"
GTKEDITOR_CFLAGS = -I../gtkeditor-0.0.6 -I../gtkeditor-0.0.6/gtkeditor
-LIBS = `gtk-config --libs`
-+LIBS = `gtk12-config --libs`
++LIBS = `$(GTK_CONFIG) --libs`
OBJS = gxedit.o net.o utils.o
GTKEDITOR_OBJS = ../gtkeditor-0.0.6/gtkeditor/gtkeditor.o ../gtkeditor-0.0.6/regex/regex.o -L../gtkeditor-0.0.6 -lgtkeditor -lregex -lguile -ldl -ltermcap
-CC = gcc
@@ -17,19 +17,50 @@
all:
@echo "Use ./setup"
-@@ -23,7 +24,6 @@
+@@ -23,8 +24,7 @@
$(CC) $(CFLAGS) -c utils.c
$(CC) $(CFLAGS) -o $(BIN_DIR)gxedit $(OBJS) $(LIBS)
@(rm -f ./.chk_config)
- (cd xproc-src; make BIN_DIR=../; cd ..)
- (cd gtk-shell-src; make BIN_DIR=../; cd ..)
+- (cd gtk-shell-src; make BIN_DIR=../; cd ..)
++ (cd gtk-shell-src; $(MAKE) BIN_DIR=../; cd ..)
gxe-with-gtkeditor:
-@@ -32,7 +32,6 @@
+ $(CC) $(CFLAGS) $(GTKEDITOR_CFLAGS) -c gxedit.c
+@@ -32,19 +32,18 @@
$(CC) $(CFLAGS) $(GTKEDITOR_CFLAGS) -c utils.c
$(CC) $(CFLAGS) $(GTKEDITOR_CFLAGS) -o $(BIN_DIR)gxedit $(OBJS) $(GTKEDITOR_OBJS) $(LIBS)
@(rm -f ./.chk_config)
- (cd xproc-src; make BIN_DIR=../; cd ..)
- (cd gtk-shell-src; make BIN_DIR=../; cd ..)
+- (cd gtk-shell-src; make BIN_DIR=../; cd ..)
++ (cd gtk-shell-src; $(MAKE) BIN_DIR=../; cd ..)
say:
+- (cd access; make BIN_DIR=../)
++ (cd access; $(MAKE) BIN_DIR=../)
+
+ say-install:
+ $(INSTALL) -m 0755 say $(INSTALL_DIR)say
+
+ clean:
+ rm -f *.o $(BIN_DIR)gxedit $(BIN_DIR)say $(BIN_DIR)xproc $(BIN_DIR)gtk-shell $(BIN_DIR)libbabel.a *.log core
+- (cd gtk-shell-src; make clean; cd ..)
+- (cd xproc-src; make clean; cd ..)
++ (cd gtk-shell-src; $(MAKE) clean; cd ..)
++ (cd xproc-src; $(MAKE) clean; cd ..)
+
+ install:
+ $(INSTALL) -m 0755 $(BIN_DIR)gxedit $(INSTALL_DIR)gxedit
+@@ -75,9 +74,9 @@
+ $(CC) $(CFLAGS) -c net.c
+ $(CC) $(CFLAGS) -c utils.c
+ $(CC) $(CFLAGS) -o gxedit $(OBJS) -L/usr/local/lib -L/usr/X11R6/lib /usr/lib/libgtk.a /usr/lib/libgdk.a /usr/lib/libglib.a /usr/lib/libgmodule.a -lXext -lX11 -lm -ldl
+- (cd xproc-src; make distro BIN_DIR=../; cd ..)
+- (cd gtk-shell-src; make distro BIN_DIR=../; cd ..)
+- (cd access; make BIN_DIR=../; cd ..)
++ (cd xproc-src; $(MAKE) distro BIN_DIR=../; cd ..)
++ (cd gtk-shell-src; $(MAKE) distro BIN_DIR=../; cd ..)
++ (cd access; $(MAKE) BIN_DIR=../; cd ..)
+ mv say dist/
+ mv gxedit dist/
+ mv xproc dist/
diff --git a/editors/gxedit/files/patch-ae b/editors/gxedit/files/patch-ae
index c4d7e1ab3f3f..f80887de5048 100644
--- a/editors/gxedit/files/patch-ae
+++ b/editors/gxedit/files/patch-ae
@@ -6,8 +6,8 @@
-LIBS = `gtk-config --libs`
-CC = gcc
+CFLAGS ?= -O2
-+CFLAGS += `gtk12-config --cflags` -I. -Wall
-+LIBS = `gtk12-config --libs`
++CFLAGS += `$(GTK_CONFIG) --cflags` -I.
++LIBS = `$(GTK_CONFIG) --libs`
+CC ?= gcc
all:
diff --git a/editors/gxedit/pkg-plist b/editors/gxedit/pkg-plist
index 7a8cd217bc62..2073355419ea 100644
--- a/editors/gxedit/pkg-plist
+++ b/editors/gxedit/pkg-plist
@@ -7,7 +7,6 @@ share/gxedit/popmail.scr
share/gxedit/traceroute.scr
share/gxedit/userinfo.scr
share/gxedit/www.scr
-share/doc/gxedit/COPYING
share/doc/gxedit/charmap.txt
share/doc/gxedit/manual.ps
share/doc/gxedit/manual.txt
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 54657283759e..35daa942b62a 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -53,6 +53,8 @@ MAKE_FLAGS:= X_LIBS=-lxpg4 CONF_OPT_MAX="--enable-max-features" ${MAKE_FLAGS}
.if defined(HAVE_GTK)
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+CONFIGURE= GTK_CONFIG="${GTK_CONFIG}"
MAKE_FLAGS:= CONF_OPT_GUI="--enable-gui=gtk --with-gtk-prefix=${X11BASE} --enable-multibyte --enable-fontset --enable-multibyte --enable-xim" ${MAKE_FLAGS}
.elif defined(HAVE_MOTIF)
REQUIRES_MOTIF= yes
diff --git a/editors/vim/files/patch-02 b/editors/vim/files/patch-02
index 0b0b26335fdc..f74cb6530149 100644
--- a/editors/vim/files/patch-02
+++ b/editors/vim/files/patch-02
@@ -1,19 +1,5 @@
--- configure.orig Sun Sep 19 03:59:45 1999
+++ configure Sun Oct 24 21:47:29 1999
-@@ -2906,11 +2906,11 @@
-
- if test "x$gtk_config_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
-- GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_prefix/bin/gtk12-config
- fi
- if test "x$gtk_config_exec_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
-- GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk12-config
- fi
- if test "X$GTK_CONFIG" = "X"; then
- # Extract the first word of "gtk-config", so it can be a program name with args.
@@ -3098,7 +3098,7 @@
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
GUI_LIB_LOC=
diff --git a/editors/vim5/Makefile b/editors/vim5/Makefile
index 54657283759e..35daa942b62a 100644
--- a/editors/vim5/Makefile
+++ b/editors/vim5/Makefile
@@ -53,6 +53,8 @@ MAKE_FLAGS:= X_LIBS=-lxpg4 CONF_OPT_MAX="--enable-max-features" ${MAKE_FLAGS}
.if defined(HAVE_GTK)
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+CONFIGURE= GTK_CONFIG="${GTK_CONFIG}"
MAKE_FLAGS:= CONF_OPT_GUI="--enable-gui=gtk --with-gtk-prefix=${X11BASE} --enable-multibyte --enable-fontset --enable-multibyte --enable-xim" ${MAKE_FLAGS}
.elif defined(HAVE_MOTIF)
REQUIRES_MOTIF= yes
diff --git a/editors/vim5/files/patch-02 b/editors/vim5/files/patch-02
index 0b0b26335fdc..f74cb6530149 100644
--- a/editors/vim5/files/patch-02
+++ b/editors/vim5/files/patch-02
@@ -1,19 +1,5 @@
--- configure.orig Sun Sep 19 03:59:45 1999
+++ configure Sun Oct 24 21:47:29 1999
-@@ -2906,11 +2906,11 @@
-
- if test "x$gtk_config_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
-- GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_prefix/bin/gtk12-config
- fi
- if test "x$gtk_config_exec_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
-- GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk12-config
- fi
- if test "X$GTK_CONFIG" = "X"; then
- # Extract the first word of "gtk-config", so it can be a program name with args.
@@ -3098,7 +3098,7 @@
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
GUI_LIB_LOC=
diff --git a/editors/vim6/Makefile b/editors/vim6/Makefile
index 54657283759e..35daa942b62a 100644
--- a/editors/vim6/Makefile
+++ b/editors/vim6/Makefile
@@ -53,6 +53,8 @@ MAKE_FLAGS:= X_LIBS=-lxpg4 CONF_OPT_MAX="--enable-max-features" ${MAKE_FLAGS}
.if defined(HAVE_GTK)
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+CONFIGURE= GTK_CONFIG="${GTK_CONFIG}"
MAKE_FLAGS:= CONF_OPT_GUI="--enable-gui=gtk --with-gtk-prefix=${X11BASE} --enable-multibyte --enable-fontset --enable-multibyte --enable-xim" ${MAKE_FLAGS}
.elif defined(HAVE_MOTIF)
REQUIRES_MOTIF= yes
diff --git a/editors/vim6/files/patch-02 b/editors/vim6/files/patch-02
index 0b0b26335fdc..f74cb6530149 100644
--- a/editors/vim6/files/patch-02
+++ b/editors/vim6/files/patch-02
@@ -1,19 +1,5 @@
--- configure.orig Sun Sep 19 03:59:45 1999
+++ configure Sun Oct 24 21:47:29 1999
-@@ -2906,11 +2906,11 @@
-
- if test "x$gtk_config_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
-- GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_prefix/bin/gtk12-config
- fi
- if test "x$gtk_config_exec_prefix" != "x" ; then
- gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
-- GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
-+ GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk12-config
- fi
- if test "X$GTK_CONFIG" = "X"; then
- # Extract the first word of "gtk-config", so it can be a program name with args.
@@ -3098,7 +3098,7 @@
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
GUI_LIB_LOC=