View | Details | Raw Unified | Return to bug 172233
Collapse All | Expand All

(-)devel/ocaml-sdl/Makefile (-23 / +53 lines)
Lines 1-14 Link Here
1
# ex:ts=8
1
# Created by: ijliao
2
# Ports collection makefile for:	ocaml-sdl
3
# Date created:			Jun 1, 2004
4
# Whom:				ijliao
5
#
6
# $FreeBSD: ports/devel/ocaml-sdl/Makefile,v 1.29 2012/06/01 05:17:42 dinoex Exp $
2
# $FreeBSD: ports/devel/ocaml-sdl/Makefile,v 1.29 2012/06/01 05:17:42 dinoex Exp $
7
#
8
3
9
PORTNAME=	sdl
4
PORTNAME=	sdl
10
PORTVERSION=	0.7.2
5
PORTVERSION=	0.9.1
11
PORTREVISION=	11
12
CATEGORIES=	devel
6
CATEGORIES=	devel
13
MASTER_SITES=	SF/ocaml${PORTNAME}/OCamlSDL/ocaml${PORTNAME}-${PORTVERSION}
7
MASTER_SITES=	SF/ocaml${PORTNAME}/OCamlSDL/ocaml${PORTNAME}-${PORTVERSION}
14
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
Lines 17-50 Link Here
17
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	An OCaml interface to the SDL
12
COMMENT=	An OCaml interface to the SDL
19
13
20
BUILD_DEPENDS=	lablgl:${PORTSDIR}/graphics/ocaml-lablgl
14
LICENSE=	LGPL21
15
16
BUILD_DEPENDS=	ocaml-lablgl>0:${PORTSDIR}/graphics/ocaml-lablgl
17
18
OPTIONS_DEFINE=	SDL_GFX SDL_IMAGE SDL_MIXER SDL_TTF DOCS
19
OPTIONS_DEFAULT=SDL_GFX SDL_IMAGE SDL_MIXER SDL_TTF
20
SDL_GFX_DESC=	Enable SDL_gfx support
21
SDL_IMAGE_DESC=	Enable SDL_image support
22
SDL_MIXER_DESC=	Enable SDL_mixer support
23
SDL_TTF_DESC=	Enable SDL_ttf support
21
24
22
USE_GMAKE=	yes
23
USE_OCAML=	yes
25
USE_OCAML=	yes
24
USE_OCAML_FINDLIB=yes
26
USE_OCAML_FINDLIB=yes
27
USE_OCAMLFIND_PLIST=yes
25
USE_OCAML_LDCONFIG=yes
28
USE_OCAML_LDCONFIG=yes
26
USE_SDL=	sdl ttf image mixer
29
30
USE_SDL=	sdl
31
USE_GMAKE=	yes
27
GNU_CONFIGURE=	yes
32
GNU_CONFIGURE=	yes
28
LDFLAGS+=	-L${LOCALBASE}/lib
33
CONFIGURE_ARGS=	--with-lablgldir=${LOCALBASE} \
29
CFLAGS+=	-I${LOCALBASE}/include
34
		--with-sdl-prefix=${LOCALBASE} \
30
CONFIGURE_ARGS=	--with-findlib
35
		--with-installdir=${PREFIX}
36
MAKE_JOBS_SAFE=	yes
31
37
32
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
38
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
33
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/{PORTNAME}
34
39
40
INFO=		ocamlsdl
35
PORTDOCS=	*
41
PORTDOCS=	*
36
42
37
.if !defined(NOPORTDOCS)
43
.include <bsd.port.options.mk>
38
INFO=	ocamlsdl
44
45
.if ${PORT_OPTIONS:MSDL_GFX}
46
USE_SDL+=	gfx
47
.else
48
CONFIGURE_ARGS+=--disable-sdl-gfx
39
.endif
49
.endif
40
50
41
.include <bsd.port.pre.mk>
51
.if ${PORT_OPTIONS:MSDL_IMAGE}
52
USE_SDL+=	image
53
.else
54
CONFIGURE_ARGS+=--disable-sdl-image
55
.endif
56
57
.if ${PORT_OPTIONS:MSDL_MIXER}
58
USE_SDL+=	mixer
59
.else
60
CONFIGURE_ARGS+=--disable-sdl-mixer
61
.endif
62
63
.if ${PORT_OPTIONS:MSDL_TTF}
64
USE_SDL+=	ttf
65
.else
66
CONFIGURE_ARGS+=--disable-sdl-ttf
67
.endif
68
69
.if ${PORT_OPTIONS:MDOCS}
70
PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
71
.endif
42
72
43
post-install:
73
post-install:
44
.if !defined(NOPORTDOCS)
74
	${INSTALL_DATA} ${WRKSRC}/doc/ocamlsdl.info ${PREFIX}/${INFO_PATH}
75
.if ${PORT_OPTIONS:MDOCS}
45
	@${MKDIR} ${DOCSDIR}
76
	@${MKDIR} ${DOCSDIR}
46
	@${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
77
	(cd ${WRKSRC}/doc/html && ${INSTALL_DATA} * ${DOCSDIR})
47
	@${INSTALL_DATA} ${WRKSRC}/doc/ocamlsdl.info ${PREFIX}/${INFO_PATH}
48
.endif
78
.endif
49
79
50
.include <bsd.port.post.mk>
80
.include <bsd.port.mk>
(-)devel/ocaml-sdl/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ocamlsdl-0.7.2.tar.gz) = e7eec23b7c7b873bdc7fe9b618808bbebf50949f4c19d5df0a16979b2582643d
1
SHA256 (ocamlsdl-0.9.1.tar.gz) = abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f
2
SIZE (ocamlsdl-0.7.2.tar.gz) = 215193
2
SIZE (ocamlsdl-0.9.1.tar.gz) = 226085
(-)devel/ocaml-sdl/pkg-plist (-61 lines)
Lines 1-61 Link Here
1
lib/ocaml/site-lib/sdl/META
2
lib/ocaml/site-lib/sdl/dllsdlloaderstub.so
3
lib/ocaml/site-lib/sdl/dllsdlmixerstub.so
4
lib/ocaml/site-lib/sdl/dllsdlstub.so
5
lib/ocaml/site-lib/sdl/dllsdlttfstub.so
6
lib/ocaml/site-lib/sdl/libsdlloaderstub.a
7
lib/ocaml/site-lib/sdl/libsdlmixerstub.a
8
lib/ocaml/site-lib/sdl/libsdlstub.a
9
lib/ocaml/site-lib/sdl/libsdlttfstub.a
10
lib/ocaml/site-lib/sdl/sdl.a
11
lib/ocaml/site-lib/sdl/sdl.cma
12
lib/ocaml/site-lib/sdl/sdl.cmi
13
lib/ocaml/site-lib/sdl/sdl.cmx
14
lib/ocaml/site-lib/sdl/sdl.cmxa
15
lib/ocaml/site-lib/sdl/sdl.mli
16
lib/ocaml/site-lib/sdl/sdlcdrom.cmi
17
lib/ocaml/site-lib/sdl/sdlcdrom.cmx
18
lib/ocaml/site-lib/sdl/sdlcdrom.mli
19
lib/ocaml/site-lib/sdl/sdlevent.cmi
20
lib/ocaml/site-lib/sdl/sdlevent.cmx
21
lib/ocaml/site-lib/sdl/sdlevent.mli
22
lib/ocaml/site-lib/sdl/sdlgl.cmi
23
lib/ocaml/site-lib/sdl/sdlgl.cmx
24
lib/ocaml/site-lib/sdl/sdlgl.mli
25
lib/ocaml/site-lib/sdl/sdljoystick.cmi
26
lib/ocaml/site-lib/sdl/sdljoystick.cmx
27
lib/ocaml/site-lib/sdl/sdljoystick.mli
28
lib/ocaml/site-lib/sdl/sdlkey.cmi
29
lib/ocaml/site-lib/sdl/sdlkey.cmx
30
lib/ocaml/site-lib/sdl/sdlkey.mli
31
lib/ocaml/site-lib/sdl/sdlloader.a
32
lib/ocaml/site-lib/sdl/sdlloader.cma
33
lib/ocaml/site-lib/sdl/sdlloader.cmi
34
lib/ocaml/site-lib/sdl/sdlloader.cmx
35
lib/ocaml/site-lib/sdl/sdlloader.cmxa
36
lib/ocaml/site-lib/sdl/sdlloader.mli
37
lib/ocaml/site-lib/sdl/sdlmixer.a
38
lib/ocaml/site-lib/sdl/sdlmixer.cma
39
lib/ocaml/site-lib/sdl/sdlmixer.cmi
40
lib/ocaml/site-lib/sdl/sdlmixer.cmx
41
lib/ocaml/site-lib/sdl/sdlmixer.cmxa
42
lib/ocaml/site-lib/sdl/sdlmixer.mli
43
lib/ocaml/site-lib/sdl/sdlmouse.cmi
44
lib/ocaml/site-lib/sdl/sdlmouse.cmx
45
lib/ocaml/site-lib/sdl/sdlmouse.mli
46
lib/ocaml/site-lib/sdl/sdltimer.cmi
47
lib/ocaml/site-lib/sdl/sdltimer.cmx
48
lib/ocaml/site-lib/sdl/sdltimer.mli
49
lib/ocaml/site-lib/sdl/sdlttf.a
50
lib/ocaml/site-lib/sdl/sdlttf.cma
51
lib/ocaml/site-lib/sdl/sdlttf.cmi
52
lib/ocaml/site-lib/sdl/sdlttf.cmx
53
lib/ocaml/site-lib/sdl/sdlttf.cmxa
54
lib/ocaml/site-lib/sdl/sdlttf.mli
55
lib/ocaml/site-lib/sdl/sdlvideo.cmi
56
lib/ocaml/site-lib/sdl/sdlvideo.cmx
57
lib/ocaml/site-lib/sdl/sdlvideo.mli
58
lib/ocaml/site-lib/sdl/sdlwm.cmi
59
lib/ocaml/site-lib/sdl/sdlwm.cmx
60
lib/ocaml/site-lib/sdl/sdlwm.mli
61
%%PORTDOCS%%@dirrmtry share/doc/ocaml

Return to bug 172233