~cypheon/pkgsrc-wip

pkgsrc-wip/pentagram/patches/patch-configure.ac -rw-r--r-- 2.9 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
$NetBSD$

--- configure.ac.orig	2012-08-19 04:00:51.000000000 +0200
+++ configure.ac	2013-01-04 23:33:47.000000000 +0200
@@ -96,6 +96,13 @@
 		AC_MSG_RESULT(UNIX (OpenBSD))
 		GUI_LIBS="$GUI_LIBS -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga"
 		;;
+	netbsd* )
+		AC_DEFINE(UNIX, 1, [UNIX-variant])
+		AC_DEFINE(HAVE_HOME, 1, [HOME env.var exists])
+		AC_DEFINE(NETBSD, 1, [NetBSD])
+		AC_MSG_RESULT(UNIX (NetBSD))
+		GUI_LIBS="$GUI_LIBS -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga"
+		;;
 	solaris* )
 		AC_DEFINE(UNIX, 1, [UNIX-variant])
 		AC_DEFINE(HAVE_HOME, 1, [HOME env.var exists])
@@ -220,7 +227,7 @@
 # SDL
 # ---------------------------------------------------------------------
 PENT_CHECK_SDL(:,AC_MSG_ERROR([[*** SDL version >= 1.2.0 not found!]]))
-if test x$with_macosx_static_lib_path == x -o x$HOST_SYSTEM != xMACOSX; then
+if test x$with_macosx_static_lib_path = x -o x$HOST_SYSTEM != xMACOSX; then
 		GUI_LIBS="$GUI_LIBS $SDL_LIBS"
 	fi
 
@@ -230,7 +237,7 @@
 
 AC_CHECK_HEADER(zlib.h,,AC_MSG_ERROR([*** zlib not found!]))
 AC_CHECK_LIB(z,deflate,,AC_MSG_ERROR([*** zlib not found!]))
-if test x$with_macosx_static_lib_path == x -o x$HOST_SYSTEM != xMACOSX; then
+if test x$with_macosx_static_lib_path = x -o x$HOST_SYSTEM != xMACOSX; then
 		SYS_LIBS="$SYS_LIBS -lz"
 	fi
 
@@ -239,7 +246,7 @@
 # --------
 
 PENT_CHECK_SDLTTF(:,AC_MSG_ERROR([*** SDL_ttf version >= 2.0.7 not found!]))
-if test x$with_macosx_static_lib_path == x -o x$HOST_SYSTEM != xMACOSX; then
+if test x$with_macosx_static_lib_path = x -o x$HOST_SYSTEM != xMACOSX; then
 		GUI_LIBS="$GUI_LIBS $SDLTTF_LIBS"
 	fi
 
@@ -249,7 +256,7 @@
 
 AC_CHECK_HEADER(png.h,,AC_MSG_ERROR([*** libpng not found!]))
 AC_CHECK_LIB(png,png_create_read_struct,,AC_MSG_ERROR([*** libpng not found!]))
-if test x$with_macosx_static_lib_path == x -o x$HOST_SYSTEM != xMACOSX; then
+if test x$with_macosx_static_lib_path = x -o x$HOST_SYSTEM != xMACOSX; then
 		GUI_LIBS="$GUI_LIBS -lpng"
 	fi
 
@@ -276,7 +283,7 @@
 # ---------------------------------------------------------------------
 # Black magic for static linking on OS X
 # ---------------------------------------------------------------------
-if test x$HOST_SYSTEM == xMACOSX; then
+if test x$HOST_SYSTEM = xMACOSX; then
 	AC_ARG_WITH(macosx-static-lib-path,
 		AS_HELP_STRING([--with-macosx-static-lib-path=path], [path to location of static library files (Mac OS X bundles only)]),
 		[with_macosx_static_lib_path="$withval"],
@@ -316,7 +323,7 @@
 	AS_HELP_STRING([--with-macosx-code-signature=identity], [identity for code signing (Mac OS X bundles only) @<:@default "Developer ID Application"@:>@]),
 	[with_macosx_code_signature="$withval"],
 	[with_macosx_code_signature=""])
-if test x$HOST_SYSTEM == xMACOSX; then
+if test x$HOST_SYSTEM = xMACOSX; then
 	if test x"$with_macosx_code_signature" != x; then
 		if test x"$with_macosx_code_signature" = xyes; then
 			with_macosx_code_signature="Developer ID Application"