diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-20 08:10:42 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-20 08:10:42 +0000 |
commit | e557e7d7cd7f13a34b402483c10164b09a4d76cf (patch) | |
tree | a8c9986891a6daa68f559435fe1cedcbdbc421aa /editors/manedit/files/patch-Makefile | |
parent | Update to Mozilla 0.8. (diff) |
Add manedit 0.4.h, a UNIX manual page editor and viewer.
Sponsored by: Francisco Reyes <fjrm@yahoo.com>
Notes
Notes:
svn path=/head/; revision=38501
Diffstat (limited to 'editors/manedit/files/patch-Makefile')
-rw-r--r-- | editors/manedit/files/patch-Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/editors/manedit/files/patch-Makefile b/editors/manedit/files/patch-Makefile new file mode 100644 index 000000000000..01f9538a6ea9 --- /dev/null +++ b/editors/manedit/files/patch-Makefile @@ -0,0 +1,64 @@ + +$FreeBSD$ + +--- Makefile.orig Fri Feb 9 02:18:25 2001 ++++ Makefile Fri Feb 9 15:41:52 2001 +@@ -18,7 +18,7 @@ + # You may modify any value as needed. Change only the ones you are + # absolutly sure that requires modification. + # +-PREFIX = /usr ++PREFIX ?= /usr + + + # ######################################################################## +@@ -49,7 +49,9 @@ + # to debug the program. + # + #CFLAGS = `gtk-config --cflags` -g -efence -Wall +-CFLAGS = `gtk-config --cflags` -O2 -Wall ++GTK_CFLAGS != $(GTK_CONFIG) --cflags ++CFLAGS += $(GTK_CFLAGS) -Wall -DPREFIX=\"$(PREFIX)\" \ ++ -DLOCALBASE=\"$(LOCALBASE)\" -DX11BASE=\"$(X11BASE)\" + + CPPFLAGS = -D__cplusplus -Dc_plusplus + +@@ -65,7 +67,7 @@ + # to the LIB line depending on what you have set in the CFLAGS line + # farther above. + # +-LIB = `gtk-config --libs` ++LIB != $(GTK_CONFIG) --libs + + # Library Directories: + # +@@ -95,9 +97,10 @@ + # + include Makefile.srclist + +-CC = gcc +-CPP = g++ ++CC ?= gcc ++CPP = $(CXX) + BIN = manedit ++SED ?= sed + OBJ_C = $(SRC_C:.c=.o) + OBJ_CPP = $(SRC_CPP:.cpp=.o) + .c.o: +@@ -112,7 +115,7 @@ + $(BIN): $(OBJ_C) $(OBJ_CPP) + $(CC) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIB) $(LIB_DIR) + +-all: $(BIN) ++all: $(BIN) $(BIN).1.out + + + # ######################################################################## +@@ -129,5 +132,7 @@ + clean: + rm -f a.out core *.o + ++$(BIN).1.out: $(BIN).1 ++ $(SED) 's|%%PREFIX%%|$(PREFIX)|g' $(BIN).1 > $(BIN).1.out + + # ######################################################################## |