src/3rdparty/libpng/scripts/makefile.freebsd
changeset 30 5dc02b23752f
parent 0 1918ee327afb
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
     1 # makefile for libpng under FreeBSD
     1 # makefile for libpng under FreeBSD
     2 # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov
     2 # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov
     3 
     3 #
     4 # This code is released under the libpng license.
     4 # This code is released under the libpng license.
     5 # For conditions of distribution and use, see the disclaimer
     5 # For conditions of distribution and use, see the disclaimer
     6 # and license in png.h
     6 # and license in png.h
     7 
     7 
     8 PREFIX?=        /usr/local
     8 PREFIX?=        /usr/local
     9 SHLIB_VER?=     5
     9 SHLIB_VER?=     14
    10 
    10 
    11 LIB=		png
    11 LIB=		png
    12 SHLIB_MAJOR=	${SHLIB_VER}
    12 SHLIB_MAJOR=	${SHLIB_VER}
    13 SHLIB_MINOR=	0
    13 SHLIB_MINOR=	0
    14 NOPROFILE=	YES
    14 NOPROFILE=	YES
    15 NOOBJ=          YES
    15 NOOBJ=          YES
    16 
    16 
    17 # where make install puts libpng.a and png.h
    17 # where make install puts libpng.a and png.h
    18 DESTDIR=	${PREFIX}
    18 DESTDIR=	${PREFIX}
    19 LIBDIR=		/lib
    19 LIBDIR=		/lib
    20 INCS=		png.h pngconf.h
    20 INCS=		png.h pngconf.h pngpriv.h
    21 INCSDIR=	/include/libpng
    21 INCSDIR=	/include/libpng
    22 INCDIR=		${INCSDIR}		# for 4.x bsd.lib.mk
    22 INCDIR=		${INCSDIR}		# for 4.x bsd.lib.mk
    23 MAN=		libpng.3 libpngpf.3 png.5
    23 MAN=		libpng.3 libpngpf.3 png.5
    24 MANDIR=		/man/man
    24 MANDIR=		/man/man
    25 SYMLINKS=       libpng/png.h ${INCSDIR}/../png.h \
    25 SYMLINKS=       libpng/png.h ${INCSDIR}/../png.h \
    26 		libpng/pngconf.h ${INCSDIR}/../pngconf.h
    26 		libpng/pngconf.h ${INCSDIR}/../pngconf.h
    27 LDADD+=         -lm -lz
    27 LDADD+=         -lm -lz
    28 DPADD+=         ${LIBM} ${LIBZ}
    28 DPADD+=         ${LIBM} ${LIBZ}
    29 
    29 
    30 CFLAGS+= -I.
    30 CFLAGS+= -I.
    31 .if (${MACHINE_ARCH} != "i386")
       
    32 CFLAGS+= -DPNG_NO_MMX_CODE
       
    33 .endif
       
    34 
    31 
    35 SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
    32 SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
    36 	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
    33 	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
    37 	pngwtran.c pngmem.c pngerror.c pngpread.c
    34 	pngwtran.c pngmem.c pngerror.c pngpread.c
    38 
    35