openbsd-ports/graphics/compface/patches/patch-aa

68 lines
2.0 KiB
Plaintext

--- Makefile.orig Fri Dec 10 11:08:33 1999
+++ Makefile Fri Dec 10 11:16:26 1999
@@ -25,10 +25,10 @@
# BINDIR, LIBDIR, and MANDIR are expected to be overridden by the
# calling Makefile
-BINDIR = /usr/local/bin
-LIBDIR = /usr/local/lib
-INCDIR = /usr/local/include
-MANDIR = /usr/local/man
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/lib
+INCDIR = $(PREFIX)/include
+MANDIR = $(PREFIX)/man
NAME = compface
UNNAME = uncompface
@@ -50,8 +50,8 @@
#CCOMP = -XG -O5 -wucp -Xa
#CFLAGS = $(CDEFS) $(CCOMP)
-CC = gcc
-CFLAGS = -g
+#CC = gcc
+#CFLAGS = -g
all: $(NAME) $(UNNAME)
@@ -72,22 +72,22 @@
rm -f *.o *.a *.sh core a.out $(NAME) $(UNNAME)
install : $(NAME) $(UNNAME) $(LIBNAME)
- test -d $(BINDIR) || mkdir $(BINDIR)
- -cp $(NAME) $(EXECUTABLE)
- strip $(EXECUTABLE)
- -cp $(UNNAME) $(UNEXECUTABLE)
- strip $(UNEXECUTABLE)
- test -d $(MAN1DIR) || mkdir $(MAN1DIR)
- -cp $(NAME).1 $(MAN1DIR)
- rm -f $(MAN1DIR)/$(UNNAME).1
- -ln $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
- -cp $(LIBNAME) $(LIBRARY)
- test -d $(INCDIR) || mkdir $(INCDIR)
- -cp $(HEADERS) $(INCDIR)
- test -d $(MAN3DIR) || mkdir $(MAN3DIR)
- -cp $(NAME).3 $(MAN3DIR)
- rm -f $(MAN3DIR)/$(UNNAME).3
- -ln $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
+ @test -d $(BINDIR) || mkdir $(BINDIR)
+ $(BSD_INSTALL_PROGRAM) $(NAME) $(EXECUTABLE)
+ @strip $(EXECUTABLE)
+ $(BSD_INSTALL_PROGRAM) $(UNNAME) $(UNEXECUTABLE)
+ @strip $(UNEXECUTABLE)
+ @test -d $(MAN1DIR) || mkdir $(MAN1DIR)
+ $(BSD_INSTALL_MAN) $(NAME).1 $(MAN1DIR)
+ @rm -f $(MAN1DIR)/$(UNNAME).1
+ @ln -sf $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
+ $(BSD_INSTALL_DATA) $(LIBNAME) $(LIBRARY)
+ @test -d $(INCDIR) || mkdir $(INCDIR)
+ $(BSD_INSTALL_DATA) $(HEADERS) $(INCDIR)
+ @test -d $(MAN3DIR) || mkdir $(MAN3DIR)
+ $(BSD_INSTALL_MAN) $(NAME).3 $(MAN3DIR)
+ @rm -f $(MAN3DIR)/$(UNNAME).3
+ @ln -sf $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
shar :
shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh