Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 10:37:38 +0300 (MSK)
From:      Igor Pokrovsky <tiamat@comset.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62150: New port: print/gl2ps A C library providing vector output for OpenGL application
Message-ID:  <200401310737.i0V7bcde064613@doom.homeunix.org>
Resent-Message-ID: <200401311250.i0VCoFj5013914@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62150
>Category:       ports
>Synopsis:       New port: print/gl2ps A C library providing vector output for OpenGL application
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 31 04:50:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan 26 19:02:19 MSK 2004 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
GL2PS is a C library providing high quality vector output for any OpenGL
application. The main difference between GL2PS and other similar libraries
is the use of sorting algorithms capable of handling intersecting and
stretched polygons, as well as non manifold objects. GL2PS provides advanced
smooth shading and text rendering, culling of invisible primitives, mixed
vector/bitmap output, and much more...

GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS)
and Portable Document Format (PDF) files, as well as LATEX files for the
text fragments.
	
>How-To-Repeat:
	
>Fix:

	

--- gl2ps.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gl2ps
#	gl2ps/pkg-plist
#	gl2ps/pkg-descr
#	gl2ps/distinfo
#	gl2ps/Makefile
#	gl2ps/files
#	gl2ps/files/Makefile.ex
#	gl2ps/files/Makefile.lib
#
echo c - gl2ps
mkdir -p gl2ps > /dev/null 2>&1
echo x - gl2ps/pkg-plist
sed 's/^X//' >gl2ps/pkg-plist << 'END-of-gl2ps/pkg-plist'
Xinclude/gl2ps.h
Xlib/libgl2ps.a
Xlib/libgl2ps.so
X%%EXAMPLESDIR%%/gl2psTest.c
X%%EXAMPLESDIR%%/Makefile
X@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%%%DOCSDIR%%/gl2ps.ps
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-gl2ps/pkg-plist
echo x - gl2ps/pkg-descr
sed 's/^X//' >gl2ps/pkg-descr << 'END-of-gl2ps/pkg-descr'
XGL2PS is a C library providing high quality vector output for any OpenGL
Xapplication. The main difference between GL2PS and other similar libraries
Xis the use of sorting algorithms capable of handling intersecting and
Xstretched polygons, as well as non manifold objects. GL2PS provides advanced
Xsmooth shading and text rendering, culling of invisible primitives, mixed
Xvector/bitmap output, and much more...
X
XGL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS)
Xand Portable Document Format (PDF) files, as well as LATEX files for the
Xtext fragments.
X
XWWW:	http://www.geuz.org/gl2ps/
X
X- Igor Pokrovsky
Xtiamat@comset.net
END-of-gl2ps/pkg-descr
echo x - gl2ps/distinfo
sed 's/^X//' >gl2ps/distinfo << 'END-of-gl2ps/distinfo'
XMD5 (gl2ps-1.1.2.tar.gz) = bf7dbfc8ec1cebe60a2c2c3074010c2b
END-of-gl2ps/distinfo
echo x - gl2ps/Makefile
sed 's/^X//' >gl2ps/Makefile << 'END-of-gl2ps/Makefile'
X# New ports collection makefile for: gl2ps
X# Date created:		31 Jan 2004
X# Whom:			Igor Pokrovsky <tiamat@comset.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gl2ps
XPORTVERSION=	1.1.2
XCATEGORIES=	print graphics
XMASTER_SITES=	http://www.geuz.org/gl2ps/src/
X
XMAINTAINER=	tiamat@comset.net
XCOMMENT=	A C library providing vector output for OpenGL application
X
XUSE_GL=		yes
XUSE_X_PREFIX=	yes
XINSTALLS_SHLIB=	yes
X
Xpre-build:
X	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/libgl2ps.so ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libgl2ps.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/gl2ps.h ${PREFIX}/include
X
X	@${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/gl2psTest.c ${EXAMPLESDIR}
X	@${PERL} -pi -e 's|%%CC%%|${CC}|g; \
X			 s|%%RM%%|${RM}|g; \
X			 s|%%CFLAGS%%|${CFLAGS}|g; \
X			 s|%%X11BASE%%|${X11BASE}|g' \
X		<${FILESDIR}/Makefile.ex >${EXAMPLESDIR}/Makefile
X
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/gl2ps.ps ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-gl2ps/Makefile
echo c - gl2ps/files
mkdir -p gl2ps/files > /dev/null 2>&1
echo x - gl2ps/files/Makefile.ex
sed 's/^X//' >gl2ps/files/Makefile.ex << 'END-of-gl2ps/files/Makefile.ex'
X# You'll need graphics/libglut in order to build example program
X
XCC=%%CC%%
XRM=%%RM%%
X
XCFLAGS=		%%CFLAGS%% -DHAVE_ZLIB -O3 -I%%X11BASE%%/include
XLDFLAGS=	-lgl2ps -lGL -lGLU -lglut -L%%X11BASE%%/lib -lX11 -lXi -lXmu -lm -lz
X
Xgl2psTest: gl2psTest.o
X	${CC} ${LDFLAGS} $> -o $@
X
X.c.o:
X	${CC} -c ${CFLAGS} $*.c
X
Xclean:
X	${RM} -f gl2psTest gl2psTest.o
END-of-gl2ps/files/Makefile.ex
echo x - gl2ps/files/Makefile.lib
sed 's/^X//' >gl2ps/files/Makefile.lib << 'END-of-gl2ps/files/Makefile.lib'
XCFLAGS+=	-DHAVE_ZLIB -O3 -fPIC -I${X11BASE}/include
XLDFLAGS=	-shared -E -lGL -L${X11BASE}/lib -lX11 -lXi -lXmu -lm -lz
X
Xall: libgl2ps.so libgl2ps.a
X
Xlibgl2ps.a: gl2ps.o
X	${AR} qc $@ $>
X
Xlibgl2ps.so: gl2ps.o
X	${LD} ${LDFLAGS} $> -o $@
X
X.c.o:
X	${CC} -c ${CFLAGS} $*.c
END-of-gl2ps/files/Makefile.lib
exit
--- gl2ps.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401310737.i0V7bcde064613>