VirtualBox

Ignore:
Timestamp:
Feb 12, 2024 3:57:56 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161613
Message:

libpng-1.6.42: Applied and adjusted our libpng changes to 1.6.42. bugref:8515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libpng-1.6.42/scripts/makefile.freebsd

    r96425 r103316  
    11# makefile for libpng under FreeBSD
     2# Copyright (C) 2020-2022 Cosmin Truta
    23# Copyright (C) 2014 Glenn Randers-Pehrson and Andrey A. Chernov
    34# Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov
     
    78# and license in png.h
    89
    9 PREFIX?=        /usr/local
    10 SHLIB_VER?=     16
    11 
    1210LIB=            png
     11SHLIB_VER=      16
    1312SHLIB_MAJOR=    ${SHLIB_VER}
    1413SHLIB_MINOR=    0
    15 NO_PROFILE=     YES
    16 NO_OBJ=         YES
    1714
    18 # where make install puts libpng.a and png.h
    19 DESTDIR=        ${PREFIX}
    20 LIBDIR=         /lib
    21 INCS=           png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
    22 INCSDIR=        /include/libpng
    23 INCDIR=         ${INCSDIR}              # for 4.x bsd.lib.mk
    24 MAN=            libpng.3 libpngpf.3 png.5
    25 MANDIR=         /man/man
    26 SYMLINKS=       libpng/png.h ${INCSDIR}/../png.h \
    27                 libpng/pngconf.h ${INCSDIR}/../pngconf.h \
    28                 libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
    29 
    30 # where make install finds libz.a and zlib.h
    3115ZLIBLIB=        /usr/lib
    3216ZLIBINC=        /usr/include
     
    3822
    3923CPPFLAGS+=      -I. -I${ZLIBINC}
    40 CFLAGS+=        -W -Wall
     24CFLAGS+=        -Wall -Wextra -Wundef
     25LDFLAGS+=       -L. -L${ZLIBLIB}
     26
     27CLEANFILES+=    pngtest pngtest.o pngout.png
    4128
    4229# Pre-built configuration
     
    4431PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt
    4532
    46 SRCS=   png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
    47         pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
    48         pngwtran.c pngmem.c pngerror.c pngpread.c
     33SRCS=   png.c pngerror.c pngget.c pngmem.c pngpread.c \
     34        pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \
     35        pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c
    4936
    5037.c.o:
    51         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
     38        ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $<
    5239
    53 pngtest: pngtest.o libpng.a
    54         ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -L${ZLIBLIB} \
    55         -lpng ${LDADD}
     40pnglibconf.h:   ${PNGLIBCONF_H_PREBUILT}
     41        cp ${PNGLIBCONF_H_PREBUILT} $@
    5642
    57 CLEANFILES= pngtest pngtest.o pngout.png
     43pngtest:        pngtest.o libpng.a
     44        ${CC} ${LDFLAGS} -static -o pngtest pngtest.o -lpng ${LDADD}
    5845
    59 test: pngtest
     46test:   pngtest
    6047        ./pngtest
    6148
    62 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
    63         cp $(PNGLIBCONF_H_PREBUILT) $@
    64 
    65 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO
    66 writelock:
    67         chmod a-w *.[ch35] $(DOCS) scripts/*
     49install:
     50        @echo "The $@ target is no longer supported by this makefile."
     51        @false
    6852
    6953.include <bsd.lib.mk>
Note: See TracChangeset for help on using the changeset viewer.

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