Index: head/graphics/glosm/Makefile =================================================================== --- head/graphics/glosm/Makefile (revision 469960) +++ head/graphics/glosm/Makefile (revision 469961) @@ -1,33 +1,39 @@ # Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= glosm PORTVERSION= 0.0.2 PORTREVISION= 6 CATEGORIES= graphics geography MASTER_SITES= GHC http://mirror.amdmi3.ru/distfiles/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= 3D OpenGL renderer for OpenStreetMap +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= libpng.so:graphics/png \ libexpat.so:textproc/expat2 USES= tar:bzip2 cmake USE_GL= gl +USE_XORG= x11 USE_SDL= sdl USE_GITHUB= yes GH_ACCOUNT= AMDmi3 TEST_TARGET= test +CXXFLAGS+= -Wno-c++11-narrowing + PORTDOCS= README ChangeLog OPTIONS_DEFINE= DOCS post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include Index: head/graphics/glosm/files/patch-tiler_PBuffer.cc =================================================================== --- head/graphics/glosm/files/patch-tiler_PBuffer.cc (nonexistent) +++ head/graphics/glosm/files/patch-tiler_PBuffer.cc (revision 469961) @@ -0,0 +1,20 @@ +--- tiler/PBuffer.cc.orig 2011-02-27 15:05:45 UTC ++++ tiler/PBuffer.cc +@@ -38,7 +38,7 @@ static bool CheckGLXVersion(Display* dis + return true; + } + +-PBuffer::PBuffer(int width, int height, int samples) : width_(width), height_(height), display_(NULL), context_(NULL), pbuffer_(NULL) { ++PBuffer::PBuffer(int width, int height, int samples) : width_(width), height_(height), display_(NULL), context_(NULL), pbuffer_(None) { + if ((display_ = XOpenDisplay(NULL)) == NULL) + throw PBufferException() << "cannot open default X display"; + +@@ -113,7 +113,7 @@ PBuffer::PBuffer(int width, int height, + } + + PBuffer::~PBuffer() { +- if (!glXMakeCurrent(display_, NULL, NULL)) ++ if (!glXMakeCurrent(display_, None, NULL)) + warnx("cannot reset GLX context: glXMakeCurrent failed"); + glXDestroyContext(display_, context_); + glXDestroyPbuffer(display_, pbuffer_); Property changes on: head/graphics/glosm/files/patch-tiler_PBuffer.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property