Mercurial > mxe-octave
diff src/gnuplot.mk @ 2997:4f9b72cf7ee7
allow native builds too
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 May 2013 17:31:59 -0400 |
parents | 5329f4891fb7 |
children | 100e618349f7 |
line wrap: on
line diff
--- a/src/gnuplot.mk Sun May 26 13:32:22 2013 -0400 +++ b/src/gnuplot.mk Tue May 28 17:31:59 2013 -0400 @@ -14,6 +14,7 @@ echo $(gnuplot_VERSION) endef +ifeq ($(MXE_SYSTEM),mingw) define $(PKG)_BUILD make -C '$(1)/config/mingw' CC='$(TARGET)-gcc' CXX='$(TARGET)-g++' RC='$(TARGET)-windres' -j '$(JOBS)' TARGET=gnuplot.exe gnuplot.exe make -C '$(1)/config/mingw' CC='$(TARGET)-gcc' CXX='$(TARGET)-g++' RC='$(TARGET)-windres' -j '$(JOBS)' TARGET=wgnuplot.exe wgnuplot.exe @@ -30,3 +31,9 @@ $(INSTALL) -m644 '$(1)/config/mingw/wgnuplot.mnu' '$(PREFIX)/../gnuplot/bin/' endef +else +define $(PKG)_BUILD + cd '$(1)' && ./configure --prefix '$(PREFIX)/$(TARGET)' + make -C '$(1)' -j '$(JOBS)' install +endef +endif