Commit 0024e454 authored by jhale's avatar jhale
Browse files

- Repocopy devel/clanlib -> devel/clanlib22

- Update to 2.2.12

PR:		ports/172292
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
Approved by:	makc (mentor)
parent b9b0fc67
......@@ -219,6 +219,7 @@
SUBDIR += cl-uffi-sbcl
SUBDIR += clanlib
SUBDIR += clanlib1
SUBDIR += clanlib22
SUBDIR += clewn
SUBDIR += clig
SUBDIR += clint
......
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= clanlib
PORTVERSION= 2.2.12
CATEGORIES= devel
MASTER_SITES= http://www.clanlib.org/download/releases-2.0/
DISTNAME= ClanLib-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= c.petrik.sosa@gmail.com
COMMENT= Cross-platform game SDK
LICENSE= ZLIB
LICENSE_GROUPS= FSF GPL OSI
LICENSE_NAME= ZLIB license
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
mikmod:${PORTSDIR}/audio/libmikmod \
vorbis:${PORTSDIR}/audio/libvorbis \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
pcre:${PORTSDIR}/devel/pcre
LATEST_LINK= ${PORTNAME}22
USE_GMAKE= yes
USE_XORG= x11
USE_GNOME= gnomehack
USE_LDCONFIG= yes
USE_GL= yes
USE_PKGCONFIG= yes
USE_SQLITE= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-docs \
--enable-clanDisplay \
--enable-clanGL \
--enable-clanGL1 \
--enable-clanSound \
--enable-clanDatabase \
--enable-clanSqlite \
--enable-clanRegExp \
--enable-clanNetwork \
--enable-clanGUI \
--enable-clanCSSLayout \
--enable-clanSWRender \
--enable-clanMikMod \
--enable-clanVorbis \
--enable-getaddr
PLIST_SUB+= VER=${PORTVERSION:R} \
SHORT_VER=${PORTVERSION:R:R}${PORTVERSION:R:E}
post-patch:
@${REINPLACE_CMD} -e '/^extra_LIBS_clanSqlite/s|-ldl||g' \
${WRKSRC}/configure
.include <bsd.port.mk>
SHA256 (ClanLib-2.2.12.tgz) = fd6ebe34c24b14f9e00caf1f6d2889ac27a77fa08153352e66942849df73d569
SIZE (ClanLib-2.2.12.tgz) = 26139745
--- ./Sources/Core/System/Unix/init_linux.cpp.orig 2011-01-13 06:15:25.000000000 -0500
+++ ./Sources/Core/System/Unix/init_linux.cpp 2012-10-07 17:20:55.000000000 -0400
@@ -39,6 +39,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
+#include <climits>
#include "init_linux.h"
// note: this cannot be replaced by <ctime>! (timeval needs to be defined)
#include <sys/time.h>
@@ -110,7 +111,7 @@
#else
#ifndef PROC_EXE_PATH
-#define PROC_EXE_PATH "/proc/self/exe"
+#define PROC_EXE_PATH "/proc/curproc/file"
#endif
int size;
struct stat sb;
--- ./Sources/Core/System/system.cpp.orig 2012-09-25 07:46:49.000000000 -0400
+++ ./Sources/Core/System/system.cpp 2012-09-25 07:57:19.000000000 -0400
@@ -1,3 +1,4 @@
+
/*
** ClanLib SDK
** Copyright (c) 1997-2011 The ClanLib Team
@@ -44,7 +45,7 @@
#include <sys/sysctl.h>
#endif
-#ifndef __APPLE__
+#if !(defined(__APPLE__) || defined(__FreeBSD__))
#include <execinfo.h>
#endif
#include <cxxabi.h>
@@ -128,7 +129,7 @@
*out_hash = 0;
return capturedFrames;
-#elif !defined(__APPLE__)
+#elif !(defined(__APPLE__) || defined(__FreeBSD__))
// Ensure the output is cleared
memset(out_frames, 0, (sizeof(void *)) * max_frames);
@@ -188,7 +189,7 @@
SymCleanup(GetCurrentProcess());
return backtrace_text;
-#elif !defined(__APPLE__)
+#elif !(defined(__APPLE__) || defined(__FreeBSD__))
char **strings;
strings = backtrace_symbols(frames, num_frames);
--- ./Sources/Network/Socket/unix_socket.cpp.orig 2011-01-27 05:27:59.000000000 -0500
+++ ./Sources/Network/Socket/unix_socket.cpp 2012-10-06 21:26:11.000000000 -0400
@@ -39,7 +39,7 @@
#include <netinet/tcp.h>
#include <errno.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
# define SOL_TCP IPPROTO_TCP // Fix for BSD systems. --NDT
#endif
@@ -140,6 +140,7 @@
void CL_UnixSocket::set_keep_alive(bool enable, int timeout, int interval)
{
+#if !(defined(__APPLE__) || defined(__FreeBSD__))
int value = enable ? 1 : 0;
int result = setsockopt(handle, SOL_SOCKET, SO_KEEPALIVE, (const char *) &value, sizeof(int));
throw_if_failed(result);
@@ -149,6 +150,7 @@
setsockopt(handle, SOL_TCP, TCP_KEEPIDLE, (const char *) &timeout, sizeof(int));
setsockopt(handle, SOL_TCP, TCP_KEEPINTVL, (const char *) &interval, sizeof(int));
}
+#endif
}
void CL_UnixSocket::bind(const CL_SocketName &socketname, bool reuse_address)
ClanLib delivers a platform independent interface to write games with. If a
game is written with ClanLib, it should be possible to compile the game under
any platform (supported by ClanLib, that is) without changes in the application
source code.
But ClanLib is not just a wrapper library, providing an common interface to
low level libraries such as DirectX, Svgalib, X11, GGI, etc. While platform
independency is ClanLib's primary goal, it also tries to be a service-minded
game SDK. In other words, authors have put great effort in to designing the API,
to ensure ClanLib's easy of use - while maintaining it's power.
WWW: http://www.clanlib.org/
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment