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

104 lines
2.7 KiB
Plaintext
Raw Normal View History

1998-07-09 23:39:44 +00:00
*** scripts/makefile.std.orig Wed Apr 1 04:49:34 1998
--- scripts/makefile.std Fri Jul 10 03:34:22 1998
1995-12-05 02:48:19 +00:00
***************
1997-06-24 13:16:00 +00:00
*** 5,33 ****
# Where the zlib library and include files are located
#ZLIBLIB=/usr/local/lib
#ZLIBINC=/usr/local/include
! ZLIBLIB=../zlib
! ZLIBINC=../zlib
1995-12-05 02:48:19 +00:00
! CC=cc
1998-07-09 23:39:44 +00:00
! CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
1997-06-24 13:16:00 +00:00
! LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
1995-12-05 02:48:19 +00:00
1997-06-24 13:16:00 +00:00
#RANLIB=echo
RANLIB=ranlib
1995-12-05 02:48:19 +00:00
# where make install puts libpng.a and png.h
! prefix=/usr/local
1997-06-24 13:16:00 +00:00
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
1996-07-17 20:08:06 +00:00
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
pngwtran.o 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
1998-03-28 13:48:46 +00:00
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
1995-12-05 02:48:19 +00:00
1998-07-09 23:39:44 +00:00
--- 5,47 ----
1997-06-24 13:16:00 +00:00
# Where the zlib library and include files are located
#ZLIBLIB=/usr/local/lib
#ZLIBINC=/usr/local/include
! #ZLIBLIB=../zlib
! #ZLIBINC=../zlib
1995-12-05 02:48:19 +00:00
! #CC=cc
1998-07-09 23:39:44 +00:00
! CFLAGS+=-I.
! LDFLAGS+=-L. -lpng -lz -lm -static
1995-12-05 02:48:19 +00:00
1997-06-24 13:16:00 +00:00
#RANLIB=echo
RANLIB=ranlib
1995-12-05 02:48:19 +00:00
+ # Set major and minor numbers that are ELF-compliant.
+ # The minor must _always_ be 0
+ PNGMAJ = 3
+ PNGMIN = 0
1998-07-09 23:39:44 +00:00
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
1995-12-05 02:48:19 +00:00
# where make install puts libpng.a and png.h
! prefix=${PREFIX}
1997-06-24 13:16:00 +00:00
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
1996-07-17 20:08:06 +00:00
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
pngwtran.o pngmem.o pngerror.o pngpread.o
1995-12-05 02:48:19 +00:00
! .SUFFIXES: .c .so .o
1997-06-24 13:16:00 +00:00
!
1996-07-17 20:08:06 +00:00
! .c.so:
! ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
!
1998-07-09 23:39:44 +00:00
! all: libpng.a libpng.so.${PNGVER}
1995-12-05 02:48:19 +00:00
libpng.a: $(OBJS)
ar rc $@ $(OBJS)
$(RANLIB) $@
1998-07-09 23:39:44 +00:00
+ libpng.so.${PNGVER}: $(OBJS:S/o$/so/g)
1997-12-16 08:59:18 +00:00
+ ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz -lm
1995-12-05 02:48:19 +00:00
+
pngtest: pngtest.o libpng.a
1998-03-28 13:48:46 +00:00
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
1995-12-05 02:48:19 +00:00
***************
1997-06-24 13:16:00 +00:00
*** 37,48 ****
1995-12-05 02:48:19 +00:00
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
1998-07-09 23:39:44 +00:00
--- 51,61 ----
1995-12-05 02:48:19 +00:00
install: libpng.a
-@mkdir $(prefix)/include
-@mkdir $(prefix)/lib
1998-03-02 19:43:31 +00:00
! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} png.h pngconf.h $(prefix)/include
1998-07-09 23:39:44 +00:00
! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${PNGVER} $(prefix)/lib
1995-12-05 02:48:19 +00:00
! ranlib $(prefix)/lib/libpng.a
1998-03-02 19:43:31 +00:00
! ${INSTALL} -c -m ${MANMODE} -o ${MANOWN} -g ${MANGRP} libpng.3 libpngpf.3 $(prefix)/man/man3
! ${INSTALL} -c -m ${MANMODE} -o ${MANOWN} -g ${MANGRP} png.5 $(prefix)/man/man5
1995-12-05 02:48:19 +00:00
clean:
rm -f *.o libpng.a pngtest pngout.png