1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/graphics/png/files/patch-aa

91 lines
2.3 KiB
Plaintext
Raw Normal View History

1996-02-19 22:17:46 +00:00
*** makefile.orig Fri Jan 26 10:38:44 1996
--- makefile Tue Feb 20 00:55:17 1996
1995-12-05 02:48:19 +00:00
***************
*** 2,27 ****
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
# For conditions of distribution and use, see copyright notice in png.h
! CC=cc
! CFLAGS=-I../zlib -O
! LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
#RANLIB=ranlib
1996-02-19 22:17:46 +00:00
! RANLIB=echo
1995-12-05 02:48:19 +00:00
# where make install puts libpng.a and png.h
! prefix=/usr/local
OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o \
pngread.o pngio.o pngwrite.o pngrtran.o pngwtran.o \
1996-02-19 22:17:46 +00:00
pngmem.o pngerror.o pngpread.o
1995-12-05 02:48:19 +00:00
! all: libpng.a pngtest
libpng.a: $(OBJS)
ar rc $@ $(OBJS)
$(RANLIB) $@
pngtest: pngtest.o libpng.a
$(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
1996-02-19 22:17:46 +00:00
--- 2,36 ----
1995-12-05 02:48:19 +00:00
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
# For conditions of distribution and use, see copyright notice in png.h
1996-02-19 22:17:46 +00:00
! VER=0.88
1995-12-05 02:48:19 +00:00
! #CC=cc
! CFLAGS+=-I/usr/local/include
! LDFLAGS=-L. -L/usr/local/lib -lpng -lz -lm -static
#RANLIB=ranlib
1996-02-19 22:17:46 +00:00
! #RANLIB=echo
1995-12-05 02:48:19 +00:00
# where make install puts libpng.a and png.h
! prefix=${PREFIX}
OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o \
pngread.o pngio.o pngwrite.o pngrtran.o pngwtran.o \
1996-02-19 22:17:46 +00:00
pngmem.o pngerror.o pngpread.o
1995-12-05 02:48:19 +00:00
! .SUFFIXES: .c .so .o
1996-02-19 22:17:46 +00:00
+ .c.so:
+ ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+
+ all: libpng.a libpng.so.${VER}
+
1995-12-05 02:48:19 +00:00
libpng.a: $(OBJS)
ar rc $@ $(OBJS)
$(RANLIB) $@
1996-02-19 22:17:46 +00:00
+ libpng.so.${VER}: $(OBJS:S/o$/so/g)
1995-12-05 02:48:19 +00:00
+ ld -Bshareable -o $@ $(OBJS:S/o$/so/g)
+
pngtest: pngtest.o libpng.a
$(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
***************
*** 31,42 ****
install: libpng.a
-@mkdir $(prefix)/include
-@mkdir $(prefix)/lib
! cp png.h $(prefix)/include
! cp pngconf.h $(prefix)/include
! chmod 644 $(prefix)/include/png.h
! chmod 644 $(prefix)/include/pngconf.h
! cp libpng.a $(prefix)/lib
! chmod 644 $(prefix)/lib/libpng.a
clean:
rm -f *.o libpng.a pngtest pngout.png
1996-02-19 22:17:46 +00:00
--- 40,48 ----
1995-12-05 02:48:19 +00:00
install: libpng.a
-@mkdir $(prefix)/include
-@mkdir $(prefix)/lib
! ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} png.h pngconf.h $(prefix)/include
1996-02-19 22:17:46 +00:00
! ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${VER} $(prefix)/lib
1995-12-05 02:48:19 +00:00
! ranlib $(prefix)/lib/libpng.a
clean:
rm -f *.o libpng.a pngtest pngout.png