Imported from libpng-1.4.0beta11.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-08-19 13:59:24 -05:00
parent 3424ee7354
commit beb572e616
90 changed files with 2151 additions and 2040 deletions

View File

@@ -8,35 +8,23 @@ LIBDIR= ${PREFIX}/lib
MANDIR= ${PREFIX}/man/cat
SHLIB_MAJOR= 0
SHLIB_MINOR= 1.4.0beta10
SHLIB_MINOR= 1.4.0beta11
LIB= png
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
pngwio.c pngwrite.c pngwtran.c pngwutil.c
HDRS= png.h pngconf.h
HDRS= png.h pngconf.h pngpriv.h pngdefs.h
CFLAGS+= -Wall
CPPFLAGS+= -I${.CURDIR}
all: pngconf.h
all: pngconf.h pngdefs.h
pngconf.h.in: pngconf.h
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 want to use the intel assembler code, remove this */
echo "#define PNG_NO_MMX_CODE" >> pngconf.h
/* if you want to use the intel MMX code, also remove this */
echo "#define PNG_NO_ASSEMBLER_CODE" >> pngconf.h
/* if you don't need thread safety you can uncomment this */
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
pngdefs.h:
echo "/* pngdefs.h was built by makefile.openbsd */" > pngdefs.h
echo "#define PNG_NO_ASSEMBLER_CODE" >> pngdefs.h
NOPROFILE= Yes
@@ -80,6 +68,7 @@ afterinstall:
@rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
@rm -f ${DESTDIR}${PREFIX}/include/png.h
@rm -f ${DESTDIR}${PREFIX}/include/pngconf.h
@rm -f ${DESTDIR}${PREFIX}/include/pngdefs.h
@rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
-m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include/libpng