openbsd-ports/plan9/sam/patches/patch-ab
2001-03-17 17:11:56 +00:00

43 lines
1.2 KiB
Plaintext

$OpenBSD: patch-ab,v 1.3 2001/03/17 17:11:56 wilfried Exp $
--- libXg/Makefile.orig Fri Mar 16 17:22:40 2001
+++ libXg/Makefile Fri Mar 16 17:23:30 2001
@@ -8,17 +8,17 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX5 -ansiposix
+OS=-D_POSIX_SOURCE -DSOLARIS
# add -Iincludedir for any include directories that need to be searched
-INCS=-I../include
+INCS=-I../include -I/usr/X11R6/include
# set this if your X libraries are in different locations
# or if you need extra libraries to load with X11 applications
XLIBS=-lXt
# add name of library orderer - use ":" if none
-RANLIB=:
+RANLIB=ranlib
# add name of librarian
AR=ar
@@ -26,8 +26,7 @@ AR=ar
# the name of the library
LIB=libXg.a
-CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS)
-CC=cc
+CFLAGS+=$(OS) -D_LIBXG_EXTENSION $(INCS)
OBJS= arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect.o\
circle.o clipline.o clipr.o copymasked.o cursorset.o cursorswitch.o\
@@ -50,7 +49,5 @@ nuke: clean
$(LIB): $(OBJS)
$(AR) rv $(LIB) $(OBJS)
$(RANLIB) $(LIB)
-
-$(LIB)(%.o): %.o
$(OBJS): ../include/libg.h libgint.h ../include/libc.h