comparison src/gnuplot.mk @ 7139:2f9d66cb522c

* src/gnuplot: Change indentation for readability.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 29 Mar 2024 12:22:59 +0100
parents 7b5dcd048534
children 3647c5384e8a
comparison
equal deleted inserted replaced
7138:de3cb80af4cc 7139:2f9d66cb522c
38 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \ 38 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
39 head -1 39 head -1
40 endef 40 endef
41 41
42 ifeq ($(MXE_SYSTEM),mingw) 42 ifeq ($(MXE_SYSTEM),mingw)
43 define $(PKG)_BUILD 43 define $(PKG)_BUILD
44 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe 44 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe
45 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=wgnuplot.exe wgnuplot.exe 45 make -C '$(1)/config/mingw' $($(PKG)_EXTRAFLAGS) CC='$(MXE_CC)' CXX='$(MXE_CXX) $($(PKG)_STDVER)' RC='$(MXE_WINDRES)' -j '$(JOBS)' TARGET=wgnuplot.exe wgnuplot.exe
46 46
47 $(INSTALL) -d '$(3)$(HOST_BINDIR)' 47 $(INSTALL) -d '$(3)$(HOST_BINDIR)'
48 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(3)$(HOST_BINDIR)' 48 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(3)$(HOST_BINDIR)'
91 ## MG: not sure what to do with these and how to integrate with DESTDIR 91 ## MG: not sure what to do with these and how to integrate with DESTDIR
92 $(INSTALL) -d '$(TOP_DIR)/gnuplot/bin' 92 $(INSTALL) -d '$(TOP_DIR)/gnuplot/bin'
93 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(TOP_DIR)/gnuplot/bin/' 93 $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(TOP_DIR)/gnuplot/bin/'
94 $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(TOP_DIR)/gnuplot/bin/' 94 $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(TOP_DIR)/gnuplot/bin/'
95 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(TOP_DIR)/gnuplot/bin/' 95 $(INSTALL) -m644 '$(1)/src/win/wgnuplot.mnu' '$(TOP_DIR)/gnuplot/bin/'
96 endef 96 endef
97 else 97 else
98 ifeq ($(MXE_SYSTEM),msvc) 98 ifeq ($(MXE_SYSTEM),msvc)
99 define $(PKG)_BUILD 99 define $(PKG)_BUILD
100 $(INSTALL) -d '$(3)$(HOST_PREFIX)' 100 $(INSTALL) -d '$(3)$(HOST_PREFIX)'
101 cd '$(1)/config/msvc' && \ 101 cd '$(1)/config/msvc' && \
102 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') && \ 102 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') && \
103 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(3)$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') install 103 env -u MAKE -u MAKEFLAGS nmake DESTDIR=$(shell (cd '$(3)$(HOST_PREFIX)' && pwd -W) | sed -e 's#/#\\\\#g') install
104 endef 104 endef
105 105
106 else 106 else
107 107
108 ## If we allow the system Qt libraries to be used, then these 108 ## If we allow the system Qt libraries to be used, then these
109 ## won't make sense. 109 ## won't make sense.
110 $(PKG)_QT_CONFIGURE_OPTIONS := \ 110 $(PKG)_QT_CONFIGURE_OPTIONS := \
111 MOC=$(MXE_MOC) \ 111 MOC=$(MXE_MOC) \
112 UIC=$(MXE_UIC) \ 112 UIC=$(MXE_UIC) \
113 RCC=$(MXE_RCC) \ 113 RCC=$(MXE_RCC) \
114 LRELEASE=$(MXE_LRELEASE) 114 LRELEASE=$(MXE_LRELEASE)
115 115
116 ifeq ($(ENABLE_QT),5) 116 ifeq ($(ENABLE_QT),5)
117 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt5/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig" 117 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt5/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig"
118 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt5 118 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt5
119 endif
120 ifeq ($(ENABLE_QT),6)
121 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt6/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig"
122 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt6
123 endif
124
125 define $(PKG)_BUILD
126 cd '$(1)' && autoreconf -fi && PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \
127 ./configure \
128 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \
129 --without-lua \
130 $($(PKG)_QT_CONFIGURE_OPTIONS) \
131 --prefix='$(HOST_PREFIX)'
132 make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
133 endef
134 endif
119 endif 135 endif
120 ifeq ($(ENABLE_QT),6)
121 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt6/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig"
122 $(PKG)_QT_CONFIGURE_OPTIONS += --with-qt=qt6
123 endif
124
125 define $(PKG)_BUILD
126 cd '$(1)' && autoreconf -fi && PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \
127 ./configure \
128 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \
129 --without-lua \
130 $($(PKG)_QT_CONFIGURE_OPTIONS) \
131 --prefix='$(HOST_PREFIX)'
132 make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
133 endef
134 endif
135 endif