Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 146784 | Differences between
and this patch

Collapse All | Expand All

(-)mzx281d/arch/Makefile.dist (-3 / +16 lines)
Lines 2-7 Link Here
2
2
3
all:
3
all:
4
	@echo "Please run config.sh before make!"
4
	@echo "Please run config.sh before make!"
5
	@echo "usage: ./config.sh <linux|win32|macos> <prefix> <sysconfdir>"
5
	@echo "usage: ./config.sh [platform] <prefix> <sysconfdir> <option..>"
6
	@echo " e.g.: ./config.sh linux /usr /etc"
6
	@echo
7
	@echo " e.g.: ./config.sh win32"
7
	@echo "Supported <platform> values:"
8
	@echo
9
	@echo "  win32          Microsoft Windows"
10
	@echo "  linux          Linux"
11
	@echo "  macos          Macintosh OS X (not Classic)"
12
	@echo "  linux-static   Linux (statically linked)"
13
	@echo
14
	@echo "Supported <option> values:"
15
	@echo "  -nox11         Disables X11, removing binary dependency."
16
	@echo "  -x11           Forces X11 support, even if 'X' isn't found."
17
	@echo
18
	@echo "e.g.: ./config.sh linux /usr /etc -nox11"
19
	@echo "e.g.: ./config.sh win32"
20
	@echo
(-)mzx281d/config.sh (-4 / +21 lines)
Lines 69-79 Link Here
69
fi
69
fi
70
70
71
if [ "$ARCH" != "win32" -a "$ARCH" != "psp" ]; then
71
if [ "$ARCH" != "win32" -a "$ARCH" != "psp" ]; then
72
	# try to run X
72
	# default, enable X support
73
	X -version >/dev/null 2>&1
73
	X11="true"
74
74
75
	# X queried successfully
75
	# attempt auto-detection
76
	if [ "$?" = "0" ]; then
76
	if [ "$4" = "" ]; then
77
		# try to run X
78
		X -version >/dev/null 2>&1
79
80
		# X queried successfully
81
		if [ "$?" != "0" ]; then
82
			X11="false"
83
		fi
84
	fi
85
86
	# don't autodetect, force off
87
	if [ "$4" = "-nox11" ]; then
88
		X11="false"
89
	fi
90
91
	# asked for X11?
92
	if [ "$X11" = "true" ]; then
77
		# enable the C++ bits
93
		# enable the C++ bits
78
		echo "#define CONFIG_X11" >> src/config.h
94
		echo "#define CONFIG_X11" >> src/config.h
79
95
Lines 88-90 Link Here
88
fi
104
fi
89
105
90
echo "All done!"
106
echo "All done!"
107
(-)mzx281d/Makefile.platform (-3 / +16 lines)
Lines 2-7 Link Here
2
2
3
all:
3
all:
4
	@echo "Please run config.sh before make!"
4
	@echo "Please run config.sh before make!"
5
	@echo "usage: ./config.sh <linux|win32|macos> <prefix> <sysconfdir>"
5
	@echo "usage: ./config.sh [platform] <prefix> <sysconfdir> <option..>"
6
	@echo " e.g.: ./config.sh linux /usr /etc"
6
	@echo
7
	@echo " e.g.: ./config.sh win32"
7
	@echo "Supported <platform> values:"
8
	@echo
9
	@echo "  win32          Microsoft Windows"
10
	@echo "  linux          Linux"
11
	@echo "  macos          Macintosh OS X (not Classic)"
12
	@echo "  linux-static   Linux (statically linked)"
13
	@echo
14
	@echo "Supported <option> values:"
15
	@echo "  -nox11         Disables X11, removing binary dependency."
16
	@echo "  -x11           Forces X11 support, even if 'X' isn't found."
17
	@echo
18
	@echo "e.g.: ./config.sh linux /usr /etc -nox11"
19
	@echo "e.g.: ./config.sh win32"
20
	@echo

Return to bug 146784