Add gl2ps 1.1.2,

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.

PR:		ports/62150
Submitted by:	Igor Pokrovsky <tiamat@comset.net>
This commit is contained in:
Kirill Ponomarev 2004-01-31 13:40:44 +00:00
parent fc64c4179a
commit 202e6783c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99605
7 changed files with 95 additions and 0 deletions

View file

@ -71,6 +71,7 @@
SUBDIR += ghostscript-gnu-nox11
SUBDIR += ghostview
SUBDIR += gimp-print
SUBDIR += gl2ps
SUBDIR += gnome-cups-manager
SUBDIR += gnomephotoprinter
SUBDIR += gnomeprint

41
print/gl2ps/Makefile Normal file
View file

@ -0,0 +1,41 @@
# New ports collection makefile for: gl2ps
# Date created: 31 Jan 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= gl2ps
PORTVERSION= 1.1.2
CATEGORIES= print graphics
MASTER_SITES= http://www.geuz.org/gl2ps/src/
MAINTAINER= tiamat@comset.net
COMMENT= A C library providing vector output for OpenGL application
USE_GL= yes
USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
pre-build:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libgl2ps.so ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libgl2ps.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/gl2ps.h ${PREFIX}/include
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/gl2psTest.c ${EXAMPLESDIR}
@${PERL} -pi -e 's|%%CC%%|${CC}|g; \
s|%%RM%%|${RM}|g; \
s|%%CFLAGS%%|${CFLAGS}|g; \
s|%%X11BASE%%|${X11BASE}|g' \
<${FILESDIR}/Makefile.ex >${EXAMPLESDIR}/Makefile
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/gl2ps.ps ${DOCSDIR}
.endif
.include <bsd.port.mk>

1
print/gl2ps/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (gl2ps-1.1.2.tar.gz) = bf7dbfc8ec1cebe60a2c2c3074010c2b

View file

@ -0,0 +1,16 @@
# You'll need graphics/libglut in order to build example program
CC=%%CC%%
RM=%%RM%%
CFLAGS= %%CFLAGS%% -DHAVE_ZLIB -O3 -I%%X11BASE%%/include
LDFLAGS= -lgl2ps -lGL -lGLU -lglut -L%%X11BASE%%/lib -lX11 -lXi -lXmu -lm -lz
gl2psTest: gl2psTest.o
${CC} ${LDFLAGS} $> -o $@
.c.o:
${CC} -c ${CFLAGS} $*.c
clean:
${RM} -f gl2psTest gl2psTest.o

View file

@ -0,0 +1,13 @@
CFLAGS+= -DHAVE_ZLIB -O3 -fPIC -I${X11BASE}/include
LDFLAGS= -shared -E -lGL -L${X11BASE}/lib -lX11 -lXi -lXmu -lm -lz
all: libgl2ps.so libgl2ps.a
libgl2ps.a: gl2ps.o
${AR} qc $@ $>
libgl2ps.so: gl2ps.o
${LD} ${LDFLAGS} $> -o $@
.c.o:
${CC} -c ${CFLAGS} $*.c

15
print/gl2ps/pkg-descr Normal file
View file

@ -0,0 +1,15 @@
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.
WWW: http://www.geuz.org/gl2ps/
- Igor Pokrovsky
tiamat@comset.net

8
print/gl2ps/pkg-plist Normal file
View file

@ -0,0 +1,8 @@
include/gl2ps.h
lib/libgl2ps.a
lib/libgl2ps.so
%%EXAMPLESDIR%%/gl2psTest.c
%%EXAMPLESDIR%%/Makefile
@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/gl2ps.ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%