1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/x11/gmessage/files/patch-aa
Vanilla I. Shu 82b3ec3f0d Support stagedir.
Approved by:	portmgr (blanket infrastructure)
2014-01-10 09:32:14 +00:00

22 lines
532 B
Plaintext

--- Makefile.orig 1999-05-27 18:58:06.000000000 +0800
+++ Makefile 2014-01-10 14:20:30.000000000 +0800
@@ -1,6 +1,6 @@
-CC = gcc
-CFLAGS = `gtk-config --cflags`
-LDLIBS = `gtk-config --libs`
+CC ?= gcc
+CFLAGS += `$(GTK_CONFIG) --cflags`
+LDLIBS = `$(GTK_CONFIG) --libs`
all: gmessage
@@ -8,7 +8,7 @@ gmessage: gmessage.c
$(CC) $(CFLAGS) gmessage.c -o gmessage $(OBJS) $(LDLIBS)
install: gmessage
- cp ./gmessage /usr/local/bin
+ ${BSD_INSTALL_PROGRAM} gmessage $(DESTDIR)${PREFIX}/bin
clean:
$(RM) *.o core gmessage