1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/ocaml-sdl/Makefile
2006-01-31 00:00:14 +00:00

52 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: ocaml-sdl
# Date created: Jun 1, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= sdl
PORTVERSION= 0.7.1
PORTREVISION= 1
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_SDL= sdl ttf image mixer
USE_AUTOTOOLS= autoconf:259
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-findlib
USE_GMAKE= yes
PKGDEINSTALL= ${PKGINSTALL}
.if !defined(NOPORTDOCS)
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.endif
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}
.endif
.include <bsd.port.mk>