aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-sdl
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-08-04 23:45:22 +0800
committeritetcu <itetcu@FreeBSD.org>2006-08-04 23:45:22 +0800
commit1c1aa8a2ce810a22ebb02e9225386155986448c5 (patch)
tree23b2e7ac317d403ab5b2f2661120897339285dea /devel/ocaml-sdl
parentdf2fcdab1880a64e07f1fcc8d10666ab9c5a9047 (diff)
downloadfreebsd-ports-gnome-1c1aa8a2ce810a22ebb02e9225386155986448c5.tar.gz
freebsd-ports-gnome-1c1aa8a2ce810a22ebb02e9225386155986448c5.tar.zst
freebsd-ports-gnome-1c1aa8a2ce810a22ebb02e9225386155986448c5.zip
- Update to 0.7.2
- Use new ocaml framework (depepends on ports/101100) - Install info as well - Install docs with correct permissions - Pass maintainership to submitter PR: ports/101173 Submitted by: Stanislav Sedov
Diffstat (limited to 'devel/ocaml-sdl')
-rw-r--r--devel/ocaml-sdl/Makefile41
-rw-r--r--devel/ocaml-sdl/distinfo6
-rw-r--r--devel/ocaml-sdl/files/patch-configure.in10
-rw-r--r--devel/ocaml-sdl/files/patch-makefile.config.gcc.in9
-rw-r--r--devel/ocaml-sdl/pkg-install9
-rw-r--r--devel/ocaml-sdl/pkg-plist61
6 files changed, 85 insertions, 51 deletions
diff --git a/devel/ocaml-sdl/Makefile b/devel/ocaml-sdl/Makefile
index 14a60484663a..c704cb6e1c18 100644
--- a/devel/ocaml-sdl/Makefile
+++ b/devel/ocaml-sdl/Makefile
@@ -7,45 +7,46 @@
#
PORTNAME= sdl
-PORTVERSION= 0.7.1
-PORTREVISION= 1
+PORTVERSION= 0.7.2
+PORTREVISION= 0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ocamlsdl
PKGNAMEPREFIX= ocaml-
DISTNAME= ocamlsdl-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= An OCaml interface to the SDL
-BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
- ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
- lablgl:${PORTSDIR}/graphics/ocaml-lablgl
+BUILD_DEPENDS= lablgl:${PORTSDIR}/graphics/ocaml-lablgl
+USE_GMAKE= yes
+USE_OCAML= yes
+USE_OCAML_FINDLIB=yes
+USE_OCAML_LDCONFIG=yes
USE_SDL= sdl ttf image mixer
-USE_AUTOTOOLS= autoconf:259
-CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --with-findlib
-USE_GMAKE= yes
-PKGDEINSTALL= ${PKGINSTALL}
+DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/{PORTNAME}
-.if !defined(NOPORTDOCS)
PORTDOCS= *
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+.if !defined(NOPORTDOCS)
+INFO= ocamlsdl
.endif
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
+
post-install:
- @${FIND} ${PREFIX}/lib/ocaml/site-lib/sdl ! -type d | \
- ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
- @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec ocamlfind remove ${PORTNAME} 2>/dev/null || true" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec rmdir lib/ocaml 2>/dev/null || true" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${CP} -R ${WRKSRC}/doc/html/ ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/ocamlsdl.info ${PREFIX}/${INFO_PATH}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/ocaml-sdl/distinfo b/devel/ocaml-sdl/distinfo
index 78d680f4d7cc..359b72cb0df5 100644
--- a/devel/ocaml-sdl/distinfo
+++ b/devel/ocaml-sdl/distinfo
@@ -1,3 +1,3 @@
-MD5 (ocamlsdl-0.7.1.tar.gz) = 3829b20bd975e3bef5195a54e2cd04cb
-SHA256 (ocamlsdl-0.7.1.tar.gz) = 63a3be8f7280256d8cc6af552e14a0550b1acd955b3147a24d9d515abe838c32
-SIZE (ocamlsdl-0.7.1.tar.gz) = 213802
+MD5 (ocamlsdl-0.7.2.tar.gz) = 0707a9cf80bd9cfe18ad660dc077bad6
+SHA256 (ocamlsdl-0.7.2.tar.gz) = e7eec23b7c7b873bdc7fe9b618808bbebf50949f4c19d5df0a16979b2582643d
+SIZE (ocamlsdl-0.7.2.tar.gz) = 215193
diff --git a/devel/ocaml-sdl/files/patch-configure.in b/devel/ocaml-sdl/files/patch-configure.in
deleted file mode 100644
index 71a484e69c8b..000000000000
--- a/devel/ocaml-sdl/files/patch-configure.in
+++ /dev/null
@@ -1,10 +0,0 @@
---- configure.in.orig Sun Jan 9 10:44:49 2005
-+++ configure.in Sun Jan 9 10:49:16 2005
-@@ -52,6 +52,7 @@
- )
-
- CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
-+LIBS="$LIBS $SDL_LIBS"
-
- # cmdline options
- AC_ARG_ENABLE(sdl_ttf,
diff --git a/devel/ocaml-sdl/files/patch-makefile.config.gcc.in b/devel/ocaml-sdl/files/patch-makefile.config.gcc.in
deleted file mode 100644
index 606d46ea00bc..000000000000
--- a/devel/ocaml-sdl/files/patch-makefile.config.gcc.in
+++ /dev/null
@@ -1,9 +0,0 @@
---- makefile.config.gcc.in.orig Wed Aug 18 15:51:25 2004
-+++ makefile.config.gcc.in Wed Aug 18 15:52:03 2004
-@@ -44,5 +44,5 @@
-
- MKCMA = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
- MKCMXA = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
--MKCLIB = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
-+MKCLIB = $(OCAMLMKLIB) -v -o $(1) -L${LOCALBASE}/lib -oc $(2) $(3) $(4)
- endif
diff --git a/devel/ocaml-sdl/pkg-install b/devel/ocaml-sdl/pkg-install
deleted file mode 100644
index c87492b34ffa..000000000000
--- a/devel/ocaml-sdl/pkg-install
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-if [ "$2" = "POST-INSTALL" ]; then
- echo "${PKG_PREFIX}/lib/ocaml/site-lib/sdl" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
-elif [ "$2" = "DEINSTALL" ]; then
- mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
- grep -v sdl ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
- rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
-fi
diff --git a/devel/ocaml-sdl/pkg-plist b/devel/ocaml-sdl/pkg-plist
new file mode 100644
index 000000000000..52fb98a912a3
--- /dev/null
+++ b/devel/ocaml-sdl/pkg-plist
@@ -0,0 +1,61 @@
+lib/ocaml/site-lib/sdl/META
+lib/ocaml/site-lib/sdl/dllsdlloaderstub.so
+lib/ocaml/site-lib/sdl/dllsdlmixerstub.so
+lib/ocaml/site-lib/sdl/dllsdlstub.so
+lib/ocaml/site-lib/sdl/dllsdlttfstub.so
+lib/ocaml/site-lib/sdl/libsdlloaderstub.a
+lib/ocaml/site-lib/sdl/libsdlmixerstub.a
+lib/ocaml/site-lib/sdl/libsdlstub.a
+lib/ocaml/site-lib/sdl/libsdlttfstub.a
+lib/ocaml/site-lib/sdl/sdl.a
+lib/ocaml/site-lib/sdl/sdl.cma
+lib/ocaml/site-lib/sdl/sdl.cmi
+lib/ocaml/site-lib/sdl/sdl.cmx
+lib/ocaml/site-lib/sdl/sdl.cmxa
+lib/ocaml/site-lib/sdl/sdl.mli
+lib/ocaml/site-lib/sdl/sdlcdrom.cmi
+lib/ocaml/site-lib/sdl/sdlcdrom.cmx
+lib/ocaml/site-lib/sdl/sdlcdrom.mli
+lib/ocaml/site-lib/sdl/sdlevent.cmi
+lib/ocaml/site-lib/sdl/sdlevent.cmx
+lib/ocaml/site-lib/sdl/sdlevent.mli
+lib/ocaml/site-lib/sdl/sdlgl.cmi
+lib/ocaml/site-lib/sdl/sdlgl.cmx
+lib/ocaml/site-lib/sdl/sdlgl.mli
+lib/ocaml/site-lib/sdl/sdljoystick.cmi
+lib/ocaml/site-lib/sdl/sdljoystick.cmx
+lib/ocaml/site-lib/sdl/sdljoystick.mli
+lib/ocaml/site-lib/sdl/sdlkey.cmi
+lib/ocaml/site-lib/sdl/sdlkey.cmx
+lib/ocaml/site-lib/sdl/sdlkey.mli
+lib/ocaml/site-lib/sdl/sdlloader.a
+lib/ocaml/site-lib/sdl/sdlloader.cma
+lib/ocaml/site-lib/sdl/sdlloader.cmi
+lib/ocaml/site-lib/sdl/sdlloader.cmx
+lib/ocaml/site-lib/sdl/sdlloader.cmxa
+lib/ocaml/site-lib/sdl/sdlloader.mli
+lib/ocaml/site-lib/sdl/sdlmixer.a
+lib/ocaml/site-lib/sdl/sdlmixer.cma
+lib/ocaml/site-lib/sdl/sdlmixer.cmi
+lib/ocaml/site-lib/sdl/sdlmixer.cmx
+lib/ocaml/site-lib/sdl/sdlmixer.cmxa
+lib/ocaml/site-lib/sdl/sdlmixer.mli
+lib/ocaml/site-lib/sdl/sdlmouse.cmi
+lib/ocaml/site-lib/sdl/sdlmouse.cmx
+lib/ocaml/site-lib/sdl/sdlmouse.mli
+lib/ocaml/site-lib/sdl/sdltimer.cmi
+lib/ocaml/site-lib/sdl/sdltimer.cmx
+lib/ocaml/site-lib/sdl/sdltimer.mli
+lib/ocaml/site-lib/sdl/sdlttf.a
+lib/ocaml/site-lib/sdl/sdlttf.cma
+lib/ocaml/site-lib/sdl/sdlttf.cmi
+lib/ocaml/site-lib/sdl/sdlttf.cmx
+lib/ocaml/site-lib/sdl/sdlttf.cmxa
+lib/ocaml/site-lib/sdl/sdlttf.mli
+lib/ocaml/site-lib/sdl/sdlvideo.cmi
+lib/ocaml/site-lib/sdl/sdlvideo.cmx
+lib/ocaml/site-lib/sdl/sdlvideo.mli
+lib/ocaml/site-lib/sdl/sdlwm.cmi
+lib/ocaml/site-lib/sdl/sdlwm.cmx
+lib/ocaml/site-lib/sdl/sdlwm.mli
+%%PORTDOCS%%@dirrmtry share/doc/ocaml