1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/devel/ocaml-sdl/Makefile
Ion-Mihai Tetcu c7dd65d60d - 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
2006-08-04 15:45:22 +00:00

53 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: ocaml-sdl
# Date created: Jun 1, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= sdl
PORTVERSION= 0.7.2
PORTREVISION= 0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ocamlsdl
PKGNAMEPREFIX= ocaml-
DISTNAME= ocamlsdl-${PORTVERSION}
MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= An OCaml interface to the SDL
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
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --with-findlib
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/{PORTNAME}
PORTDOCS= *
.if !defined(NOPORTDOCS)
INFO= ocamlsdl
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/ocamlsdl.info ${PREFIX}/${INFO_PATH}
.endif
.include <bsd.port.post.mk>