- Support X11BASE properly
- Remove USE_GMAKE - WindowMaker -> Window Maker PR: 20543 Submitted by: Ports Fury
This commit is contained in:
parent
e2374e874f
commit
8a4dbbbadf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31567
3 changed files with 32 additions and 16 deletions
|
@ -16,15 +16,9 @@ RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick
|
|||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/wmGrabImage
|
||||
|
||||
USE_GMAKE= YES
|
||||
USE_X_PREFIX= YES
|
||||
USE_XPM= YES
|
||||
|
||||
MAN1= wmGrabImage.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/wmGrabImage ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/GrabImage ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/wmGrabImage.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,22 +1,44 @@
|
|||
--- Makefile.orig Mon Feb 1 15:55:30 1999
|
||||
+++ Makefile Wed Jan 5 14:31:02 2000
|
||||
@@ -1,6 +1,7 @@
|
||||
--- Makefile.orig Tue Feb 2 06:55:30 1999
|
||||
+++ Makefile Thu Aug 10 22:05:20 2000
|
||||
@@ -1,8 +1,8 @@
|
||||
-CC = gcc
|
||||
-CFLAGS = -O2 -Wall
|
||||
-INCDIR = -I/usr/X11R6/include/X11
|
||||
-DESTDIR= /usr/X11R6
|
||||
-LIBDIR = -L/usr/X11R6/lib
|
||||
+CC ?= gcc
|
||||
+CFLAGS ?= -O2
|
||||
+CFLAGS += -Wall
|
||||
+INCDIR = -I/usr/X11R6/include
|
||||
DESTDIR= /usr/X11R6
|
||||
LIBDIR = -L/usr/X11R6/lib
|
||||
+INCDIR = -I${X11BASE}/include
|
||||
+DESTDIR= ${PREFIX}
|
||||
+LIBDIR = -L${X11BASE}/lib
|
||||
# for linux
|
||||
@@ -12,7 +13,7 @@
|
||||
LIBS = -lXpm -lX11 -lXext
|
||||
# for Solaris
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
|
||||
.c.o:
|
||||
- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
||||
+ $(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
|
||||
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
|
||||
|
||||
|
||||
all: wmGrabImage.o wmGrabImage
|
||||
|
||||
wmGrabImage.o: wmGrabImage_master.xpm wmGrabImage_mask.xbm
|
||||
wmGrabImage: $(OBJS)
|
||||
- $(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $^ $(INCDIR) $(LIBDIR) $(LIBS)
|
||||
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $(OBJS) $(LIBDIR) $(LIBS)
|
||||
|
||||
clean:
|
||||
for i in $(OBJS) ; do \
|
||||
@@ -28,7 +28,7 @@
|
||||
rm -f wmGrabImage
|
||||
|
||||
install:: wmGrabImage
|
||||
- install -s -m 0755 wmGrabImage $(DESTDIR)/bin
|
||||
- install -m 0755 GrabImage $(DESTDIR)/bin
|
||||
- install -m 0644 wmGrabImage.1 $(DESTDIR)/man/man1
|
||||
+ ${BSD_INSTALL_PROGRAM} wmGrabImage $(DESTDIR)/bin
|
||||
+ ${BSD_INSTALL_SCRIPT} GrabImage $(DESTDIR)/bin
|
||||
+ ${BSD_INSTALL_MAN} wmGrabImage.1 $(DESTDIR)/man/man1
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
wmGrabImage is a WindowMaker DockApp that maintains a small thumbnail copy of
|
||||
wmGrabImage is a Window Maker DockApp that maintains a small thumbnail copy of
|
||||
your favorite image from the WWW. The image to monitor is specified via the
|
||||
"-url <Image URL>" command-line option and it gets updated approximately every
|
||||
5 minutes. The update interval can be overridden via the "-delay <Time>"
|
||||
|
|
Loading…
Reference in a new issue