1998-12-24 07:10:15 +00:00
|
|
|
# New ports collection makefile for: cgraph
|
|
|
|
# Version required: 2.04
|
|
|
|
# Date created: 25 September 1998
|
|
|
|
# Whom: Anton Berezin <tobez@plab.ku.dk>
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-12-24 07:10:15 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= Cgraph2.04
|
|
|
|
PKGNAME= Cgraph-2.04
|
|
|
|
CATEGORIES= graphics
|
1999-10-10 19:33:27 +00:00
|
|
|
MASTER_SITES= http://totoro.berkeley.edu/software/
|
1998-12-24 07:10:15 +00:00
|
|
|
|
|
|
|
MAINTAINER= tobez@plab.ku.dk
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Cgraph/source
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../docs/cgraph.ps ${PREFIX}/share/doc/cgraph
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${MKDIR} ${PREFIX}/share/examples/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/minimal/CGminimal.c ${PREFIX}/share/examples/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/dash/dashlist.c ${PREFIX}/share/examples/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/marker/markerlist.c ${PREFIX}/share/examples/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFopt-lrLog.c ${PREFIX}/share/examples/cgraph
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../examples/loglog/TFampspect.dat ${PREFIX}/share/examples/cgraph
|
|
|
|
.endif
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
@${LN} -sf libcgraph.so.2.4 ${PREFIX}/lib/libcgraph.so
|
|
|
|
.endif
|
|
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|