Imported from libpng-1.4.0beta4.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-05-11 09:43:09 -05:00
parent 86dc981475
commit b3870ab5f9
56 changed files with 355 additions and 1110 deletions

View File

@@ -13,25 +13,40 @@ INCSDIR=${LOCALBASE}/include/libpng
LIB= png
SHLIB_MAJOR= 3
SHLIB_MINOR= 1.4.0beta3
SHLIB_MINOR= 1.4.0beta4
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
pngwtran.c pngmem.c pngerror.c pngpread.c
INCS= png.h pngconf.h
MAN= libpng.3 libpngpf.3 png.5
CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
# something like this for mmx assembler, but it core dumps for me at the moment
# .if ${MACHINE_ARCH} == "i386"
# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
# MKLINT= no
# .else
CPPFLAGS+=-DPNG_NO_MMX_CODE
# .endif
CPPFLAGS+=-I${.CURDIR}
CLEANFILES+=pngtest.o pngtest
pngconf.h.in:
cat pngconf.h > pngconf.h.in
pngconf.h: pngconf.h.in
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
/* if you don't want to use the intel MMX code, uncomment this */
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
/* if you don't need thread safety you can uncomment this */
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
# We should be able to do something like this instead of the manual
# uncommenting, but it core dumps for me at the moment:
# .if ${MACHINE_ARCH} == "i386"
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
# MKLINT= no
# .else
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
# .endif
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
pngtest.o: pngtest.c
${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}