pkgsrc patches for www/seamonkey

Francois Tigeot ftigeot at wolfpond.org
Wed Jul 7 05:06:40 PDT 2010


Hi,

The attached patches fix the build problems of www/seamonkey.

The resulting binary works fine on DragonFly/i386

I'll send them to the maintainer (tnn@) as soon as I have build a
64-bit binary.

-- 
Francois Tigeot
--- directory/c-sdk/ldap/libraries/libldap/Makefile.in.orig	2008-12-24 10:39:55 +0100
+++ directory/c-sdk/ldap/libraries/libldap/Makefile.in	2010-07-05 20:25:40 +0200
@@ -262,6 +262,10 @@
 EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME) -pthread
 endif
 
+ifeq ($(OS_ARCH), DragonFly)
+EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME)
+endif
+
 ifeq ($(HAVE_SASL), 1)
 EXTRA_LIBS += $(SASL_LINK)
 endif
--- config/static-config.mk.orig	2010-05-04 21:14:54 +0200
+++ config/static-config.mk	2010-07-06 11:07:04 +0200
@@ -104,6 +104,10 @@
 STATIC_EXTRA_LIBS += $(MOZ_ALSA_LIBS)
 endif
 
+ifeq ($(OS_ARCH),DragonFly)
+STATIC_EXTRA_LIBS += -lcompat
+endif
+
 # Component Makefile always brings in this.
 # STATIC_EXTRA_LIBS	+= $(TK_LIBS)
 
--- directory/c-sdk/configure.in.orig	2009-10-06 23:43:08 +0200
+++ directory/c-sdk/configure.in	2010-07-07 11:14:02 +0200
@@ -1233,6 +1233,16 @@
     _DEBUG_FLAGS=
     ;;
 
+*-dragonfly*)
+    if test -z "$USE_NSPR_THREADS"; then
+        USE_PTHREADS=1
+    fi
+    AC_DEFINE(XP_UNIX)
+    AC_DEFINE(DRAGONFLY)
+    DSO_CFLAGS=-fPIC
+    DSO_LDOPTS='-shared'
+	;;
+
 *-freebsd*)
     if test -z "$USE_NSPR_THREADS"; then
         USE_PTHREADS=1
--- ./directory/c-sdk/ldap/include/portable.h.orig	2006-10-03 22:43:40 +0200
+++ ./directory/c-sdk/ldap/include/portable.h	2010-07-05 23:15:43 +0200
@@ -295,7 +297,7 @@
 #elif defined(HPUX10)
 #define GETHOSTBYNAME_BUF_T struct hostent_data
 #define GETHOSTBYNAME( n, r, b, l, e )	nsldapi_compat_gethostbyname_r( n, r, (char *)&b, l, e )
-#elif defined(LINUX)
+#elif defined(LINUX) || defined(DRAGONFLY)
 typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE];
 #define GETHOSTBYNAME_BUF_T GETHOSTBYNAME_buf_t
 #define GETHOSTBYNAME( n, r, b, l, rp, e )  gethostbyname_r( n, r, b, l, rp, e )
@@ -317,7 +319,7 @@
 	|| defined(OSF1V4) || defined(AIX) || defined(UnixWare) \
         || defined(hpux) || defined(HPUX11) || defined(NETBSD) \
         || defined(IRIX6) || defined(FREEBSD) || defined(VMS) \
-        || defined(NTO) || defined(OPENBSD)
+        || defined(NTO) || defined(OPENBSD) || defined(DRAGONFLY)
 #define NSLDAPI_CTIME( c, b, l )        ctime_r( c, b )
 #elif defined( OSF1V3 )
 #define NSLDAPI_CTIME( c, b, l )	(ctime_r( c, b, l ) ? NULL : b)




More information about the Users mailing list