mirror of
https://github.com/simh/simh.git
synced 2026-03-04 10:34:40 +00:00
makefile: Add support for building on OpenSUSE Linux
This commit is contained in:
31
makefile
31
makefile
@@ -279,6 +279,9 @@ endif
|
||||
ifneq (,$(and $(findstring Linux,$(OSTYPE)),$(call find_exe,yum)))
|
||||
PKG_MGR = YUM
|
||||
endif
|
||||
ifneq (,$(and $(findstring Linux,$(OSTYPE)),$(call find_exe,zypper)))
|
||||
PKG_MGR = ZYPPER
|
||||
endif
|
||||
ifneq (,$(and $(findstring NetBSD,$(OSTYPE)),$(call find_exe,pkgin)))
|
||||
PKG_MGR = PKGSRC
|
||||
endif
|
||||
@@ -300,15 +303,16 @@ DPKG_ZLIB = 8
|
||||
DPKG_SDL_TTF = 9
|
||||
DPKG_GMAKE = 10
|
||||
ifneq (3,${SIM_MAJOR})
|
||||
# Platform Pkg Names COMPILER PCAP VDE PCRE EDITLINE SDL PNG ZLIB SDL_TTF GMAKE
|
||||
PKGS_SRC_HOMEBREW = - - vde pcre libedit sdl2 libpng zlib sdl2_ttf make
|
||||
PKGS_SRC_MACPORTS = - - vde2 pcre libedit libsdl2 libpng zlib libsdl2_ttf gmake
|
||||
PKGS_SRC_APT = gcc libpcap-dev libvdeplug-dev libpcre3-dev libedit-dev libsdl2-dev libpng-dev - libsdl2-ttf-dev -
|
||||
PKGS_SRC_YUM = gcc libpcap-devel - pcre-devel libedit-devel SDL2-devel libpng-devel zlib-devel SDL2_ttf-devel -
|
||||
PKGS_SRC_PKGSRC = - - - pcre editline SDL2 png zlib SDL2_ttf gmake
|
||||
PKGS_SRC_PKGBSD = - - - pcre libedit sdl2 png - sdl2_ttf gmake
|
||||
PKGS_SRC_PKGADD = - - - pcre - sdl2 png - sdl2-ttf gmake
|
||||
PKGS_SRC_TERMUX = - libpcap - - - sdl2 - - - -
|
||||
# Platform Pkg Names COMPILER PCAP VDE PCRE EDITLINE SDL PNG ZLIB SDL_TTF GMAKE
|
||||
PKGS_SRC_HOMEBREW = - - vde pcre libedit sdl2 libpng zlib sdl2_ttf make
|
||||
PKGS_SRC_MACPORTS = - - vde2 pcre libedit libsdl2 libpng zlib libsdl2_ttf gmake
|
||||
PKGS_SRC_APT = gcc libpcap-dev libvdeplug-dev libpcre3-dev libedit-dev libsdl2-dev libpng-dev - libsdl2-ttf-dev -
|
||||
PKGS_SRC_YUM = gcc libpcap-devel - pcre-devel libedit-devel SDL2-devel libpng-devel zlib-devel SDL2_ttf-devel -
|
||||
PKGS_SRC_ZYPPER = gcc libpcap-devel - pcre-devel libedit-devel libSDL2-devel libpng16-devel zlib-devel libSDL2_ttf-devel make
|
||||
PKGS_SRC_PKGSRC = - - - pcre editline SDL2 png zlib SDL2_ttf gmake
|
||||
PKGS_SRC_PKGBSD = - - - pcre libedit sdl2 png - sdl2_ttf gmake
|
||||
PKGS_SRC_PKGADD = - - - pcre - sdl2 png - sdl2-ttf gmake
|
||||
PKGS_SRC_TERMUX = - libpcap - - - sdl2 - - - -
|
||||
ifneq (0,$(TESTS))
|
||||
ifneq (,${TEST_ARG})
|
||||
export TEST_ARG
|
||||
@@ -1398,6 +1402,15 @@ ifneq (,$(and $(findstring YUM,$(PKG_MGR)),$(USEFUL_PACKAGES)))
|
||||
$(error )
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(and $(findstring ZYPPER,$(PKG_MGR)),$(USEFUL_PACKAGES)))
|
||||
ANSWER = $(shell $(SHELL) -c 'read -p "[Enter Y or N, Default is Y] " answer; echo $$answer' | grep -i n)
|
||||
ifneq (n,$(ANSWER))
|
||||
$(info Enter: $$ sudo zypper install $(USEFUL_PACKAGES))
|
||||
$(info when that completes)
|
||||
$(info re-enter: $$ $(MAKE) $(MAKECMDGOALS) $(EXTRAS))
|
||||
$(error )
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(and $(findstring PKGSRC,$(PKG_MGR)),$(USEFUL_PACKAGES)))
|
||||
ifeq (,$(shell $(SHELL) -c 'read -p "[Enter Y or N, Default is Y] " answer; echo $$answer' | grep -i n))
|
||||
$(info Enter: $$ su)
|
||||
|
||||
Reference in New Issue
Block a user