VirtualBox

Ignore:
Timestamp:
Feb 12, 2024 3:57:56 PM (12 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.msys

    r96425 r103316  
    11# makefile for libpng using MSYS/gcc (shared, static library)
    2 # Copyright (C) 2019 Cosmin Truta
     2# Copyright (C) 2019-2022 Cosmin Truta
    33# Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler
    44#
     
    1313# For conditions of distribution and use, see the disclaimer
    1414# and license in png.h
    15 # # # # # # # # # # # # # # # # #
    16 prefix=/usr/local
    17 exec_prefix=$(prefix)
    1815
    1916# Library name:
    20 LIBNAME = libpng16
    21 PNGMAJ = 16
    22 RELEASE = 37
     17LIBNAME=libpng16
     18PNGMAJ=16
    2319
    2420# Shared library names:
    2521LIBSO=$(LIBNAME).dll
    2622LIBSOMAJ=$(LIBNAME).dll.$(PNGMAJ)
    27 LIBSOREL=$(PNGMAJ).$(RELEASE)
    28 OLDSO=libpng.dll
    2923
    3024# Where the zlib library and include files are located.
     
    4438LN_SF=ln -sf
    4539
    46 #ARCH = -march=pentium3
    47 #ARCH = -march=i686
    48 ARCH =
    4940CPPFLAGS = # -DPNG_DEBUG=5
    50 CFLAGS = -W -Wall -O2 $(ARCH) # -g
    51 LDFLAGS =
     41CFLAGS = -O2 -Wall -Wextra -Wundef # -g
     42LDFLAGS = # -g
    5243LIBS = -lz -lm
    5344
     
    5546EXEEXT=.exe
    5647
    57 INCPATH=$(prefix)/include
    58 LIBPATH=$(exec_prefix)/lib
    59 MANPATH=$(prefix)/man
    60 BINPATH=$(exec_prefix)/bin
    61 
    62 # override DESTDIR= on the make install command line to easily support
    63 # installing into a temporary location.  Example:
    64 #
    65 #    make install DESTDIR=/tmp/build/libpng
    66 #
    67 # If you're going to install into a temporary location
    68 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
    69 # you execute make install.
    70 
    71 DESTDIR=
    72 
    73 DB=$(DESTDIR)$(BINPATH)
    74 DI=$(DESTDIR)$(INCPATH)
    75 DL=$(DESTDIR)$(LIBPATH)
    76 DM=$(DESTDIR)$(MANPATH)
    77 
    7848# Pre-built configuration
    7949# See scripts/pnglibconf.mak for more options
    8050PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
    8151
    82 # Variables
    83 OBJS =  png.o pngerror.o pngget.o pngmem.o pngpread.o \
    84         pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
    85         pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
     52# File lists
     53OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
     54       pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
     55       pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
    8656
    8757# Targets
     
    10979        $(RANLIB) $@
    11080
    111 install-headers: png.h pngconf.h pnglibconf.h
    112         -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi
    113         -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi
    114         cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME)
    115         -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h
    116         -@$(RM_F) $(DI)/libpng
    117         (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .)
     81install:
     82        @echo "The $@ target is no longer supported by this makefile."
     83        @false
    11884
    119 install-static: install-headers libpng.a
    120         -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
    121         cp libpng.a $(DL)/$(LIBNAME).a
    122         -@$(RM_F) $(DL)/libpng.a
    123         (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a)
     85install-static:
     86        @echo "The $@ target is no longer supported by this makefile."
     87        @false
    12488
    125 libpng.pc:
    126         cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \
    127         -e s!@exec_prefix@!$(exec_prefix)! \
    128         -e s!@libdir@!$(LIBPATH)! \
    129         -e s!@includedir@!$(INCPATH)! \
    130         -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc
    131 
    132 libpng-config:
    133         ( cat scripts/libpng-config-head.in; \
    134         echo prefix=\"$(prefix)\"; \
    135         echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
    136         echo L_opts=\"-L$(LIBPATH)\"; \
    137         echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \
    138         echo libs=\"-lpng16 -lz -lm\"; \
    139         cat scripts/libpng-config-body.in ) > libpng-config
    140 
    141 install-shared: install-headers $(LIBSOMAJ) libpng.pc
    142         -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
    143         -@$(RM_F) $(DL)/$(LIBSO)
    144         -@$(RM_F) $(DL)/$(OLDSO)
    145         cp $(LIBSO) $(DL)/$(LIBSOREL)
    146         (cd $(DL); \
    147         $(LN_SF) $(LIBSOREL) $(LIBSO); \
    148         $(LN_SF) $(LIBSO) $(OLDSO))
    149 
    150         -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi
    151         -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc
    152         -@$(RM_F) $(DL)/pkgconfig/libpng.pc
    153         cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
    154         (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc)
    155 
    156 install-man: libpng.3 libpngpf.3 png.5
    157         -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi
    158         -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi
    159         -@$(RM_F) $(DM)/man3/libpng.3
    160         -@$(RM_F) $(DM)/man3/libpngpf.3
    161         cp libpng.3 $(DM)/man3
    162         cp libpngpf.3 $(DM)/man3
    163         -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi
    164         -@$(RM_F) $(DM)/man5/png.5
    165         cp png.5 $(DM)/man5
    166 
    167 install-config: libpng-config
    168         -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi
    169         -@$(RM_F) $(DB)/libpng-config
    170         -@$(RM_F) $(DB)/$(LIBNAME)-config
    171         cp libpng-config $(DB)/$(LIBNAME)-config
    172         (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config)
    173 
    174 install: install-static install-shared install-man install-config
     89install-shared:
     90        @echo "The $@ target is no longer supported by this makefile."
     91        @false
    17592
    17693test: pngtest$(EXEEXT)
     
    18198
    18299clean:
    183         $(RM_F) *.o libpng.a pngtest$(EXEEXT) pngout.png pnglibconf.h $(LIBSO) \
    184         $(LIBSOMAJ) libpng-config
     100        $(RM_F) $(OBJS) libpng.a
     101        $(RM_F) $(LIBSO) $(LIBSOMAJ) pnglibconf.h
     102        $(RM_F) pngtest*.o pngtest$(EXEEXT) pngout.png
    185103
    186104png.o:      png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
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