1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/erwn/files/patch-aa
Steve Price 89b7d2a446 - 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>
2000-07-07 19:59:26 +00:00

44 lines
1.2 KiB
Plaintext

--- Makefile.orig Sun Jul 25 05:33:08 1999
+++ Makefile Sat Jul 1 17:57:20 2000
@@ -2,14 +2,14 @@
bindir = $(prefix)/bin
NAME = erwin-0.3.1
-CC = gcc
+CC ?= gcc
PROG = erwin
OBJS = erwin.o erwinmenu.o erwinfunctions.o erwintoolbar.o \
erwinnotebook.o erwindialogs.o erwintags.o gtkmessage.o
INSTALL = install
-DEBUG = -g -DDEBUG
+DEBUG = # -g -DDEBUG
-CFLAGS = -DNAME=\"$(NAME)\" $(DEBUG) -Wall -O2 -m486 -fno-strength-reduce -malign-functions=4 -malign-jumps=4 -malign-loops=4 -ffast-math -fexpensive-optimizations
+CFLAGS += -DNAME=\"$(NAME)\" $(DEBUG) -fno-strength-reduce -ffast-math -fexpensive-optimizations
all: license $(PROG)
@@ -17,8 +17,7 @@
strip $(PROG)
install: strip
- $(INSTALL) -d $(bindir)
- $(INSTALL) -m 0755 $(PROG) $(bindir)
+ ${BSD_INSTALL_PROGRAM} $(PROG) $(bindir)
uninstall:
@@ -28,10 +27,10 @@
rm -f $(PROG) $(OBJS) *.?~ core license.h
$(PROG): $(OBJS)
- $(CC) $(LDFLAGS) $(shell gtk-config --libs) -o $@ $(OBJS)
+ $(CC) $(LDFLAGS) `$(GTK_CONFIG) --libs` -o $@ $(OBJS)
%.o: %.c
- $(CC) $(CFLAGS) $(shell gtk-config --cflags) -o $@ -c $<
+ $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -o $@ -c $<
tar: clean
cd ..; ln -s erwin $(NAME);tar cf - $(NAME)/* > $(NAME).tar;rm $(NAME);gzip -f $(NAME).tar