openbsd-ports/graphics/wmphoto/patches/patch-wmphoto_Makefile
naddy d07e33fec8 Import wmphoto 0.3a.
Submitted by Peter Stromberg <home@wilfried.net>.

It's a dock-app that can show you a photo and execute a command
related to that photo.  You can have many photos.
2001-01-16 22:44:42 +00:00

39 lines
851 B
Plaintext

$OpenBSD: patch-wmphoto_Makefile,v 1.1.1.1 2001/01/16 22:44:43 naddy Exp $
--- wmphoto/Makefile.orig Mon Mar 15 05:58:03 1999
+++ wmphoto/Makefile Tue Jan 16 17:50:55 2001
@@ -1,12 +1,9 @@
# wmphoto Makefile
-# directory where to install it.
-INSTALL = /usr/local/bin
-
# RedHat Linux 5.2
-CC = gcc
-CCOPTIONS = -O2 -Wall
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS+= -I${X11BASE}/include
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11
# Slowlaris at my university
@@ -25,16 +22,10 @@ OBJS = $(APP).o \
all: $(APP)
.c.o:
- $(CC) -c $(CCOPTIONS) $< -o $*.o
+ $(CC) -c $(CFLAGS) $< -o $*.o
$(APP): $(OBJS)
- $(CC) -o $(APP) $^ $(LIBDIR) $(LIBS)
-
-install: $(APP)
- strip $(APP)
- cp $(APP) $(INSTALL)
- chown root.root $(APP)
- chmod 755 $(APP)
+ $(CC) -o $(APP) $(OBJS) $(LIBDIR) $(LIBS)
clean::
for i in $(OBJS) ; do \