mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
89b7d2a446
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly PR: 19623 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
28 lines
713 B
Plaintext
28 lines
713 B
Plaintext
--- Makefile.orig Sat Jul 31 14:33:44 1999
|
|
+++ Makefile Sun Aug 1 22:21:37 1999
|
|
@@ -19,11 +19,11 @@
|
|
|
|
EXTRA_CFLAGS = -DQSTAT23 # -DCOMPRESSOR_BZIP2 -DDEBUG
|
|
|
|
-CC = gcc
|
|
-CFLAGS = -O2 -g -Wall `gtk-config --cflags` $(EXTRA_CFLAGS)
|
|
-LDFLAGS = `gtk-config --libs`
|
|
+CC ?= gcc
|
|
+CFLAGS += `$(GTK_CONFIG) --cflags` $(EXTRA_CFLAGS)
|
|
+LDFLAGS = `$(GTK_CONFIG) --libs`
|
|
|
|
-INSTALL_ROOT = /usr/local
|
|
+INSTALL_ROOT = ${PREFIX}
|
|
|
|
TARGET = xqf
|
|
|
|
@@ -46,7 +46,7 @@
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -MM $$i; done) > Makefile
|
|
|
|
install:
|
|
- install -s -m 755 -g root -o root $(TARGET) $(INSTALL_ROOT)/bin
|
|
+ ${BSD_INSTALL_PROGRAM} $(TARGET) $(INSTALL_ROOT)/bin
|
|
|
|
dist-clean clean:
|
|
rm -f *.[oasi] *~ core $(TARGET) Makefile.old
|