View | Details | Raw Unified | Return to bug 20543
Collapse All | Expand All

(-)graphics/wmgrabimage/Makefile (-6 lines)
Lines 16-30 Link Here
16
16
17
WRKSRC=		${WRKDIR}/${DISTNAME}/wmGrabImage
17
WRKSRC=		${WRKDIR}/${DISTNAME}/wmGrabImage
18
18
19
USE_GMAKE=	YES
20
USE_X_PREFIX=	YES
19
USE_X_PREFIX=	YES
21
USE_XPM=	YES
20
USE_XPM=	YES
22
21
23
MAN1=		wmGrabImage.1
22
MAN1=		wmGrabImage.1
24
25
do-install:
26
	${INSTALL_PROGRAM} ${WRKSRC}/wmGrabImage ${PREFIX}/bin
27
	${INSTALL_SCRIPT} ${WRKSRC}/GrabImage ${PREFIX}/bin
28
	${INSTALL_MAN} ${WRKSRC}/wmGrabImage.1 ${PREFIX}/man/man1
29
23
30
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)graphics/wmgrabimage/patches/patch-aa (-9 / +31 lines)
Lines 1-22 Link Here
1
--- Makefile.orig	Mon Feb  1 15:55:30 1999
1
--- Makefile.orig	Tue Feb  2 06:55:30 1999
2
+++ Makefile	Wed Jan  5 14:31:02 2000
2
+++ Makefile	Thu Aug 10 22:05:20 2000
3
@@ -1,6 +1,7 @@
3
@@ -1,8 +1,8 @@
4
-CC     = gcc
4
-CC     = gcc
5
-CFLAGS = -O2 -Wall
5
-CFLAGS = -O2 -Wall
6
-INCDIR = -I/usr/X11R6/include/X11
6
-INCDIR = -I/usr/X11R6/include/X11
7
-DESTDIR= /usr/X11R6
8
-LIBDIR = -L/usr/X11R6/lib
7
+CC     ?= gcc
9
+CC     ?= gcc
8
+CFLAGS ?= -O2
10
+CFLAGS ?= -O2
9
+CFLAGS += -Wall
11
+INCDIR = -I${X11BASE}/include
10
+INCDIR = -I/usr/X11R6/include
12
+DESTDIR= ${PREFIX}
11
 DESTDIR= /usr/X11R6
13
+LIBDIR = -L${X11BASE}/lib
12
 LIBDIR = -L/usr/X11R6/lib
13
 # for linux
14
 # for linux
14
@@ -12,7 +13,7 @@
15
 LIBS   = -lXpm -lX11 -lXext
16
 # for Solaris
17
@@ -12,14 +12,14 @@
15
 
18
 
16
 
19
 
17
 .c.o:
20
 .c.o:
18
-	$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
21
-	$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
19
+	$(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
22
+	$(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
20
 
23
 
21
 
24
 
22
 all:	wmGrabImage.o wmGrabImage
25
 all:	wmGrabImage.o wmGrabImage
26
 
27
 wmGrabImage.o: wmGrabImage_master.xpm wmGrabImage_mask.xbm
28
 wmGrabImage:	$(OBJS) 
29
-	$(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $^ $(INCDIR) $(LIBDIR) $(LIBS)
30
+	$(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $(OBJS) $(LIBDIR) $(LIBS)
31
 
32
 clean:
33
 	for i in $(OBJS) ; do \
34
@@ -28,7 +28,7 @@
35
 	rm -f wmGrabImage
36
 
37
 install:: wmGrabImage
38
-	install -s -m 0755 wmGrabImage $(DESTDIR)/bin
39
-	install    -m 0755 GrabImage $(DESTDIR)/bin
40
-	install    -m 0644 wmGrabImage.1 $(DESTDIR)/man/man1 
41
+	${BSD_INSTALL_PROGRAM} wmGrabImage $(DESTDIR)/bin
42
+	${BSD_INSTALL_SCRIPT} GrabImage $(DESTDIR)/bin
43
+	${BSD_INSTALL_MAN} wmGrabImage.1 $(DESTDIR)/man/man1 
44
 
(-)graphics/wmgrabimage/pkg/DESCR (-1 / +1 lines)
Lines 1-4 Link Here
1
wmGrabImage is a WindowMaker DockApp that maintains a small thumbnail copy of
1
wmGrabImage is a Window Maker DockApp that maintains a small thumbnail copy of
2
your favorite image from the WWW.  The image to monitor is specified via the
2
your favorite image from the WWW.  The image to monitor is specified via the
3
"-url <Image URL>" command-line option and it gets updated approximately every
3
"-url <Image URL>" command-line option and it gets updated approximately every
4
5 minutes.  The update interval can be overridden via the "-delay <Time>"
4
5 minutes.  The update interval can be overridden via the "-delay <Time>"

Return to bug 20543