diff options
author | yuri <yuri@FreeBSD.org> | 2019-01-21 15:30:55 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2019-01-21 15:30:55 +0800 |
commit | b10666dd8688918d4145fa371a34c6c7527e4714 (patch) | |
tree | e511934b063f8475c68a12bff726f1a49e1da5cd /graphics | |
parent | e7b728883e8dcfb93603012e01f21a2fe8de56f1 (diff) | |
download | freebsd-ports-gnome-b10666dd8688918d4145fa371a34c6c7527e4714.tar.gz freebsd-ports-gnome-b10666dd8688918d4145fa371a34c6c7527e4714.tar.zst freebsd-ports-gnome-b10666dd8688918d4145fa371a34c6c7527e4714.zip |
New port: Cross-platform extension loading library for OpenGL
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/glee/Makefile | 39 | ||||
-rw-r--r-- | graphics/glee/distinfo | 3 | ||||
-rw-r--r-- | graphics/glee/files/glee.pc.in | 12 | ||||
-rw-r--r-- | graphics/glee/files/patch-Makefile.in | 24 | ||||
-rw-r--r-- | graphics/glee/pkg-descr | 4 |
6 files changed, 83 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index d471e162c005..e50688b26133 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -266,6 +266,7 @@ SUBDIR += gkrellkam2 SUBDIR += gle SUBDIR += gle-graphics + SUBDIR += glee SUBDIR += glew SUBDIR += glexcess SUBDIR += glfw diff --git a/graphics/glee/Makefile b/graphics/glee/Makefile new file mode 100644 index 000000000000..05eafe232ebd --- /dev/null +++ b/graphics/glee/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= GLee +DISTVERSION= 5.4.0 +CATEGORIES= graphics +MASTER_SITES= https://elf-stone.com/downloads/${PORTNAME}/ +DISTNAME= ${PORTNAME}-${DISTVERSION}-src + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cross-platform extension loading library for OpenGL + +LICENSE= BSD2CLAUSE + +USES= gl gmake +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +USE_GL= gl + +NO_WRKSUBDIR= yes + +CFLAGS+= -fPIC +LDFLAGS+= -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined -L${LOCALBASE}/lib -lGL + +SUB_FILES= glee.pc + +PLIST_FILES= include/GL/GLee.h \ + lib/libGLee.so \ + lib/libGLee.so.5 \ + lib/libGLee.so.5.4 \ + libdata/pkgconfig/glee.pc + +post-install: + cd ${STAGEDIR}${PREFIX}/lib && \ + ${MV} libGLee.so libGLee.so.${DISTVERSION:R} && \ + ${LN} -s libGLee.so.${DISTVERSION:R} libGLee.so.${DISTVERSION:R:R} && \ + ${LN} -s libGLee.so.${DISTVERSION:R} libGLee.so + ${INSTALL_DATA} ${WRKDIR}/glee.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig + +.include <bsd.port.mk> diff --git a/graphics/glee/distinfo b/graphics/glee/distinfo new file mode 100644 index 000000000000..458b8eecee7e --- /dev/null +++ b/graphics/glee/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1548012607 +SHA256 (GLee-5.4.0-src.tar.gz) = 3b58430172392ec75acdad5fd833ecf494c5518382bc27932f48d46dbb01cd29 +SIZE (GLee-5.4.0-src.tar.gz) = 269529 diff --git a/graphics/glee/files/glee.pc.in b/graphics/glee/files/glee.pc.in new file mode 100644 index 000000000000..e7d3b24d08f2 --- /dev/null +++ b/graphics/glee/files/glee.pc.in @@ -0,0 +1,12 @@ +prefix=%%PREFIX%% +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: GLee +Description: GL Easy Extension library +Version: 5.4.0 +Requires: +Conflicts: +Libs: -L${libdir} -lGLee +Cflags: -I${includedir} diff --git a/graphics/glee/files/patch-Makefile.in b/graphics/glee/files/patch-Makefile.in new file mode 100644 index 000000000000..cbf8335101ae --- /dev/null +++ b/graphics/glee/files/patch-Makefile.in @@ -0,0 +1,24 @@ +--- Makefile.in.orig 2009-02-07 20:45:53 UTC ++++ Makefile.in +@@ -38,14 +38,15 @@ BINDISTFILES=glee/${LIBNAME} glee/${READ + + all: + ${CXX} ${SRCDIR}/${SOURCE} -shared -I${SRCDIR} -I${INCLUDEDIR} ${LIBS} \ +- ${CXXFLAGS} ${DEFS} -o ${SRCDIR}/${LIBNAME} ++ ${CXXFLAGS} ${LDFLAGS} ${DEFS} -Wl,-soname,libGLee.so.5 -o ${SRCDIR}/${LIBNAME} + + install: +- ${INSTALLD} ${HEADER} ${INCLUDEDIR}/GL +- ${INSTALLP} ${LIBNAME} ${LIBDIR} +- ${MKDIR} -p ${DATADIR}/doc/GLee +- ${INSTALLD} ${README} ${DATADIR}/doc/GLee +- ${LDCONFIG} ++ ${MKDIR} -p ${DESTDIR}${INCLUDEDIR}/GL ++ ${INSTALLD} ${HEADER} ${DESTDIR}${INCLUDEDIR}/GL ++ ${INSTALLP} ${LIBNAME} ${DESTDIR}${LIBDIR} ++ #${MKDIR} -p ${DATADIR}/doc/GLee ++ #${INSTALLD} ${README} ${DATADIR}/doc/GLee ++ #${LDCONFIG} + + dists: dist bindist redist + diff --git a/graphics/glee/pkg-descr b/graphics/glee/pkg-descr new file mode 100644 index 000000000000..dff8354028ff --- /dev/null +++ b/graphics/glee/pkg-descr @@ -0,0 +1,4 @@ +GLee facilitates OpenGL extension loading, and +can be used by any code using OpenGL. + +WWW: https://elf-stone.com/glee.php |