diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-06-01 10:04:41 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-06-01 10:04:41 +0800 |
commit | 42e0d073f235c42e48cd534ad553eedb32d8b76e (patch) | |
tree | bb17d0e9a4ee26511d562ecf04a88ed534c53e18 /devel/ocaml-sdl | |
parent | 92a6faead9bc71ac10bb6e93d05367426f5a1d16 (diff) | |
download | freebsd-ports-gnome-42e0d073f235c42e48cd534ad553eedb32d8b76e.tar.gz freebsd-ports-gnome-42e0d073f235c42e48cd534ad553eedb32d8b76e.tar.zst freebsd-ports-gnome-42e0d073f235c42e48cd534ad553eedb32d8b76e.zip |
add ocaml-sdl 0.6.3
An OCaml interface to the SDL
Diffstat (limited to 'devel/ocaml-sdl')
-rw-r--r-- | devel/ocaml-sdl/Makefile | 52 | ||||
-rw-r--r-- | devel/ocaml-sdl/distinfo | 2 | ||||
-rw-r--r-- | devel/ocaml-sdl/files/patch-configure | 35 | ||||
-rw-r--r-- | devel/ocaml-sdl/pkg-descr | 3 |
4 files changed, 92 insertions, 0 deletions
diff --git a/devel/ocaml-sdl/Makefile b/devel/ocaml-sdl/Makefile new file mode 100644 index 000000000000..2ef634aaaca2 --- /dev/null +++ b/devel/ocaml-sdl/Makefile @@ -0,0 +1,52 @@ +# ex:ts=8 +# Ports collection makefile for: ocaml-sdl +# Date created: Jun 1, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= sdl +PORTVERSION= 0.6.3 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ocamlsdl +PKGNAMEPREFIX= ocaml- +DISTNAME= ocamlsdl-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org +COMMENT= An OCaml interface to the SDL + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib \ + lablgl:${PORTSDIR}/graphics/ocaml-lablgl + +USE_BZIP2= yes +USE_SDL= sdl ttf image mixer +GNU_CONFIGURE= yes +USE_GMAKE= yes + +.if !defined(NOPORTDOCS) +PORTDOCS= * + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +.endif + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/sdl ! -type d | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/sdl" >> ${TMPPLIST} + @${FIND} ${PREFIX}/lib/ocaml/stublibs -name "dllsdl*.so" | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${CP} -R ${WRKSRC}/doc/html/ ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} + ${CP} -R ${WRKSRC}/samples/ ${EXAMPLESDIR} + @${FIND} ${EXAMPLESDIR} ! -type d | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST} +.endif + +.include <bsd.port.mk> diff --git a/devel/ocaml-sdl/distinfo b/devel/ocaml-sdl/distinfo new file mode 100644 index 000000000000..1f432dc84af4 --- /dev/null +++ b/devel/ocaml-sdl/distinfo @@ -0,0 +1,2 @@ +MD5 (ocamlsdl-0.6.3.tar.bz2) = 9e99ba5675b2d113ce2e3e139c2c8dc3 +SIZE (ocamlsdl-0.6.3.tar.bz2) = 335489 diff --git a/devel/ocaml-sdl/files/patch-configure b/devel/ocaml-sdl/files/patch-configure new file mode 100644 index 000000000000..767d2114a6d8 --- /dev/null +++ b/devel/ocaml-sdl/files/patch-configure @@ -0,0 +1,35 @@ +--- configure.orig Tue Jun 1 09:27:55 2004 ++++ configure Tue Jun 1 09:28:03 2004 +@@ -2652,19 +2652,19 @@ + fi; + echo "$as_me:$LINENO: checking lablGL directory" >&5 + echo $ECHO_N "checking lablGL directory... $ECHO_C" >&6 +-TMPF=conftest.ml +-cat > $TMPF << EOF +-open Gl +-EOF +-_LABLGLDIR=$LABLGLDIR +-unset LABLGLDIR +-for dir in $_LABLGLDIR +lablGL ; do +- if $OCAMLC -c -I $dir $TMPF >& /dev/null ; then +- LABLGLDIR="$dir" +- break +- fi +-done +-rm -f $TMPF ++#TMPF=conftest.ml ++#cat > $TMPF << EOF ++#open Gl ++#EOF ++#_LABLGLDIR=$LABLGLDIR ++#unset LABLGLDIR ++#for dir in $_LABLGLDIR +lablGL ; do ++# if $OCAMLC -c -I $dir $TMPF >& /dev/null ; then ++# LABLGLDIR="$dir" ++# break ++# fi ++#done ++#rm -f $TMPF + if test -n $LABLGLDIR ; then + echo "$as_me:$LINENO: result: $LABLGLDIR" >&5 + echo "${ECHO_T}$LABLGLDIR" >&6 diff --git a/devel/ocaml-sdl/pkg-descr b/devel/ocaml-sdl/pkg-descr new file mode 100644 index 000000000000..dad734de1afc --- /dev/null +++ b/devel/ocaml-sdl/pkg-descr @@ -0,0 +1,3 @@ +OCamlSDL is an OCaml interface to the SDL (Simple DirectMedia Layer) library. + +WWW: http://ocamlsdl.sourceforge.net/ |