[Midnightbsd-cvs] mports: x11/libSM: update to 1.1.0

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 15 16:33:06 EDT 2009


Log Message:
-----------
update to 1.1.0

Modified Files:
--------------
    mports/x11/libSM:
        Makefile (r1.3 -> r1.4)
        distinfo (r1.1 -> r1.2)

Added Files:
-----------
    mports/x11/libSM/files:
        patch-Makefile.am (r1.1)
        patch-configure.ac (r1.1)
        patch-src_Makefile.am (r1.1)
        patch-src_sm_genid.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/x11/libSM/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -L x11/libSM/Makefile -L x11/libSM/Makefile -u -r1.3 -r1.4
--- x11/libSM/Makefile
+++ x11/libSM/Makefile
@@ -1,20 +1,20 @@
-# New ports collection makefile for:   libSM
-# Date Created:			09 Nov, 2003
-# Whom:				Eric Anholt <anholt at FreeBSD.org>
-#
-# $FreeBSD: ports/x11/libSM/Makefile,v 1.22 2007/07/02 17:04:05 lesi Exp $
-#
+# $MidnightBSD$
 
 PORTNAME=	libSM
-PORTVERSION=	1.0.3
+PORTVERSION=	1.1.0
 PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	x11
 
-MAINTAINER=	x11 at FreeBSD.org
+MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	Session Management library for X11
 LICENSE=	x11
 
+BUILD_DEPENDS=	${LOCALBASE}/share/aclocal/xorg-macros.m4:${PORTSDIR}/devel/xorg-macros
+
+USE_AUTOTOOLS=	aclocal:110 autoheader:262 automake:110 autoconf:262 libtool:15
+ACLOCAL_ARGS=	-I . -I ${LOCALBASE}/share/aclocal
+AUTOMAKE_ARGS=	--add-missing
 XORG_CAT=	lib
 USE_XORG=	ice xproto:both xtrans
 
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/x11/libSM/distinfo,v
retrieving revision 1.1
retrieving revision 1.2
diff -L x11/libSM/distinfo -L x11/libSM/distinfo -u -r1.1 -r1.2
--- x11/libSM/distinfo
+++ x11/libSM/distinfo
@@ -1,3 +1,3 @@
-MD5 (xorg/lib/libSM-1.0.3.tar.bz2) = 184cbf502b3cd5d7ba5f9d1290a99606
-SHA256 (xorg/lib/libSM-1.0.3.tar.bz2) = 57f42d3557effe452cd348362977ff90fa61009885c23b3aca8cb0219b5dec04
-SIZE (xorg/lib/libSM-1.0.3.tar.bz2) = 223906
+MD5 (xorg/lib/libSM-1.1.0.tar.bz2) = 05a04c2b6382fb0054f6c70494e22733
+SHA256 (xorg/lib/libSM-1.1.0.tar.bz2) = 7536ac382e1ff82014d3a0defba0c61b3a30984f4e5bc7707960d6debcb92a82
+SIZE (xorg/lib/libSM-1.1.0.tar.bz2) = 252599
--- /dev/null
+++ x11/libSM/files/patch-configure.ac
@@ -0,0 +1,18 @@
+--- configure.ac.orig	2008-07-02 21:58:05.000000000 +0400
++++ configure.ac	2009-02-23 18:50:18.000000000 +0300
+@@ -35,10 +35,13 @@
+ # Needed to check for TCP & IPv6 support and set flags appropriately
+ XTRANS_CONNECTION_FLAGS
+ 
++AC_ARG_WITH(stduuid, AC_HELP_STRING([--with-stduuid], [Build with DCE 1.1 uuid support for client IDs]))
++AM_CONDITIONAL(WITH_STDUUID, test x"$with_stduuid" != "xno")
++
+ AC_ARG_WITH(libuuid, AC_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs]))
+-AM_CONDITIONAL(WITH_LIBUUID, test x"$with_libuuid" != xno)
++AM_CONDITIONAL(WITH_LIBUUID, test x"$with_libuuid" = "xyes" -a x"$with_stduuid" = "xno")
+ 
+-if test x"$with_libuuid" != xno; then
++if test x"$with_libuuid" = "xyes" -a x"$with_stduuid" = "xno"; then
+ 	PKG_CHECK_MODULES(LIBUUID, uuid)
+ fi
+ 
--- /dev/null
+++ x11/libSM/files/patch-src_Makefile.am
@@ -0,0 +1,13 @@
+--- src/Makefile.am.orig	2008-06-24 21:09:29.000000000 +0400
++++ src/Makefile.am	2009-02-23 18:48:20.000000000 +0300
+@@ -2,6 +2,10 @@
+ 
+ AM_CFLAGS= -I${top_srcdir}/include $(SM_CFLAGS) $(XTRANS_CFLAGS)
+ 
++if WITH_STDUUID
++AM_CFLAGS += -DHAVE_STDUUID
++endif
++
+ if WITH_LIBUUID
+ AM_CFLAGS += $(LIBUUID_CFLAGS) -DHAVE_LIBUUID
+ endif
--- /dev/null
+++ x11/libSM/files/patch-src_sm_genid.c
@@ -0,0 +1,43 @@
+--- src/sm_genid.c.orig	2008-06-24 21:11:27.000000000 +0400
++++ src/sm_genid.c	2009-02-23 18:51:22.000000000 +0300
+@@ -76,7 +76,9 @@
+ #define TCPCONN
+ #endif
+ 
+-#if defined(HAVE_LIBUUID)
++#if defined(HAVE_STDUUID)
++#include <uuid.h>
++#elif defined(HAVE_LIBUUID)
+ #include <uuid/uuid.h>
+ #endif
+ 
+@@ -85,7 +87,28 @@
+ SmsGenerateClientID (smsConn)
+     SmsConn smsConn;
+ {
+-#if defined(HAVE_LIBUUID)
++#if defined(HAVE_STDUUID)
++    char *id;
++    char *str;
++    uuid_t uuid;
++    uint32_t status;
++
++    uuid_create(&uuid, &status);
++    if (status != uuid_s_ok)
++	return NULL;
++
++    uuid_to_string(&uuid, &str, &status);
++    if (status != uuid_s_ok)
++	return NULL;
++
++    if ((id = malloc (strlen (str) + 2)) != NULL) {
++	id[0] = '2';
++	strcpy(&id[1], str);
++    }
++    free(str);
++
++    return id;
++#elif defined(HAVE_LIBUUID)
+     char *id;
+     char temp[256];
+     uuid_t uuid;
--- /dev/null
+++ x11/libSM/files/patch-Makefile.am
@@ -0,0 +1,10 @@
+--- ./Makefile.am.orig	2009-02-23 19:42:34.000000000 +0300
++++ ./Makefile.am	2009-02-23 19:43:19.000000000 +0300
+@@ -1,6 +1,6 @@
+ SUBDIRS=src
+ 
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = sm.pc
+ 
+ EXTRA_DIST=sm.pc.in


More information about the Midnightbsd-cvs mailing list