wxGTK30: fix installation of wx-config; pkglint fixesdiff -r1.27 -r1.28 pkgsrc/x11/wxGTK30/Makefile
(adam)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.27 2018/04/29 05:39:33 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.28 2018/05/02 11:33:44 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= wxWidgets-3.0.4 | 3 | DISTNAME= wxWidgets-3.0.4 | |
4 | PKGNAME= ${DISTNAME:S/wxWidgets/wxGTK30/} | 4 | PKGNAME= ${DISTNAME:S/wxWidgets/wxGTK30/} | |
5 | CATEGORIES= x11 | 5 | CATEGORIES= x11 | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=wxWidgets/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=wxWidgets/} | |
7 | GITHUB_PROJECT= wxWidgets | 7 | GITHUB_PROJECT= wxWidgets | |
8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | 8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | |
9 | EXTRACT_SUFX= .tar.bz2 | 9 | EXTRACT_SUFX= .tar.bz2 | |
10 | 10 | |||
11 | MAINTAINER= dbj@NetBSD.org | 11 | MAINTAINER= dbj@NetBSD.org | |
12 | HOMEPAGE= http://www.wxwidgets.org/ | 12 | HOMEPAGE= http://www.wxwidgets.org/ | |
13 | COMMENT= Cross-platform wxWidgets GUI library | 13 | COMMENT= Cross-platform wxWidgets GUI library | |
14 | # LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows | 14 | # LGPLv2 with additional permission; http://opensource.org/licenses/wxwindows | |
@@ -40,27 +40,27 @@ INSTALLATION_DIRS+= ${DOCDIR} | @@ -40,27 +40,27 @@ INSTALLATION_DIRS+= ${DOCDIR} | |||
40 | INSTALLATION_DIRS+= bin | 40 | INSTALLATION_DIRS+= bin | |
41 | 41 | |||
42 | REPLACE_SH= wx-config.in wx-config-inplace.in | 42 | REPLACE_SH= wx-config.in wx-config-inplace.in | |
43 | 43 | |||
44 | SUBST_CLASSES+= fix-paths | 44 | SUBST_CLASSES+= fix-paths | |
45 | SUBST_STAGE.fix-paths= pre-configure | 45 | SUBST_STAGE.fix-paths= pre-configure | |
46 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | 46 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | |
47 | SUBST_FILES.fix-paths= configure | 47 | SUBST_FILES.fix-paths= configure | |
48 | SUBST_SED.fix-paths= -e 's,/usr/pkg/include,${PREFIX}/include,g' | 48 | SUBST_SED.fix-paths= -e 's,/usr/pkg/include,${PREFIX}/include,g' | |
49 | SUBST_SED.fix-paths+= -e 's,@PREFIX@,${PREFIX},g' | 49 | SUBST_SED.fix-paths+= -e 's,@PREFIX@,${PREFIX},g' | |
50 | 50 | |||
51 | .include "../../mk/bsd.prefs.mk" | 51 | .include "../../mk/bsd.prefs.mk" | |
52 | 52 | |||
53 | PLIST_SRC+= ${PLIST_SRC_DFLT} | 53 | PLIST_SRC+= ${PLIST_SRC_DFLT} | |
54 | .if ${OPSYS} == "Darwin" | 54 | .if ${OPSYS} == "Darwin" | |
55 | CONFIGURE_ARGS+= --with-osx_cocoa | 55 | CONFIGURE_ARGS+= --with-osx_cocoa | |
56 | CONFIGURE_ARGS+= --without-macosx-sdk | 56 | CONFIGURE_ARGS+= --without-macosx-sdk | |
57 | CONFIGURE_ARGS+= --without-macosx-version-min | 57 | CONFIGURE_ARGS+= --without-macosx-version-min | |
58 | CPPFLAGS+= -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1 | 58 | CPPFLAGS+= -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1 | |
59 | .else | 59 | .else | |
60 | PLIST_SRC+= PLIST.gtk3 | 60 | PLIST_SRC+= PLIST.gtk3 | |
61 | CONFIGURE_ARGS+= --with-gtk=3 | 61 | CONFIGURE_ARGS+= --with-gtk=3 | |
62 | .endif | 62 | .endif | |
63 | 63 | |||
64 | CONFIGURE_ARGS.SunOS+= --disable-xlocale | 64 | CONFIGURE_ARGS.SunOS+= --disable-xlocale | |
65 | 65 | |||
66 | post-configure: | 66 | post-configure: |
@@ -1,13 +1,14 @@ | @@ -1,13 +1,14 @@ | |||
1 | $NetBSD: distinfo,v 1.12 2018/04/30 06:06:43 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.13 2018/05/02 11:33:44 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (wxWidgets-3.0.4.tar.bz2) = 246561a73ec5b9a5a7aaaaed46b64515dc9039ab | 3 | SHA1 (wxWidgets-3.0.4.tar.bz2) = 246561a73ec5b9a5a7aaaaed46b64515dc9039ab | |
4 | RMD160 (wxWidgets-3.0.4.tar.bz2) = 179bcd489aec0a56a7a2890be68ee718b87a1c7a | 4 | RMD160 (wxWidgets-3.0.4.tar.bz2) = 179bcd489aec0a56a7a2890be68ee718b87a1c7a | |
5 | SHA512 (wxWidgets-3.0.4.tar.bz2) = c9e6b35d541a99921c54cfdac260843f574f146b27f924a7a0fca5007344fa99865a96ded95e6802329ad9221b4880d62b92277a1b4c1ce71420acb672ad9158 | 5 | SHA512 (wxWidgets-3.0.4.tar.bz2) = c9e6b35d541a99921c54cfdac260843f574f146b27f924a7a0fca5007344fa99865a96ded95e6802329ad9221b4880d62b92277a1b4c1ce71420acb672ad9158 | |
6 | Size (wxWidgets-3.0.4.tar.bz2) = 20204622 bytes | 6 | Size (wxWidgets-3.0.4.tar.bz2) = 20204622 bytes | |
7 | SHA1 (patch-build_aclocal_bakefile.m4) = 7d3d6fb1e6a72e370dc6147010fa5bf2c46f1206 | 7 | SHA1 (patch-Makefile.in) = 5c47e2e206dc3769d378cceca6838a66ca1f29e9 | |
8 | SHA1 (patch-configure) = 897f13daa5bc8246902d7d864096d621f2e54928 | 8 | SHA1 (patch-build_aclocal_bakefile.m4) = 32cfb1b1227e97884800d27fc5fb813402059808 | |
9 | SHA1 (patch-configure.in) = e49b9a83040201f01c22b3e1cbc4b331985f4e99 | 9 | SHA1 (patch-configure) = 1317c8ee9e9946cbd3fe64cf020011e9da13e2e5 | |
10 | SHA1 (patch-src_tiff_configure) = e1c002f5b7d0bf2c0bec399dbb62d0146c14ec20 | 10 | SHA1 (patch-configure.in) = 084e6966554efbe83c1f18f031e44e598c8ee23c | |
11 | SHA1 (patch-src_tiff_configure.ac) = 0d51a7c251f897aa00e58c3a7ec5f348b50d1821 | 11 | SHA1 (patch-src_tiff_configure) = 4bdb7b96231b4db0da3a0a1f7d8350ad4222080e | |
12 | SHA1 (patch-src_tiff_configure.ac) = a1c53c4146056b0c77e55b24ad5b890b24ecf0dc | |||
12 | SHA1 (patch-src_unix_fswatcher__kqueue.cpp) = 49e142dbdd5c8b8f449ab19b4adbe403d515ab95 | 13 | SHA1 (patch-src_unix_fswatcher__kqueue.cpp) = 49e142dbdd5c8b8f449ab19b4adbe403d515ab95 | |
13 | SHA1 (patch-src_unix_threadpsx.cpp) = 3ae587d56c5ea1722ff29d80ff25e894dbc16313 | 14 | SHA1 (patch-src_unix_threadpsx.cpp) = 9b77a211434184f56d0e1b342120a05acfe56fb2 |
$NetBSD: patch-Makefile.in,v 1.3 2018/05/02 11:33:44 adam Exp $
Install wx-config as a script, not program.
--- Makefile.in.orig 2018-05-02 11:03:21.000000000 +0000
+++ Makefile.in
@@ -27,6 +27,7 @@ STRIP = @STRIP@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DIR = @INSTALL_DIR@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
ICC_PCH_USE_SWITCH = @ICC_PCH_USE_SWITCH@
BK_DEPS = @BK_DEPS@
BK_MAKE_PCH = @BK_MAKE_PCH@
@@ -16181,7 +16182,7 @@ samples:
install-wxconfig:
$(INSTALL_DIR) $(DESTDIR)$(bindir)
$(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/config
- $(INSTALL_PROGRAM) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(libdir)/wx/config
+ $(INSTALL_SCRIPT) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(libdir)/wx/config
(cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) $(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config || cp -p $(DESTDIR)$(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)
locale_install:
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-build_aclocal_bakefile.m4,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-build_aclocal_bakefile.m4,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | Fix shell script portability | 3 | Fix shell script portability | |
3 | 4 | |||
4 | --- build/aclocal/bakefile.m4.orig 2014-06-14 21:48:48.000000000 +0000 | 5 | --- build/aclocal/bakefile.m4.orig 2014-06-14 21:48:48.000000000 +0000 | |
5 | +++ build/aclocal/bakefile.m4 | 6 | +++ build/aclocal/bakefile.m4 | |
6 | @@ -371,7 +371,7 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD], | 7 | @@ -371,7 +371,7 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD], | |
7 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | 8 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
8 | fi | 9 | fi | |
9 | 10 | |||
10 | - if test "x$GCC" == "xyes"; then | 11 | - if test "x$GCC" == "xyes"; then | |
11 | + if test "x$GCC" = "xyes"; then | 12 | + if test "x$GCC" = "xyes"; then | |
12 | PIC_FLAG="-dynamic -fPIC" | 13 | PIC_FLAG="-dynamic -fPIC" | |
13 | fi | 14 | fi | |
14 | if test "x$XLCC" = "xyes"; then | 15 | if test "x$XLCC" = "xyes"; then |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | Fix shell script portability | 3 | Fix shell script portability | |
3 | Add dragonfly support | 4 | Add dragonfly support | |
4 | tweak SEARCH_LIB | 5 | tweak SEARCH_LIB | |
5 | 6 | |||
6 | --- configure.orig 2014-06-14 21:48:48.000000000 +0000 | 7 | --- configure.orig 2014-06-14 21:48:48.000000000 +0000 | |
7 | +++ configure | 8 | +++ configure | |
8 | @@ -3947,7 +3947,7 @@ case "${host}" in | 9 | @@ -3947,7 +3947,7 @@ case "${host}" in | |
9 | 10 | |||
10 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | 11 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
11 | ;; | 12 | ;; | |
12 | - *-*-freebsd*) | 13 | - *-*-freebsd*) | |
13 | + *-*-freebsd* | *-*-dragonfly*) | 14 | + *-*-freebsd* | *-*-dragonfly*) | |
14 | USE_BSD=1 | 15 | USE_BSD=1 |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-configure.in,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-configure.in,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | Fix shell script portability | 3 | Fix shell script portability | |
3 | Add dragonfly support | 4 | Add dragonfly support | |
4 | tweak SEARCH_LIB | 5 | tweak SEARCH_LIB | |
5 | 6 | |||
6 | --- configure.in.orig 2014-06-14 21:48:48.000000000 +0000 | 7 | --- configure.in.orig 2014-06-14 21:48:48.000000000 +0000 | |
7 | +++ configure.in | 8 | +++ configure.in | |
8 | @@ -203,7 +203,7 @@ case "${host}" in | 9 | @@ -203,7 +203,7 @@ case "${host}" in | |
9 | AC_DEFINE(__BSD__) | 10 | AC_DEFINE(__BSD__) | |
10 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | 11 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
11 | ;; | 12 | ;; | |
12 | - *-*-freebsd*) | 13 | - *-*-freebsd*) | |
13 | + *-*-freebsd* | *-*-dragonfly*) | 14 | + *-*-freebsd* | *-*-dragonfly*) | |
14 | USE_BSD=1 | 15 | USE_BSD=1 |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-src_tiff_configure,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-src_tiff_configure,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | Fix shell script portability | 3 | Fix shell script portability | |
3 | 4 | |||
4 | --- src/tiff/configure.orig 2014-06-14 21:48:48.000000000 +0000 | 5 | --- src/tiff/configure.orig 2014-06-14 21:48:48.000000000 +0000 | |
5 | +++ src/tiff/configure | 6 | +++ src/tiff/configure | |
6 | @@ -18145,7 +18145,7 @@ if test "${with_jpeg12_lib+set}" = set; | 7 | @@ -18145,7 +18145,7 @@ if test "${with_jpeg12_lib+set}" = set; | |
7 | fi | 8 | fi | |
8 | 9 | |||
9 | 10 | |||
10 | -if test "x$enable_jpeg12" == "xyes" ; then | 11 | -if test "x$enable_jpeg12" == "xyes" ; then | |
11 | +if test "x$enable_jpeg12" = "xyes" ; then | 12 | +if test "x$enable_jpeg12" = "xyes" ; then | |
12 | 13 | |||
13 | if test "x$with_jpeg12_lib" != "x" ; then | 14 | if test "x$with_jpeg12_lib" != "x" ; then | |
14 | LIBS="$with_jpeg12_lib $LIBS" | 15 | LIBS="$with_jpeg12_lib $LIBS" |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-src_tiff_configure.ac,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-src_tiff_configure.ac,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | Fix shell script portability | 3 | Fix shell script portability | |
3 | 4 | |||
4 | --- src/tiff/configure.ac.orig 2014-06-14 21:48:48.000000000 +0000 | 5 | --- src/tiff/configure.ac.orig 2014-06-14 21:48:48.000000000 +0000 | |
5 | +++ src/tiff/configure.ac | 6 | +++ src/tiff/configure.ac | |
6 | @@ -772,7 +772,7 @@ AC_ARG_WITH(jpeg12-lib, | 7 | @@ -772,7 +772,7 @@ AC_ARG_WITH(jpeg12-lib, | |
7 | AS_HELP_STRING([--with-jpeg12-lib=LIBRARY], | 8 | AS_HELP_STRING([--with-jpeg12-lib=LIBRARY], | |
8 | [path to libjpeg 12bit library]),,) | 9 | [path to libjpeg 12bit library]),,) | |
9 | 10 | |||
10 | -if test "x$enable_jpeg12" == "xyes" ; then | 11 | -if test "x$enable_jpeg12" == "xyes" ; then | |
11 | +if test "x$enable_jpeg12" = "xyes" ; then | 12 | +if test "x$enable_jpeg12" = "xyes" ; then | |
12 | 13 | |||
13 | if test "x$with_jpeg12_lib" != "x" ; then | 14 | if test "x$with_jpeg12_lib" != "x" ; then | |
14 | LIBS="$with_jpeg12_lib $LIBS" | 15 | LIBS="$with_jpeg12_lib $LIBS" |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-src_unix_threadpsx.cpp,v 1.1 2014/07/21 06:53:24 dbj Exp $ | 1 | $NetBSD: patch-src_unix_threadpsx.cpp,v 1.2 2018/05/02 11:33:44 adam Exp $ | |
2 | ||||
2 | tweak use of thread priority functions | 3 | tweak use of thread priority functions | |
3 | 4 | |||
4 | --- src/unix/threadpsx.cpp.orig 2014-06-14 21:48:48.000000000 +0000 | 5 | --- src/unix/threadpsx.cpp.orig 2014-06-14 21:48:48.000000000 +0000 | |
5 | +++ src/unix/threadpsx.cpp | 6 | +++ src/unix/threadpsx.cpp | |
6 | @@ -69,6 +69,13 @@ | 7 | @@ -69,6 +69,13 @@ | |
7 | #define THR_ID_CAST(id) (reinterpret_cast<void*>(id)) | 8 | #define THR_ID_CAST(id) (reinterpret_cast<void*>(id)) | |
8 | #define THR_ID(thr) THR_ID_CAST((thr)->GetId()) | 9 | #define THR_ID(thr) THR_ID_CAST((thr)->GetId()) | |
9 | 10 | |||
10 | +#ifdef __NetBSD__ | 11 | +#ifdef __NetBSD__ | |
11 | +#include <sys/param.h> | 12 | +#include <sys/param.h> | |
12 | +#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS) | 13 | +#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS) | |
13 | +#undef HAVE_THREAD_PRIORITY_FUNCTIONS | 14 | +#undef HAVE_THREAD_PRIORITY_FUNCTIONS | |
14 | +#endif | 15 | +#endif |