- Support CFLAGS properly

- Remove USE_GMAKE
- Exclude GPL doc from package
- WindowMaker -> Window Maker

PR: 20548
Submitted by: Ports Fury
This commit is contained in:
Kevin Lo 2000-08-12 08:17:43 +00:00
parent 7b226a1249
commit c882dd7d13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31563
4 changed files with 10 additions and 15 deletions

View File

@ -17,17 +17,13 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
MAKE_ENV= PREFIX="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
ALL_TARGET= wmbattery
MAN1= wmbattery.1
# install additional docs
.if !defined(NOPORTDOCS)
post-install:
.for i in COPYING INSTALL README TODO
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/wmbattery
.if !defined(NOPORTDOCS)
.for i in INSTALL README TODO
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/wmbattery
.endfor
.endif

View File

@ -6,7 +6,7 @@
-MANDIR = /usr/X11R6/man/man1
-INCDIR = -I/usr/X11R6/include
-LIBDIR = -L/usr/X11R6/lib
+PREFIX = /usr/X11R6
+PREFIX ?= /usr/X11R6
+ICONDIR = $(PREFIX)/share/wmbattery/icons
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/man/man1
@ -14,7 +14,7 @@
+LIBDIR = -L$(PREFIX)/lib
LIBS = -lXpm -lXext
-CFLAGS = $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\" -O2 -Wall
+CFLAGS += $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\"
+CFLAGS += $(INCDIR) -DICONDIR=\"$(ICONDIR)\"
wmbattery: wmbattery.c wmbattery.h
$(CC) $(CFLAGS) $(LIBDIR) $(LIBS) wmbattery.c -o wmbattery
@ -26,10 +26,10 @@
- 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)
+ -mkdir -p $(ICONDIR) $(BINDIR) $(MANDIR)
+ ${BSD_INSTALL_PROGRAM} wmbattery $(BINDIR)
+ ${BSD_INSTALL_MAN} wmbattery.1x $(MANDIR)/wmbattery.1
+ ${BSD_INSTALL_DATA} *.xpm $(ICONDIR)
test: wmbattery
./wmbattery

View File

@ -1 +1 @@
WindowMaker dockapp that displays info about your battery
Window Maker dockapp that displays info about your battery

View File

@ -11,7 +11,6 @@ share/wmbattery/icons/smallfont.xpm
share/wmbattery/icons/unplugged.xpm
share/wmbattery/icons/plugged.xpm
share/wmbattery/icons/bigfont.xpm
share/wmbattery/COPYING
share/wmbattery/INSTALL
share/wmbattery/README
share/wmbattery/TODO