Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / png / mmakefile.src
blob5711b0b181b880db1b59827a1699f2ea9642cd40
1 #   $Id$
3 include $(SRCDIR)/config/aros.cfg
5 #MM workbench-libs-png : workbench-libs-z
7 FILES := png pngerror \
8         pngget pngmem pngpread pngread pngrio pngrtran pngrutil \
9         pngset pngtrans pngwio pngwrite pngwtran pngwutil
11 NOWARN_FLAGS := $(NOWARN_DEPRECATED_DECLARATIONS) $(NOWARN_IMPLICIT_FUNCTION_DECL)
12 USER_CFLAGS := $(NOWARN_FLAGS)
14 #MM- core-linklibs : linklibs-png
15 #MM- linklibs-png : workbench-libs-png-pkgconfig
17 %build_module mmake=workbench-libs-png \
18     modname=png modtype=library \
19     files="$(FILES)" linklibname="png"
21 #MM- linklibs: linklibs-png-nostdio
23 USER_CFLAGS += -DPNG_NO_STDIO -DPNG_NO_WRITE_TIME
25 %build_linklib mmake=linklibs-png-nostdio libname=png_nostdio \
26         files=$(FILES) objdir=$(OBJDIR)/no_stdio
28 #MM
29 workbench-libs-png-pkgconfig : $(AROS_LIB)/pkgconfig/libpng.pc
31 $(AROS_LIB)/pkgconfig/libpng.pc : $(SRCDIR)/$(CURDIR)/libpng.pc.in $(SRCDIR)/$(CURDIR)/mmakefile.src
32         %mkdir_q dir=$(AROS_LIB)/pkgconfig
33         @$(SED) -e 's|@exec_prefix@|$${prefix}|' \
34                -e 's|@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@|$${prefix}/include|' \
35                -e 's|-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@|-lpng|' \
36                -e 's|@libdir@|$(AROS_LIB)|' \
37                -e 's|@prefix@|/Development|' \
38                -e 's|@LIBS@||' \
39                -e 's|@PNGLIB_VERSION@|1.6.3|' \
40                -e 's| -I$${includedir}||' \
41                $< >$@
43 #MM includes-copy
44 INCLUDE_FILES := png.h pngconf.h pnglibconf.h
45 %copy_includes
47 %common