FreeBSD Bugzilla – Attachment 239338 Details for
Bug 268819
devel/libspice-server: Fix configure.ac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for devel/libspice-server
libspice-server.diff (text/plain), 2.56 KB, created by
Hiroki Sato
on 2023-01-07 19:42:29 UTC
(
hide
)
Description:
Patch for devel/libspice-server
Filename:
MIME Type:
Creator:
Hiroki Sato
Created:
2023-01-07 19:42:29 UTC
Size:
2.56 KB
patch
obsolete
>diff --git a/devel/libspice-server/Makefile b/devel/libspice-server/Makefile >index 667f4e4bccfb..4a00d0742467 100644 >--- a/devel/libspice-server/Makefile >+++ b/devel/libspice-server/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= libspice-server > DISTVERSION= 0.15.0 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= https://www.spice-space.org/download/releases/spice-server/ > DISTNAME= spice-${PORTVERSION} >@@ -11,8 +12,7 @@ WWW= https://spice-space.org/ > LICENSE= GPLv2 > > LIB_DEPENDS= libopus.so:audio/opus >-BUILD_DEPENDS= autoconf-archive>=0:devel/autoconf-archive \ >- spice-protocol>=0.12.10:devel/spice-protocol >+BUILD_DEPENDS= spice-protocol>=0.12.10:devel/spice-protocol > > OPTIONS_DEFINE= GSTREAMER LZ4 SASL STATISTICS > OPTIONS_DEFAULT= GSTREAMER LZ4 SASL >@@ -31,7 +31,7 @@ SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 > > STATISTICS_CONFIGURE_ENABLE= statistics > >-USES= autoreconf:2.69 compiler:c++11-lang cpe gmake gnome jpeg \ >+USES= autoreconf compiler:c++11-lang cpe gmake gnome jpeg \ > libtool localbase:ldflag pkgconfig python ssl tar:bzip2 xorg > > USE_GNOME= glib20 >diff --git a/devel/libspice-server/files/patch-configure.ac b/devel/libspice-server/files/patch-configure.ac >new file mode 100644 >index 000000000000..4d1a2e049a7d >--- /dev/null >+++ b/devel/libspice-server/files/patch-configure.ac >@@ -0,0 +1,43 @@ >+--- configure.ac.orig 2021-04-17 06:49:29 UTC >++++ configure.ac >+@@ -41,6 +41,7 @@ AC_PROG_CC_C99 >+ if test x"$ac_cv_prog_cc_c99" = xno; then >+ AC_MSG_ERROR([C99 compiler is required.]) >+ fi >++AC_PROG_CPP >+ AC_PROG_INSTALL >+ AC_CANONICAL_HOST >+ LT_INIT([disable-static]) >+@@ -204,7 +205,8 @@ AS_VAR_APPEND([SPICE_REQUIRES], [" pixman-1 >= $PIXMAN >+ PKG_CHECK_MODULES(SSL, openssl >= 1.0.0) >+ AC_SUBST(SSL_CFLAGS) >+ AC_SUBST(SSL_LIBS) >+-AS_VAR_APPEND([SPICE_REQUIRES], [" openssl"]) >++dnl OpenSSL in the base system is not managed by pkgconfig >++dnl AS_VAR_APPEND([SPICE_REQUIRES], [" openssl"]) >+ >+ save_CFLAGS="$CFLAGS" >+ CFLAGS="$CFLAGS $SSL_CFLAGS" >+@@ -217,15 +219,16 @@ CFLAGS="$save_CFLAGS" >+ >+ AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, >+ AC_MSG_CHECKING([for jpeglib.h]) >+- AC_TRY_CPP( >+-[#include <stdio.h> >++ AC_PREPROC_IFELSE( >++[AC_LANG_SOURCE([[ >++#include <stdio.h> >+ #undef PACKAGE >+ #undef VERSION >+ #undef HAVE_STDLIB_H >+-#include <jpeglib.h>], >+- JPEG_LIBS='-ljpeg' >+- AC_MSG_RESULT($jpeg_ok), >+- AC_MSG_ERROR([jpeglib.h not found])), >++#include <jpeglib.h>]])], >++ [JPEG_LIBS='-ljpeg' >++ AC_MSG_RESULT($jpeg_ok)], >++ [AC_MSG_ERROR([jpeglib.h not found])]), >+ AC_MSG_ERROR([libjpeg not found])) >+ AC_SUBST(JPEG_LIBS) >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268819
: 239338