1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/security/gtkportscan/files/patch-aa
Kevin Lo 05a96e6af7 - Use GTK_CONFIG instead of hardcoded gtk12-config
PR: 19930
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
2000-07-15 16:45:18 +00:00

33 lines
870 B
Plaintext

--- Makefile.orig Thu Mar 11 17:58:41 1999
+++ Makefile Sun Jul 16 00:45:14 2000
@@ -1,21 +1,21 @@
-CC=gcc
-GTK_FLAGS=`gtk-config --cflags` `gtk-config --libs`
+CC?=gcc
+GTK_FLAGS=`$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs`
all: gtkportscan portscan
portscan: portscan.c
- $(CC) -O2 -Wall portscan.c -o portscan -g
+ $(CC) $(CFLAGS) portscan.c -o portscan
gtkportscan: gtkportscan.c
- $(CC) -Wall $(GTK_FLAGS) gtkportscan.c -o gtkportscan -g
+ $(CC) $(CFLAGS) $(GTK_FLAGS) gtkportscan.c -o gtkportscan
install:
- cp portscan /usr/local/bin
- cp gtkportscan /usr/X11/bin
+ ${BSD_INSTALL_PROGRAM} portscan ${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} gtkportscan ${PREFIX}/bin
clean:
rm -f portscan gtkportscan
uninstall:
- rm -f /usr/local/bin/portscan
- rm -f /usr/X11/bin/gtkportscan
+ rm -f ${PREFIX}/bin/portscan
+ rm -f ${PREFIX}/bin/gtkportscan