VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.36/scripts/makefile.openbsd@ 92273

Last change on this file since 92273 was 76030, checked in by vboxsync, 6 years ago

libpng-1.6.36: properly export to OSE, and while at it fix EOL style for shell scripts

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1# makefile for libpng
2# Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson
3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4#
5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer
7# and license in png.h
8
9PREFIX?= /usr/local
10LIBDIR= ${PREFIX}/lib
11MANDIR= ${PREFIX}/man/cat
12
13SHLIB_MAJOR= 16
14SHLIB_MINOR= 1.6.36
15
16LIB= png
17SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \
18 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
19 pngwio.c pngwrite.c pngwtran.c pngwutil.c
20
21HDRS= png.h pngconf.h pnglibconf.h
22
23CFLAGS+= -W -Wall
24CPPFLAGS+= -I${.CURDIR}
25
26NOPROFILE= Yes
27
28CLEANFILES+= pngtest.o pngtest pnglibconf.h
29
30MAN= libpng.3 libpngpf.3 png.5
31DOCS= ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO \
32 libpng-manual.txt
33
34# Pre-built configuration
35# See scripts/pnglibconf.mak for more options
36PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt
37
38.c.o:
39 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
40
41pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
42 cp $(PNGLIBCONF_H_PREBUILT) $@
43
44pngtest.o: pngtest.c
45 ${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
46
47pngtest: pngtest.o
48 ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm
49
50test: pngtest
51 cd ${.OBJDIR} && env \
52 LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest
53
54beforeinstall:
55 if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \
56 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include; \
57 fi
58 if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
59 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
60 fi
61 if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \
62 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \
63 fi
64 if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \
65 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \
66 fi
67 if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
68 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
69 fi
70 if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \
71 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \
72 fi
73
74afterinstall:
75 @rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
76 @rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
77 @rm -f ${DESTDIR}${PREFIX}/include/png.h
78 @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h
79 @rm -f ${DESTDIR}${PREFIX}/include/pnglibconf.h
80 @rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
81 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
82 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
83 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
84 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
85 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
86 -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
87
88.include <bsd.lib.mk>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette