freebsd-ports/graphics/ocaml-lablgl/Makefile
Mark Linimon c99ca03f1b The change of the lang/ocaml port to use tcl/tk 8.4.x broke
graphics/ocaml-lablgl. This patch updates lablgl to 1.00 and
changes it to also use tcl/tk 8.4.x.  Summary of changes
from CHANGES:

  split togl, move examples to Togl/examples; add mingw support;
  reorganized directories and Makefiles; merge ijtrotts' LablGlut;
  add glArray support.

PR:		ports/63246
Submitted by:	Ronald Kuehn <rk@ronald.org> (maintainer)
2004-03-04 07:49:12 +00:00

57 lines
1.8 KiB
Makefile

# New ports collection makefile for: lablgl
# Date created: 13. January 2002
# Whom: Ronald Kuehn <rk@ronald.org>
#
# $FreeBSD$
#
PORTNAME= lablgl
PORTVERSION= 1.00
CATEGORIES= graphics
MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \
ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/
PKGNAMEPREFIX= ocaml-
MAINTAINER= rk@ronald.org
COMMENT= OpenGL interface for Objective Caml
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
USE_GL= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/lablgl-${PORTVERSION}
ALL_TARGET= all opt
#EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME}
#DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
post-extract:
@${CP} ${WRKSRC}/Makefile.config.freebsd ${WRKSRC}/Makefile.config
post-install:
${MKDIR} ${EXAMPLESDIR}/LablGlut/caml-images \
${EXAMPLESDIR}/LablGlut/etc \
${EXAMPLESDIR}/LablGlut/etc/in-progress \
${EXAMPLESDIR}/LablGlut/lablGL \
${EXAMPLESDIR}/LablGlut/nehe \
${EXAMPLESDIR}/Togl
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/README \
${EXAMPLESDIR}/LablGlut
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/caml-images/* \
${EXAMPLESDIR}/LablGlut/caml-images
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/etc/d* \
${EXAMPLESDIR}/LablGlut/etc
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/etc/in-progress/* \
${EXAMPLESDIR}/LablGlut/etc/in-progress
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/lablGL/* \
${EXAMPLESDIR}/LablGlut/lablGL
${INSTALL_DATA} ${WRKSRC}/LablGlut/examples/nehe/* \
${EXAMPLESDIR}/LablGlut/nehe
${INSTALL_DATA} ${WRKSRC}/Togl/examples/* \
${EXAMPLESDIR}/Togl
.if !defined(NO_PORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>