mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Upgrade to 1.0.2
This commit is contained in:
parent
bba76b1121
commit
f31512dd5f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11807
@ -1,13 +1,13 @@
|
||||
# New ports collection makefile for: PNG images library
|
||||
# Version required: 1.0.1
|
||||
# Version required: 1*
|
||||
# Date created: 5 Dec 1995
|
||||
# Whom: ache
|
||||
#
|
||||
# $Id: Makefile,v 1.11 1998/03/02 19:43:11 ache Exp $
|
||||
# $Id: Makefile,v 1.12 1998/03/28 13:48:18 ache Exp $
|
||||
#
|
||||
|
||||
DISTNAME= libpng-1.0.1
|
||||
PKGNAME= png-1.0.1
|
||||
DISTNAME= libpng-1.0.2
|
||||
PKGNAME= png-1.0.2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ftp://ftp.uu.net/graphics/png/src/
|
||||
|
||||
|
@ -1 +1 @@
|
||||
MD5 (libpng-1.0.1.tar.gz) = 7dd031b93f0a9b99bd5fdccb38e270cb
|
||||
MD5 (libpng-1.0.2.tar.gz) = a8b093154f07f7b82e5c9bb77c11a0c4
|
||||
|
@ -1,5 +1,5 @@
|
||||
*** scripts/makefile.std.orig Sat Mar 7 23:12:04 1998
|
||||
--- scripts/makefile.std Sat Mar 28 16:39:42 1998
|
||||
*** scripts/makefile.std.orig Wed Apr 1 04:49:34 1998
|
||||
--- scripts/makefile.std Fri Jul 10 03:34:22 1998
|
||||
***************
|
||||
*** 5,33 ****
|
||||
# Where the zlib library and include files are located
|
||||
@ -9,7 +9,7 @@
|
||||
! ZLIBINC=../zlib
|
||||
|
||||
! CC=cc
|
||||
! CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
|
||||
! CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
|
||||
! LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||
|
||||
#RANLIB=echo
|
||||
@ -31,21 +31,26 @@
|
||||
pngtest: pngtest.o libpng.a
|
||||
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||
|
||||
--- 5,42 ----
|
||||
--- 5,47 ----
|
||||
# Where the zlib library and include files are located
|
||||
#ZLIBLIB=/usr/local/lib
|
||||
#ZLIBINC=/usr/local/include
|
||||
! #ZLIBLIB=../zlib
|
||||
! #ZLIBINC=../zlib
|
||||
|
||||
! VER=2.1
|
||||
! #CC=cc
|
||||
! #CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
|
||||
! LDFLAGS=-L. -lpng -lz -lm -static
|
||||
! CFLAGS+=-I.
|
||||
! LDFLAGS+=-L. -lpng -lz -lm -static
|
||||
|
||||
#RANLIB=echo
|
||||
RANLIB=ranlib
|
||||
|
||||
+ # read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
+ # have to change it.
|
||||
+ PNGMAJ = 2
|
||||
+ PNGMIN = 1
|
||||
+ PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
+
|
||||
# where make install puts libpng.a and png.h
|
||||
! prefix=${PREFIX}
|
||||
|
||||
@ -58,13 +63,13 @@
|
||||
! .c.so:
|
||||
! ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
||||
!
|
||||
! all: libpng.a libpng.so.${VER}
|
||||
! all: libpng.a libpng.so.${PNGVER}
|
||||
|
||||
libpng.a: $(OBJS)
|
||||
ar rc $@ $(OBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
+ libpng.so.${VER}: $(OBJS:S/o$/so/g)
|
||||
+ libpng.so.${PNGVER}: $(OBJS:S/o$/so/g)
|
||||
+ ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz -lm
|
||||
+
|
||||
pngtest: pngtest.o libpng.a
|
||||
@ -84,12 +89,12 @@
|
||||
|
||||
clean:
|
||||
rm -f *.o libpng.a pngtest pngout.png
|
||||
--- 46,56 ----
|
||||
--- 51,61 ----
|
||||
install: libpng.a
|
||||
-@mkdir $(prefix)/include
|
||||
-@mkdir $(prefix)/lib
|
||||
! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} png.h pngconf.h $(prefix)/include
|
||||
! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${VER} $(prefix)/lib
|
||||
! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${PNGVER} $(prefix)/lib
|
||||
! ranlib $(prefix)/lib/libpng.a
|
||||
! ${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
|
||||
|
Loading…
Reference in New Issue
Block a user