mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
9edfa2706e
+ use wmbattery_1.12.tar.gz as a distfile instead of a plain wmbattery.tar.gz to avoid future bento warnings; + respect CFLAGS. Reported by: bento
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
--- Makefile.orig Thu Apr 6 23:18:13 2000
|
|
+++ Makefile Fri May 19 14:45:14 2000
|
|
@@ -1,10 +1,11 @@
|
|
-ICONDIR = /usr/share/icons/wmbattery
|
|
-BINDIR = /usr/X11R6/bin
|
|
-MANDIR = /usr/X11R6/man/man1
|
|
-INCDIR = -I/usr/X11R6/include
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+PREFIX = /usr/X11R6
|
|
+ICONDIR = $(PREFIX)/share/wmbattery/icons
|
|
+BINDIR = $(PREFIX)/bin
|
|
+MANDIR = $(PREFIX)/man/man1
|
|
+INCDIR = -I$(PREFIX)/include
|
|
+LIBDIR = -L$(PREFIX)/lib
|
|
LIBS = -lXpm -lXext
|
|
-CFLAGS = $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\" -O2 -Wall
|
|
+CFLAGS += $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\"
|
|
|
|
wmbattery: wmbattery.c wmbattery.h
|
|
$(CC) $(CFLAGS) $(LIBDIR) $(LIBS) wmbattery.c -o wmbattery
|
|
@@ -13,10 +14,10 @@
|
|
rm -f wmbattery
|
|
|
|
install: wmbattery
|
|
- install -c -d $(PREFIX)$(ICONDIR) $(PREFIX)$(BINDIR) $(PREFIX)$(MANDIR)
|
|
- install -c -s wmbattery $(PREFIX)$(BINDIR)
|
|
- install -c -m 644 wmbattery.1x $(PREFIX)$(MANDIR)/wmbattery.1
|
|
- install -c -m 644 *.xpm $(PREFIX)$(ICONDIR)
|
|
+ install -c -d $(ICONDIR) $(BINDIR) $(MANDIR)
|
|
+ $(INSTALL_PROGRAM) wmbattery $(BINDIR)
|
|
+ $(INSTALL_MAN) wmbattery.1x $(MANDIR)/wmbattery.1
|
|
+ $(INSTALL_DATA) *.xpm $(ICONDIR)
|
|
|
|
test: wmbattery
|
|
./wmbattery
|