400870d2bb
-- compat symlinks have been removed.
69 lines
2.4 KiB
Plaintext
69 lines
2.4 KiB
Plaintext
$OpenBSD: patch-scripts_makefile_openbsd,v 1.2 2002/07/17 22:39:03 brad Exp $
|
|
--- scripts/makefile.openbsd.orig Wed May 22 21:35:26 2002
|
|
+++ scripts/makefile.openbsd Wed May 22 21:41:41 2002
|
|
@@ -1,13 +1,15 @@
|
|
-# makefile for libpng
|
|
+# makefile for libpng under OpenBSD
|
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
|
# For conditions of distribution and use, see copyright notice in png.h
|
|
|
|
PREFIX?= /usr/local
|
|
LIBDIR= ${PREFIX}/lib
|
|
-MANDIR= ${PREFIX}/man/cat
|
|
+MANDIR= ${PREFIX}/man/cat
|
|
+INCDIR= ${PREFIX}/include/libpng
|
|
+DOCDIR= ${PREFIX}/share/doc/png
|
|
|
|
-SHLIB_MAJOR= 0
|
|
-SHLIB_MINOR= 1.2.4
|
|
+SHLIB_MAJOR= 3
|
|
+SHLIB_MINOR= 1
|
|
|
|
LIB= png
|
|
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
|
@@ -18,6 +20,7 @@ HDRS= png.h pngconf.h
|
|
|
|
CFLAGS+= -Wall
|
|
CPPFLAGS+= -I${.CURDIR} -DPNG_NO_ASSEMBLER_CODE -DPNG_USE_PNGGCCRD
|
|
+LDADD= -lz
|
|
|
|
NOPROFILE= Yes
|
|
|
|
@@ -37,8 +40,8 @@ test: pngtest
|
|
LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest
|
|
|
|
beforeinstall:
|
|
- if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \
|
|
- ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include/libpng; \
|
|
+ if [ ! -d ${DESTDIR}${INCDIR} ]; then \
|
|
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${INCDIR}; \
|
|
fi
|
|
if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
|
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
|
|
@@ -52,21 +55,17 @@ beforeinstall:
|
|
if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
|
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
|
|
fi
|
|
- if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \
|
|
- ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \
|
|
+ if [ ! -d ${DESTDIR}${DOCDIR} ]; then \
|
|
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${DOCDIR}; \
|
|
fi
|
|
|
|
afterinstall:
|
|
@rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
|
|
@rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
|
|
- @rm -f ${DESTDIR}${PREFIX}/include/png.h
|
|
- @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h
|
|
@rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
|
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
|
- -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include/libpng
|
|
+ -m ${NONBINMODE} ${HDRS} ${DESTDIR}${INCDIR}
|
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
|
- -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
|
|
- ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
|
- -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
|
|
+ -m ${NONBINMODE} ${DOCS} ${DESTDIR}${DOCDIR}
|
|
|
|
.include <bsd.lib.mk>
|