ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

libpng.mk (1197B)


      1 # TODO: build and package binaries? png2pnm, pngfix, libpng-config etc?
      2 
      3 LIB = libpng.a
      4 DEPS = zlib
      5 BIN = \
      6 	contrib/pngminus/pnm2png \
      7 	contrib/pngminus/png2pnm
      8 INSTALL_BIN = \
      9 	contrib/pngminus/pnm2png \
     10 	contrib/pngminus/png2pnm
     11 INSTALL_MAN3 = `{ls -1 *.3}
     12 INSTALL_MAN5 = `{ls -1 *.5}
     13 INSTALL_LIB = libpng.a
     14 INSTALL_OTHER1 = png.h pngconf.h pnglibconf.h
     15 INSTALL_OTHER1_DIR = /include
     16 
     17 libpng_a_OBJ = \
     18 	png.o \
     19 	pngerror.o \
     20 	pngget.o \
     21 	pngmem.o \
     22 	pngpread.o \
     23 	pngread.o \
     24 	pngrio.o \
     25 	pngrtran.o \
     26 	pngrutil.o \
     27    	pngset.o \
     28 	pngtrans.o \
     29 	pngwio.o \
     30 	pngwrite.o \
     31 	pngwtran.o \
     32 	pngwutil.o
     33 
     34 LOCAL_CFLAGS = -I.
     35 LOCAL_LDFLAGS =
     36 LOCAL_BIN_LDFLAGS =
     37 
     38 contrib_pngminus_pnm2png_LDFLAGS = -L. -lpng
     39 contrib_pngminus_pnm2png_OBJ = \
     40    contrib/pngminus/pnm2png.o
     41 
     42 contrib_pngminus_png2pnm_LDFLAGS = -L. -lpng
     43 contrib_pngminus_png2pnm_OBJ = \
     44 	contrib/pngminus/png2pnm.o
     45 
     46 NPROC = $nprocs
     47 
     48 <$mkbuild/mk.default
     49 
     50 contrib/pngminus/pnm2png: libpng.a
     51 
     52 contrib/pngminus/png2pnm: libpng.a
     53 
     54 $libpng_a_OBJ:V: pnglibconf.h config.h libpngsymlink
     55 
     56 # makes sure -lpng16 works.
     57 libpngsymlink:
     58 	ln -sf libpng.a libpng16.a
     59 
     60 pnglibconf.h:V:
     61 	cp ../pnglibconf.h pnglibconf.h
     62 
     63 config.h:V:
     64 	cp ../config.h config.h