freebsd-ports/misc/gman/files/patch-Makefile
Ying-Chieh Liao fd41396e56 upgrade to 0.9.2
PR:		26555
Submitted by:	tkato@prontomail.ne.jp
2001-04-14 11:21:15 +00:00

26 lines
931 B
Plaintext

--- Makefile.orig Sat Mar 31 19:05:24 2001
+++ Makefile Sat Apr 14 04:19:15 2001
@@ -1,18 +1,18 @@
# Gman Makefile
# You can adjust the following variables.
-CXX = g++
-CXXFLAGS = -DVERSION=\"0.9.2\" `gtk-config --cflags` -O2 #-Wall
+CXX ?= g++
+CXXFLAGS += -DVERSION=\"0.9.2\" `${GTK_CONFIG} --cflags gthread` #-Wall
CC = $(CXX) $(CXXFLAGS)
GNOMELIB = #`gnome-config --libs gnomeui`
-prefix = /usr
+prefix = ${PREFIX}
cgi_bin_prefix = /home/httpd/cgi-bin
# There shouldn't be any need to edit anything below this point.
all: gman
gman: menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o
- $(CC) -lgtk -lgdk -lpthread $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
+ $(CC) `${GTK_CONFIG} --libs gthread` $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
gman.o: gman.c menu.h
$(CC) -c gman.c