From owner-freebsd-ports@FreeBSD.ORG Tue Jan 9 09:58:52 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 355F716A403 for ; Tue, 9 Jan 2007 09:58:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3CDF213C44B for ; Tue, 9 Jan 2007 09:58:46 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id E4B8A1CCC2; Tue, 9 Jan 2007 10:33:36 +0100 (CET) Date: Tue, 9 Jan 2007 10:33:36 +0100 From: Ed Schouten To: FreeBSD Ports Message-ID: <20070109093336.GJ46094@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+9faIjRurCDpBc7U" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Subject: Second Life: don't want to maintain it ;-) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 09:58:52 -0000 --+9faIjRurCDpBc7U Content-Type: multipart/mixed; boundary="kH8JNVvasRCCW1Oz" Content-Disposition: inline --kH8JNVvasRCCW1Oz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, Yesterday the online game Second Life got released under the GNU GPL. I took some time to port it to FreeBSD, but I cannot test/maintain it, because I don't have OpenGL acceleration on my FreeBSD box and my machine is quite cripple anyway (RELENG_6 -> CURRENT library horror). Here's a patch if someone wants to maintain a port for it. Please notice that Second Life depends on some ports that aren't in our ports tree: openjpeg and xmlrpc-epi. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --kH8JNVvasRCCW1Oz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-secondlife Content-Transfer-Encoding: quoted-printable --- linden/indra/SConstruct Sun Jan 7 23:50:12 2007 +++ linden/indra/SConstruct Tue Jan 9 09:10:47 2007 @@ -24,6 +24,8 @@ if platform =3D=3D 'linux2': platform =3D 'linux' =20 +platform =3D 'linux' + ###################### # GET VERSION # ###################### @@ -104,7 +106,7 @@ try: build_dir_prefix =3D os.environ['TEMP_BUILD_DIR'] except: - build_dir_prefix =3D '/tmp/' + os.environ['USER'] + build_dir_prefix =3D 'build' =09 build_dir =3D build_dir_prefix + os.getcwd() + '/' + system_str + '-' + b= uild_target + '-' + buildtype =20 @@ -181,15 +183,16 @@ flags +=3D '-DLL_LINUX=3D1 ' system_link_flags +=3D '-Wl,--version-script=3Dnewview/linux_tools/hides= ymbols.ver ' if build_target =3D=3D 'client': - flags +=3D '-DAPPID=3Dsecondlife -DLL_SDL=3D1 -DLL_X11=3D1 ' + flags +=3D '-DAPPID=3Dsecondlife -DLL_SDL=3D1 -DLL_FMOD=3D0 -DLL_X11=3D= 1 ' flags +=3D '-DLL_GTK=3D1 ' - client_external_libs +=3D [ 'gtk-x11-2.0', 'elfio' ] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/gtk-2.0' ] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/glib-2.0'] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/pango-1.0= ' ] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/atk-1.0' ] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/ELFIO' ] - include_dirs +=3D [ ' ../libraries/' + system_str + '/include/llfreetyp= e2' ] + client_external_libs +=3D [ 'ELFIO' ] + + pipe =3D os.popen('pkg-config --cflags gtk+-2.0; curl-config --cflags') + flags +=3D pipe.read().replace('\n','') + pipe.close() + pipe =3D os.popen('pkg-config --libs gtk+-2.0; curl-config --libs') + system_link_flags +=3D pipe.read().replace('\n','') + ' ' + pipe.close() else: # Mac-only flags flags +=3D '-x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -falt= ivec -fasm-blocks -g -O2 -fmessage-length=3D0 -mtune=3DG4 -Wno-deprecated-d= eclarations -Wno-invalid-offsetof -mmacosx-version-min=3D10.3 -DLL_DARWIN= =3D1 -Wmost -Wno-sign-compare -Wno-switch -fpch-preprocess -F./newview/buil= d/Deployment -fconstant-cfstrings -ffor-scope -Wno-reorder -isysroot /Devel= oper/SDKs/MacOSX10.3.9.sdk ' @@ -205,7 +208,7 @@ # ENVIRONMENT # ################ =20 - gcc_bin =3D 'g++-3.4' + gcc_bin =3D 'g++' # If you strip more aggressively than -S then the quality of crash- # logger backtraces deteriorates. strip_cmd =3D 'strip -S -o $TARGET $SOURCE' @@ -355,7 +358,7 @@ create_static_module('llxml') create_static_module('lscript') =20 - net_external_libs =3D [ 'curl', 'ssl', 'crypto', 'aprutil-1', 'apr-1' ] + net_external_libs =3D [ 'ssl', 'crypto', 'aprutil-1', 'apr-1' ] common_external_libs =3D net_external_libs + [ 'xmlrpc', 'expat', 'z' ] =20 if build_target =3D=3D 'client': @@ -381,7 +384,7 @@ ################## output_bin =3D 'newview/secondlife-' + arch + '-bin' =20 - external_libs =3D client_external_libs + common_external_libs + [ 'freet= ype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis= ', 'fmod-3.75', 'db-4.2', 'openjpeg' ] + external_libs =3D client_external_libs + common_external_libs + [ 'jpeg'= , 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'db-4.2',= 'openjpeg' ] =20 internal_libs =3D [ 'lscript', 'llwindow', 'llrender', 'llprimitive', 'llmedia', 'llinventory',=20 --- linden/indra/linux_crash_logger/linux_crash_logger.cpp Sun Jan 7 23:50= :17 2007 +++ linden/indra/linux_crash_logger/linux_crash_logger.cpp Mon Jan 8 20:41= :19 2007 @@ -458,7 +458,7 @@ if(!gCrashInPreviousExec && isCrashLog) { // Make sure the file isn't too old. - double age =3D difftime(gLaunchTime, stat_data.st_mtim.tv_sec); + double age =3D difftime(gLaunchTime, stat_data.st_mtimespec.tv_sec); =20 // llinfos << "age is " << age << llendl; =20 --- linden/indra/llcommon/llpagemem.h Sun Jan 7 23:50:13 2007 +++ linden/indra/llcommon/llpagemem.h Mon Jan 8 21:00:03 2007 @@ -26,9 +26,7 @@ #ifndef LL_LLPAGEMEM_H #define LL_LLPAGEMEM_H =20 -#if !LL_DARWIN -#include "malloc.h" -#endif +#include =20 #include "llrand.h" =20 --- linden/indra/llcommon/llpreprocessor.h Sun Jan 7 23:50:13 2007 +++ linden/indra/llcommon/llpreprocessor.h Mon Jan 8 19:09:11 2007 @@ -32,10 +32,10 @@ // Figure out endianness of platform #ifdef LL_LINUX #define __ENABLE_WSTRING -#include +#include #endif // LL_LINUX =20 -#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (__BYTE_ORDER =3D=3D __L= ITTLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__))) +#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (_BYTE_ORDER =3D=3D _LIT= TLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__))) #define LL_LITTLE_ENDIAN 1 #else #define LL_BIG_ENDIAN 1 --- linden/indra/llcommon/llsdserialize_xml.cpp Sun Jan 7 23:50:13 2007 +++ linden/indra/llcommon/llsdserialize_xml.cpp Mon Jan 8 19:13:41 2007 @@ -35,7 +35,7 @@ =20 extern "C" { -#include "expat/expat.h" +#include "expat.h" } =20 /** --- linden/indra/llcommon/llsys.cpp Sun Jan 7 23:50:13 2007 +++ linden/indra/llcommon/llsys.cpp Mon Jan 8 19:17:21 2007 @@ -30,14 +30,14 @@ #include "llsys.h" =20 #include -#include +#include #include "processor.h" =20 #if LL_WINDOWS # define WIN32_LEAN_AND_MEAN # include # include -#elif LL_DARWIN +#elif LL_DARWIN || defined(__FreeBSD__) # include # include #elif LL_LINUX @@ -356,7 +356,7 @@ =20 void LLCPUInfo::stream(std::ostream& s) const { -#if LL_WINDOWS || LL_DARWIN +#if LL_WINDOWS || LL_DARWIN || defined(__FreeBSD__) // gather machine information. char proc_buf[CPUINFO_BUFFER_SIZE]; /* Flawfinder: ignore */ CProcessor proc; @@ -395,7 +395,6 @@ =20 #if LL_LINUX #include -#include #endif =20 U32 LLMemoryInfo::getPhysicalMemory() const @@ -407,7 +406,7 @@ =20 return (U32)state.dwTotalPhys; =20 -#elif LL_DARWIN +#elif LL_DARWIN || defined(__FreeBSD__) // This might work on Linux as well. Someone check... unsigned int phys =3D 0; int mib[2] =3D { CTL_HW, HW_PHYSMEM }; @@ -440,7 +439,7 @@ s << "Avail page Kb: " << (U32)state.dwAvailPageFile/1024 << std::en= dl; s << "Total Virtual Kb: " << (U32)state.dwTotalVirtual/1024 << std::end= l; s << "Avail Virtual Kb: " << (U32)state.dwAvailVirtual/1024 << std::end= l; -#elif LL_DARWIN +#elif LL_DARWIN || defined(__FreeBSD__) U64 phys =3D 0; =20 size_t len =3D sizeof(phys);=09 --- linden/indra/llimage/llimagejpeg.h Sun Jan 7 23:50:13 2007 +++ linden/indra/llimage/llimagejpeg.h Mon Jan 8 19:28:54 2007 @@ -33,9 +33,9 @@ #include "llimage.h" =20 extern "C" { -#include "jpeglib/jinclude.h" -#include "jpeglib/jpeglib.h" -#include "jpeglib/jerror.h" +#include "jinclude.h" +#include "jpeglib.h" +#include "jerror.h" } =20 class LLImageJPEG : public LLImageFormatted --- linden/indra/llimagej2coj/llimagej2coj.cpp Sun Jan 7 23:50:13 2007 +++ linden/indra/llimagej2coj/llimagej2coj.cpp Mon Jan 8 20:59:14 2007 @@ -28,7 +28,7 @@ #include "linden_common.h" #include "llimagej2coj.h" =20 -#include "openjpeg/openjpeg.h" +#include =20 #include "lltimer.h" #include "llmemory.h" --- linden/indra/llmath/lluuid.cpp Sun Jan 7 23:50:14 2007 +++ linden/indra/llmath/lluuid.cpp Mon Jan 8 19:18:30 2007 @@ -565,7 +565,7 @@ #define HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H #include -#if !LL_DARWIN +#if !LL_DARWIN && !defined(__FreeBSD__) #include #endif #endif --- linden/indra/llmessage/llfiltersd2xmlrpc.cpp Sun Jan 7 23:50:15 2007 +++ linden/indra/llmessage/llfiltersd2xmlrpc.cpp Mon Jan 8 19:25:40 2007 @@ -76,7 +76,7 @@ =20 #include #include -#include +#include #include "apr-1/apr_base64.h" =20 #include "llbuffer.h" --- linden/indra/llmessage/llhttpassetstorage.cpp Sun Jan 7 23:50:15 2007 +++ linden/indra/llmessage/llhttpassetstorage.cpp Mon Jan 8 19:15:12 2007 @@ -34,7 +34,7 @@ #include "llvfile.h" #include "llvfs.h" =20 -#include "zlib/zlib.h" +#include =20 const F32 MAX_PROCESSING_TIME =3D 0.005f; const S32 CURL_XFER_BUFFER_SIZE =3D 65536; --- linden/indra/llmessage/message.h Sun Jan 7 23:50:14 2007 +++ linden/indra/llmessage/message.h Mon Jan 8 19:19:32 2007 @@ -34,7 +34,7 @@ #include =20 #if LL_LINUX -#include +//#include #include #endif =20 --- linden/indra/llrender/llfont.cpp Sun Jan 7 23:50:15 2007 +++ linden/indra/llrender/llfont.cpp Mon Jan 8 20:19:31 2007 @@ -30,11 +30,7 @@ #include "llfont.h" =20 // Freetype stuff -#if LL_LINUX // I had to do some work to avoid the system-installed Free= Type headers... --ryan. -#include "llfreetype2/freetype/ft2build.h" -#else #include -#endif =20 // For some reason, this won't work if it's not wrapped in the ifdef #ifdef FT_FREETYPE_H --- linden/indra/llxml/llxmlnode.h Sun Jan 7 23:50:17 2007 +++ linden/indra/llxml/llxmlnode.h Mon Jan 8 19:13:54 2007 @@ -29,7 +29,7 @@ #define LL_LLXMLNODE_H =20 #define XML_STATIC -#include "expat/expat.h" +#include "expat.h" #include =20 #include "indra_constants.h" --- linden/indra/llxml/llxmlparser.h Sun Jan 7 23:50:17 2007 +++ linden/indra/llxml/llxmlparser.h Mon Jan 8 19:13:56 2007 @@ -29,7 +29,7 @@ #define LL_LLXMLPARSER_H =20 #define XML_STATIC -#include "expat/expat.h" +#include "expat.h" =20 class LLXmlParser { --- linden/indra/newview/lluserauth.cpp Sun Jan 7 23:50:24 2007 +++ linden/indra/newview/lluserauth.cpp Mon Jan 8 19:25:51 2007 @@ -40,7 +40,7 @@ =20 // NOTE: MUST include these after otherincludes since queue gets redefined= !?!! #include -#include +#include =20 =20 =20 --- linden/indra/newview/llviewerobjectlist.cpp Sun Jan 7 23:50:25 2007 +++ linden/indra/newview/llviewerobjectlist.cpp Mon Jan 8 19:15:03 2007 @@ -60,7 +60,7 @@ #include "u64.h" #include "llviewerimagelist.h" #include "lldatapacker.h" -#include +#include #include "object_flags.h" =20 extern BOOL gVelocityInterpolate; --- linden/indra/newview/llxmlrpctransaction.cpp Sun Jan 7 23:50:24 2007 +++ linden/indra/newview/llxmlrpctransaction.cpp Mon Jan 8 19:26:01 2007 @@ -33,7 +33,7 @@ =20 // Have to include these last to avoid queue redefinition! #include -#include +#include =20 #include "viewer.h" =20 --- linden/indra/newview/viewer.cpp Sun Jan 7 23:50:23 2007 +++ linden/indra/newview/viewer.cpp Tue Jan 9 09:08:34 2007 @@ -69,7 +69,7 @@ # include # include // inet_ntoa() =20 - #if LL_LINUX + #if LL_LINUX && !defined(__FreeBSD__) # include // RTLD_LAZY # include // backtrace - glibc only #define LL_ELFBIN 1 @@ -2197,7 +2197,7 @@ #endif } =20 -#if LL_LINUX +#if LL_LINUX && !defined(__FreeBSD__) #define MAX_STACK_TRACE_DEPTH 40 // This uses glibc's basic built-in stack-trace functions for a not very // amazing backtrace. @@ -2360,6 +2360,8 @@ =20 void viewer_crash_callback() { + gReportedCrash =3D TRUE; +#ifndef __FreeBSD__ // Returns whether a dialog was shown. // Only do the logic in here once if (gReportedCrash) @@ -2499,6 +2501,7 @@ #endif // LL_DARWIN =20 return; +#endif } =20 =20 --kH8JNVvasRCCW1Oz-- --+9faIjRurCDpBc7U Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFo2Fw52SDGA2eCwURAlOeAJ9nMJ8W1ZR4nEKBU3cyz3lDLiEn3ACeN/1K fJbvMojCQepehWhXFUDfw+w= =lFso -----END PGP SIGNATURE----- --+9faIjRurCDpBc7U--