Index: head/graphics/anttweakbar/Makefile =================================================================== --- head/graphics/anttweakbar/Makefile (revision 569378) +++ head/graphics/anttweakbar/Makefile (revision 569379) @@ -1,43 +1,43 @@ # $FreeBSD$ PORTNAME= anttweakbar DISTVERSION= 1.16 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/ DISTNAME= AntTweakBar_${DISTVERSION:S/.//} MAINTAINER= yuri@FreeBSD.org COMMENT= C library to add light and GUI into graphic apps LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/../License.txt USES= dos2unix gl xorg zip USE_GL= gl glu USE_XORG= x11 USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/AntTweakBar WRKSRC_SUBDIR= src -DOS2UNIX_FILES= Makefile +DOS2UNIX_FILES= Makefile LoadOGLCore.h TwPrecomp.h LDFLAGS+= -L${LOCALBASE}/lib -lX11 BINARY_ALIAS= gcc=${CC} PLIST_FILES= include/AntTweakBar.h \ lib/libAntTweakBar.a \ lib/libAntTweakBar.so \ lib/libAntTweakBar.so.${DISTVERSION:R} \ lib/libAntTweakBar.so.${DISTVERSION} do-install: ${INSTALL_DATA} ${WRKSRC}/../include/AntTweakBar.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/../lib/libAntTweakBar.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_LIB} ${WRKSRC}/../lib/libAntTweakBar.so ${STAGEDIR}${PREFIX}/lib/libAntTweakBar.so.${DISTVERSION} cd ${STAGEDIR}${PREFIX}/lib && \ ${LN} -s libAntTweakBar.so.${DISTVERSION} libAntTweakBar.so.${DISTVERSION:R} && \ ${LN} -s libAntTweakBar.so.${DISTVERSION} libAntTweakBar.so .include Index: head/graphics/anttweakbar/files/patch-LoadOGLCore.h =================================================================== --- head/graphics/anttweakbar/files/patch-LoadOGLCore.h (nonexistent) +++ head/graphics/anttweakbar/files/patch-LoadOGLCore.h (revision 569379) @@ -0,0 +1,16 @@ +- typedefs cause error: typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'khronos_intptr_t' (aka 'long')) + +--- LoadOGLCore.h.orig 2021-03-28 08:30:01 UTC ++++ LoadOGLCore.h +@@ -152,9 +152,11 @@ ANT_GL_CORE_DECL(void, glPointParameterfv, (GLenum pna + ANT_GL_CORE_DECL(void, glPointParameteri, (GLenum pname, GLint param)) + ANT_GL_CORE_DECL(void, glPointParameteriv, (GLenum pname, const GLint *params)) + // GL 1.5 ++#if !defined(__FreeBSD__) + #ifndef ANT_OSX + typedef ptrdiff_t GLintptr; + typedef ptrdiff_t GLsizeiptr; ++#endif + #endif + ANT_GL_CORE_DECL(void, glGenQueries, (GLsizei n, GLuint *ids)) + ANT_GL_CORE_DECL(void, glDeleteQueries, (GLsizei n, const GLuint *ids)) Property changes on: head/graphics/anttweakbar/files/patch-LoadOGLCore.h ___________________________________________________________________ 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 Index: head/graphics/anttweakbar/files/patch-TwPrecomp.h =================================================================== --- head/graphics/anttweakbar/files/patch-TwPrecomp.h (nonexistent) +++ head/graphics/anttweakbar/files/patch-TwPrecomp.h (revision 569379) @@ -0,0 +1,16 @@ +- error: " has been replaced by " + +--- TwPrecomp.h.orig 2021-03-28 08:35:14 UTC ++++ TwPrecomp.h +@@ -51,7 +51,11 @@ + # include + # include + # include ++#if !defined(__FreeBSD__) + # include ++#else ++# include ++#endif + # undef _WIN32 + # undef WIN32 + # undef _WIN64 Property changes on: head/graphics/anttweakbar/files/patch-TwPrecomp.h ___________________________________________________________________ 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