pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games/openttd



Module Name:    pkgsrc
Committed By:   tnn
Date:           Tue Aug 18 03:27:49 UTC 2020

Modified Files:
        pkgsrc/games/openttd: distinfo
        pkgsrc/games/openttd/patches: patch-config.lib

Log Message:
openttd: use pkg-config to find liblzo2


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/games/openttd/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/games/openttd/patches/patch-config.lib

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/openttd/distinfo
diff -u pkgsrc/games/openttd/distinfo:1.35 pkgsrc/games/openttd/distinfo:1.36
--- pkgsrc/games/openttd/distinfo:1.35  Wed Jun  3 16:52:39 2020
+++ pkgsrc/games/openttd/distinfo       Tue Aug 18 03:27:49 2020
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.35 2020/06/03 16:52:39 nia Exp $
+$NetBSD: distinfo,v 1.36 2020/08/18 03:27:49 tnn Exp $
 
 SHA1 (openttd-1.10.2-source.tar.xz) = a7f56648b974b3f088e44362a7fe9d53721b5ecc
 RMD160 (openttd-1.10.2-source.tar.xz) = a821312b74f7328e367fa765b59ec228d8ebfb7d
 SHA512 (openttd-1.10.2-source.tar.xz) = 03de85449a458c76c07d8a28c34f72bc95ab0652c666e5925da43746cdd4e95b0d66360b6e214d1df33f11b5346da2e3b9ca6832ac6628c7d6e5e0a791881683
 Size (openttd-1.10.2-source.tar.xz) = 6766904 bytes
-SHA1 (patch-config.lib) = 297caf33c50298a4efcbddbe3fea88e2b4f101c1
+SHA1 (patch-config.lib) = 1e8319816aba9d7bf4d0f749c0a4725d1747388a
 SHA1 (patch-src_core_alloc__func.hpp) = 17fcfe3ce984cd453f6756f4f212c8fe8ab15ed1
 SHA1 (patch-src_core_endian__type.hpp) = 23564a89fd0e2ebe97043c7d16d5831831b65f40

Index: pkgsrc/games/openttd/patches/patch-config.lib
diff -u pkgsrc/games/openttd/patches/patch-config.lib:1.2 pkgsrc/games/openttd/patches/patch-config.lib:1.3
--- pkgsrc/games/openttd/patches/patch-config.lib:1.2   Thu Apr 25 15:55:07 2019
+++ pkgsrc/games/openttd/patches/patch-config.lib       Tue Aug 18 03:27:49 2020
@@ -1,12 +1,13 @@
-$NetBSD: patch-config.lib,v 1.2 2019/04/25 15:55:07 adam Exp $
+$NetBSD: patch-config.lib,v 1.3 2020/08/18 03:27:49 tnn Exp $
 
 Compile 'strip' test with CFLAGS, so -isysroot can be passed on OSX.
 Correct library detection on NetBSD.
 On Darwin, be able to locate iconv.h inside the SDK.
+Use pkg-config to detect liblzo2 as hand-crafted method seems unreliable.
 
---- config.lib.orig    2019-04-08 19:42:35.000000000 +0000
+--- config.lib.orig    2020-06-01 21:22:01.000000000 +0000
 +++ config.lib
-@@ -2140,7 +2140,7 @@ check_strip() {
+@@ -2088,7 +2088,7 @@ check_strip() {
        elif [ "$os" = "OSX" ]; then
                # Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something
                echo "int main(int argc, char *argv[]) { }" > strip.test.c
@@ -15,7 +16,7 @@ On Darwin, be able to locate iconv.h ins
                check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test"
                rm -f strip.test.c strip.test
        else
-@@ -2676,7 +2676,7 @@ detect_library() {
+@@ -2633,7 +2633,7 @@ detect_library() {
                if [ -z "$res" ]; then
                        log 2 "  trying /opt/local/include/$4$5... no"
                fi
@@ -24,7 +25,16 @@ On Darwin, be able to locate iconv.h ins
                        eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
                        eval "res=\$$2"
                        if [ -z "$res" ]; then
-@@ -2926,6 +2926,9 @@ detect_iconv() {
+@@ -2725,7 +2725,7 @@ detect_zlib() {
+ }
+ 
+ detect_lzo2() {
+-      detect_library "$with_lzo2" "lzo2" "liblzo2.a" "lzo/" "lzo1x.h"
++      detect_pkg_config "$with_lzo2" "lzo2" "lzo2" "2.10"
+ }
+ 
+ detect_fluidsynth() {
+@@ -2885,6 +2885,9 @@ detect_iconv() {
                                break
                        fi
                done



Home | Main Index | Thread Index | Old Index