Change Tcl/Tk library name matching to pkgsrc naming, to be found correctly. Resolve PR pkg/49382.diff -r1.41 -r1.42 pkgsrc/cad/xcircuit/Makefile
(obache)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.41 2014/12/15 08:36:15 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.42 2014/12/15 08:58:52 obache Exp $ | |
2 | 2 | |||
3 | DISTNAME= xcircuit-3.7.50 | 3 | DISTNAME= xcircuit-3.7.50 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= cad graphics | 5 | CATEGORIES= cad graphics | |
6 | MASTER_SITES= http://opencircuitdesign.com/xcircuit/archive/ | 6 | MASTER_SITES= http://opencircuitdesign.com/xcircuit/archive/ | |
7 | EXTRACT_SUFX= .tgz | 7 | EXTRACT_SUFX= .tgz | |
8 | 8 | |||
9 | MAINTAINER= shaun@inerd.com | 9 | MAINTAINER= shaun@inerd.com | |
10 | HOMEPAGE= http://opencircuitdesign.com/xcircuit/ | 10 | HOMEPAGE= http://opencircuitdesign.com/xcircuit/ | |
11 | COMMENT= Drawing program for X11 (especially for circuits) | 11 | COMMENT= Drawing program for X11 (especially for circuits) | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | WRKSRC= ${WRKDIR}/${DISTNAME} | 14 | WRKSRC= ${WRKDIR}/${DISTNAME} | |
15 | USE_TOOLS+= gmake gs:run | 15 | USE_TOOLS+= gmake gs:run | |
16 | GNU_CONFIGURE= yes | 16 | GNU_CONFIGURE= yes | |
17 | 17 |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.15 2013/06/11 13:31:58 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.16 2014/12/15 08:58:52 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (xcircuit-3.7.50.tgz) = f3d0d7213d42bf7db1110454f8a3f74239d338f5 | 3 | SHA1 (xcircuit-3.7.50.tgz) = f3d0d7213d42bf7db1110454f8a3f74239d338f5 | |
4 | RMD160 (xcircuit-3.7.50.tgz) = 2c416e939810a3e0fd82fa7411e89c3f12bc890e | 4 | RMD160 (xcircuit-3.7.50.tgz) = 2c416e939810a3e0fd82fa7411e89c3f12bc890e | |
5 | Size (xcircuit-3.7.50.tgz) = 1649046 bytes | 5 | Size (xcircuit-3.7.50.tgz) = 1649046 bytes | |
6 | SHA1 (patch-aa) = 914d486e9f7c8ed421fbc747d3a49b4cc210d845 | 6 | SHA1 (patch-aa) = 27b15c9105873f5ebe4b2ae7c04ed041a480d0f4 | |
7 | SHA1 (patch-ab) = fe940fa499e8a4a7b717a7c8dfe6aca21500bd5e | 7 | SHA1 (patch-ab) = a4fea15b8a432dd8db40073aa0dbaff8bc13eab6 |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | $NetBSD: patch-aa,v 1.10 2013/06/11 13:31:58 ryoon Exp $ | 1 | $NetBSD: patch-aa,v 1.11 2014/12/15 08:58:52 obache Exp $ | |
2 | ||||
3 | * portability fix | |||
4 | * match to pkgsrc shlib name | |||
2 | 5 | |||
3 | --- configure.in.orig 2012-08-15 11:45:19.000000000 +0000 | 6 | --- configure.in.orig 2012-08-15 11:45:19.000000000 +0000 | |
4 | +++ configure.in | 7 | +++ configure.in | |
5 | @@ -164,7 +164,7 @@ AC_ARG_WITH(opengl, | 8 | @@ -164,7 +164,7 @@ AC_ARG_WITH(opengl, | |
6 | dnl Graphics double-buffering? Enabled by default unless OpenGL used. | 9 | dnl Graphics double-buffering? Enabled by default unless OpenGL used. | |
7 | AC_ARG_ENABLE(double-buffer, | 10 | AC_ARG_ENABLE(double-buffer, | |
8 | [ --disable-double-buffer disable graphics double-buffering], , [ | 11 | [ --disable-double-buffer disable graphics double-buffering], , [ | |
9 | - if test "x$xc_with_GL" == "x" ; then | 12 | - if test "x$xc_with_GL" == "x" ; then | |
10 | + if test "x$xc_with_GL" = "x" ; then | 13 | + if test "x$xc_with_GL" = "x" ; then | |
11 | AC_DEFINE(DOUBLEBUFFER) | 14 | AC_DEFINE(DOUBLEBUFFER) | |
12 | else | 15 | else | |
13 | AC_MSG_WARN(Double-buffering option not applicable to OpenGL version.) | 16 | AC_MSG_WARN(Double-buffering option not applicable to OpenGL version.) | |
14 | @@ -303,7 +303,7 @@ xc_with_tk_libraries="" | 17 | @@ -303,7 +303,7 @@ xc_with_tk_libraries="" | |
@@ -25,13 +28,24 @@ $NetBSD: patch-aa,v 1.10 2013/06/11 13:3 | @@ -25,13 +28,24 @@ $NetBSD: patch-aa,v 1.10 2013/06/11 13:3 | |||
25 | if test -r "${xc_with_tcl_includes}/tcl.h" ; then | 28 | if test -r "${xc_with_tcl_includes}/tcl.h" ; then | |
26 | TCL_INC_DIR=${xc_with_tcl_includes} | 29 | TCL_INC_DIR=${xc_with_tcl_includes} | |
27 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | 30 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | |
28 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | 31 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | |
29 | echo "Can't find tcl.h in \"${xc_with_tcl_includes}\"" | 32 | echo "Can't find tcl.h in \"${xc_with_tcl_includes}\"" | |
30 | echo "Reverting to non-Tcl compilation" | 33 | echo "Reverting to non-Tcl compilation" | |
31 | xc_with_tcl="" | 34 | xc_with_tcl="" | |
32 | fi | 35 | fi | |
33 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | 36 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | |
34 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | 37 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | |
35 | for dir in \ | 38 | for dir in \ | |
36 | ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ | 39 | ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ | |
37 | ${TCL_PREFIX}/include \ | 40 | ${TCL_PREFIX}/include \ | |
41 | @@ -649,8 +649,8 @@ if test "x$xc_with_tcl" != "x" ; then | |||
42 | TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" | |||
43 | ;; | |||
44 | *) | |||
45 | - TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}" | |||
46 | - TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}" | |||
47 | + TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" | |||
48 | + TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" | |||
49 | ;; | |||
50 | esac | |||
51 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-ab,v 1.11 2013/06/11 13:31:58 ryoon Exp $ | 1 | $NetBSD: patch-ab,v 1.12 2014/12/15 08:58:52 obache Exp $ | |
2 | 2 | |||
3 | --- configure.orig 2012-08-15 11:45:19.000000000 +0000 | 3 | --- configure.orig 2012-08-15 11:45:19.000000000 +0000 | |
4 | +++ configure | 4 | +++ configure | |
5 | @@ -3794,12 +3794,12 @@ static char *f (char * (*g) (char **, in | 5 | @@ -3794,12 +3794,12 @@ static char *f (char * (*g) (char **, in | |
6 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | 6 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
7 | array size at least. It's necessary to write '\x00'==0 to get something | 7 | array size at least. It's necessary to write '\x00'==0 to get something | |
8 | that's true only with -std. */ | 8 | that's true only with -std. */ | |
9 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 9 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10 | +int osf4_cc_array ['\x00' = 0 ? 1 : -1]; | 10 | +int osf4_cc_array ['\x00' = 0 ? 1 : -1]; | |
11 | 11 | |||
12 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 12 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
13 | inside strings and character constants. */ | 13 | inside strings and character constants. */ | |
14 | #define FOO(x) 'x' | 14 | #define FOO(x) 'x' | |
@@ -40,13 +40,24 @@ $NetBSD: patch-ab,v 1.11 2013/06/11 13:3 | @@ -40,13 +40,24 @@ $NetBSD: patch-ab,v 1.11 2013/06/11 13:3 | |||
40 | if test -r "${xc_with_tcl_includes}/tcl.h" ; then | 40 | if test -r "${xc_with_tcl_includes}/tcl.h" ; then | |
41 | TCL_INC_DIR=${xc_with_tcl_includes} | 41 | TCL_INC_DIR=${xc_with_tcl_includes} | |
42 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | 42 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | |
43 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | 43 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | |
44 | echo "Can't find tcl.h in \"${xc_with_tcl_includes}\"" | 44 | echo "Can't find tcl.h in \"${xc_with_tcl_includes}\"" | |
45 | echo "Reverting to non-Tcl compilation" | 45 | echo "Reverting to non-Tcl compilation" | |
46 | xc_with_tcl="" | 46 | xc_with_tcl="" | |
47 | fi | 47 | fi | |
48 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | 48 | - elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then | |
49 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | 49 | + elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then | |
50 | for dir in \ | 50 | for dir in \ | |
51 | ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ | 51 | ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ | |
52 | ${TCL_PREFIX}/include \ | 52 | ${TCL_PREFIX}/include \ | |
53 | @@ -6689,8 +6689,8 @@ if test "x$xc_with_tcl" != "x" ; then | |||
54 | TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" | |||
55 | ;; | |||
56 | *) | |||
57 | - TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}" | |||
58 | - TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}" | |||
59 | + TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" | |||
60 | + TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" | |||
61 | ;; | |||
62 | esac | |||
63 |