3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
--- Makefile.orig Sun May 27 16:02:18 2001
|
|
+++ Makefile Fri Jul 27 17:06:11 2001
|
|
@@ -1,8 +1,6 @@
|
|
-CC = gcc
|
|
-CFLAGS = -O2 -Wall
|
|
-INCDIR = -I/usr/X11R6/include/X11
|
|
-DESTDIR= /usr/X11R6
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+INCDIR = -I${LOCALBASE}/include
|
|
+DESTDIR= ${PREFIX}
|
|
+LIBDIR = -L${LOCALBASE}/lib
|
|
# for linux
|
|
LIBS = -lXpm -lX11 -lXext
|
|
# for Solaris
|
|
@@ -12,14 +10,14 @@
|
|
|
|
|
|
.c.o:
|
|
- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -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 +26,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
|
|
|