summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-08-22 15:27:03 +0000
committerjoerg <joerg@pkgsrc.org>2006-08-22 15:27:03 +0000
commit9d238c0fd0f63e41549f5c74c76524ae4837d325 (patch)
treec37c9036343368c3c59f8277383d51e4c9ca1055
parent199716bc4063117d0f39a56a9f03b5587757af55 (diff)
downloadpkgsrc-9d238c0fd0f63e41549f5c74c76524ae4837d325.tar.gz
Fix pthread linkage.
-rw-r--r--games/openttd/Makefile3
-rw-r--r--games/openttd/distinfo3
-rw-r--r--games/openttd/patches/patch-aa13
3 files changed, 17 insertions, 2 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
index e107284d328..dd04207c056 100644
--- a/games/openttd/Makefile
+++ b/games/openttd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/08/10 13:28:37 abs Exp $
+# $NetBSD: Makefile,v 1.16 2006/08/22 15:27:03 joerg Exp $
DISTNAME= openttd-0.4.8-RC2-source
PKGNAME= openttd-0.4.8rc2
@@ -43,4 +43,5 @@ do-install:
.include "../../graphics/png/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
index d80ab9db90a..3c75fb5d0fd 100644
--- a/games/openttd/distinfo
+++ b/games/openttd/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2006/08/10 13:28:37 abs Exp $
+$NetBSD: distinfo,v 1.5 2006/08/22 15:27:03 joerg Exp $
SHA1 (openttd-0.4.8-RC2-source.tar.bz2) = 26351512d98e81fb06d5964683aea8c24c9606f8
RMD160 (openttd-0.4.8-RC2-source.tar.bz2) = 59a66b05ce563a1c5d12b0f5ebe4bee818c8fe94
Size (openttd-0.4.8-RC2-source.tar.bz2) = 2211442 bytes
+SHA1 (patch-aa) = 253bed4df9d728c8945b98ba8400a6d57802404e
diff --git a/games/openttd/patches/patch-aa b/games/openttd/patches/patch-aa
new file mode 100644
index 00000000000..7662fd280a5
--- /dev/null
+++ b/games/openttd/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.4 2006/08/22 15:27:03 joerg Exp $
+
+--- Makefile.orig 2006-08-22 17:22:56.000000000 +0000
++++ Makefile
+@@ -217,7 +217,7 @@ endif
+ ifndef WIN32
+ ifndef MORPHOS
+ ifndef OSX
+- LDFLAGS+=-lpthread
++ LDFLAGS+=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+ endif
+ endif
+ endif