2004-06-01 04:04:41 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: ocaml-sdl
|
|
|
|
# Date created: Jun 1, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sdl
|
2006-08-04 17:45:22 +02:00
|
|
|
PORTVERSION= 0.7.2
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
2004-06-01 04:04:41 +02:00
|
|
|
CATEGORIES= devel
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/ocaml${PORTNAME}/OCamlSDL/ocaml${PORTNAME}-${PORTVERSION}
|
2004-06-01 04:04:41 +02:00
|
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
DISTNAME= ocamlsdl-${PORTVERSION}
|
|
|
|
|
2007-03-28 00:12:03 +02:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2004-06-01 04:04:41 +02:00
|
|
|
COMMENT= An OCaml interface to the SDL
|
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
BUILD_DEPENDS= lablgl:${PORTSDIR}/graphics/ocaml-lablgl
|
2004-06-01 04:04:41 +02:00
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_OCAML= yes
|
|
|
|
USE_OCAML_FINDLIB=yes
|
|
|
|
USE_OCAML_LDCONFIG=yes
|
2004-06-01 04:04:41 +02:00
|
|
|
USE_SDL= sdl ttf image mixer
|
2006-08-04 17:45:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-08-18 10:04:36 +02:00
|
|
|
CONFIGURE_ARGS= --with-findlib
|
2004-06-01 04:04:41 +02:00
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/{PORTNAME}
|
2004-08-18 10:04:36 +02:00
|
|
|
|
2004-06-01 04:04:41 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INFO= ocamlsdl
|
2004-06-01 04:04:41 +02:00
|
|
|
.endif
|
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-06-01 04:04:41 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-08-04 17:45:22 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/ocamlsdl.info ${PREFIX}/${INFO_PATH}
|
2004-06-01 04:04:41 +02:00
|
|
|
.endif
|
|
|
|
|
2006-08-04 17:45:22 +02:00
|
|
|
.include <bsd.port.post.mk>
|