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

(-)/var/tmp/ocaml-lablgtk/Makefile (-26 / +53 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	lablgtk
8
PORTNAME=	lablgtk
9
PORTVERSION=	1.2.5
9
PORTVERSION=	1.2.7
10
PORTREVISION=	3
10
PORTREVISION=	0
11
CATEGORIES=	x11-toolkits
11
CATEGORIES=	x11-toolkits
12
MASTER_SITES=	http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \
12
MASTER_SITES=	http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \
13
		ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/
13
		ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/
Lines 17-24 Link Here
17
MAINTAINER=	rk@ronald.org
17
MAINTAINER=	rk@ronald.org
18
COMMENT=	An Objective Caml interface to gtk+
18
COMMENT=	An Objective Caml interface to gtk+
19
19
20
BUILD_DEPENDS+=	ocamlc:${PORTSDIR}/lang/ocaml
20
USE_GMAKE=	yes
21
RUN_DEPENDS+=	ocamlc:${PORTSDIR}/lang/ocaml
21
USE_GNOME=	gtk12
22
USE_OCAML=	yes
23
ALL_TARGET=	all opt
24
CONFIGURE_ENV=	USE_DOTOPT=1 GTK_CONFIG=${GTK_CONFIG} \
25
		LIBDIR=${LOCALBASE}/lib/ocaml BINDIR=${PREFIX}/bin \
26
		INSTALLDIR=${PREFIX}/lib/ocaml/${PORTNAME} \
27
		DLLDIR=${PREFIX}/lib/ocaml/stublibs
28
29
OPTIONS=	GL	"Enable OpenGL support" on \
30
		GNOME	"Enable GNOME support" off \
31
		GLADE	"Enable Glade support" off
32
33
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
34
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
35
36
MASTERPORT=	${PORTSDIR}/devel/ocaml-camlidl
37
PATTERN=	[[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
38
39
.include <bsd.port.pre.mk>
40
.include "${MASTERPORT}/bsd.ocaml.mk"
41
22
.if defined(WITHOUT_GL)
42
.if defined(WITHOUT_GL)
23
PLIST_SUB+=	GL="@comment "
43
PLIST_SUB+=	GL="@comment "
24
SFXGL=		-nogl
44
SFXGL=		-nogl
Lines 29-64 Link Here
29
LIB_DEPENDS+=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
49
LIB_DEPENDS+=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
30
CONFIGURE_ENV+=	USE_GL=1
50
CONFIGURE_ENV+=	USE_GL=1
31
.endif
51
.endif
32
.if defined(WITHOUT_GNOME)
52
33
PLIST_SUB+=	GNOME="@comment "
53
.if defined(WITH_GNOME)
34
SFXGNOME=	-nognome
35
.else
36
PLIST_SUB+=	GNOME=""
54
PLIST_SUB+=	GNOME=""
37
USE_GNOME=	gdkpixbuf
55
USE_GNOME=	gdkpixbuf
38
CONFIGURE_ENV+=	USE_GNOME=1
56
CONFIGURE_ENV+=	USE_GNOME=1
39
.endif
40
.if defined(WITHOUT_GLADE)
41
PLIST_SUB+=	GLADE="@comment "
42
SFXGLADE=	-noglade
43
.else
57
.else
58
PLIST_SUB+=	GNOME="@comment "
59
SFXGNOME=	-nognome
60
.endif
61
62
.if defined(WITH_GLADE)
44
PLIST_SUB+=	GLADE=""
63
PLIST_SUB+=	GLADE=""
45
.if defined(WITHOUT_GNOME)
64
.if defined(WITH_GNOME)
65
USE_GNOME+=	libglade
66
.else
46
LIB_DEPENDS+=	glade.4:${PORTSDIR}/devel/libglade
67
LIB_DEPENDS+=	glade.4:${PORTSDIR}/devel/libglade
47
BUILD_DEPENDS+=	libglade-config:${PORTSDIR}/devel/libglade
68
BUILD_DEPENDS+=	libglade-config:${PORTSDIR}/devel/libglade
48
.else
49
USE_GNOME+=	libglade
50
.endif
69
.endif
51
CONFIGURE_ENV+=	USE_GLADE=1
70
CONFIGURE_ENV+=	USE_GLADE=1
71
.else
72
PLIST_SUB+=	GLADE="@comment "
73
SFXGLADE=	-noglade
52
.endif
74
.endif
53
75
54
USE_GMAKE=	yes
76
post-extract:
55
USE_GNOME+=	gtk12
77
	@${REINPLACE_CMD} -E \
56
ALL_TARGET=	all opt
78
		-e 's,(${PATTERN}+.*lablgtkto),\1\$${BSD_INSTALL_SCRIPT} \3,' \
57
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
79
		-e 's,(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \
58
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
80
		-e 's,(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_SCRIPT} \3,' \
59
CONFIGURE_ENV+=	USE_DOTOPT=1 GTK_CONFIG=${GTK_CONFIG}
81
		-e 's,(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \
60
CONFIGURE_ENV+=	LIBDIR=${PREFIX}/lib/ocaml BINDIR=${PREFIX}/bin
82
		-e 's,(${PATTERN}+.*DLLDIR),\1\$${BSD_INSTALL_DATA} \3,' \
61
CONFIGURE_ENV+=	INSTALLDIR=${PREFIX}/lib/ocaml/lablgtk
83
		${WRKSRC}/src/Makefile
84
85
	@${REINPLACE_CMD} -E -e '/^DLLDIR[[:space:]]*=[[:space:]]*.*/d' \
86
		${WRKSRC}/Makefile
62
87
63
do-configure:
88
do-configure:
64
	@(cd ${WRKSRC} && ${GMAKE} configure ${CONFIGURE_ENV})
89
	@(cd ${WRKSRC} && ${GMAKE} configure ${CONFIGURE_ENV})
Lines 71-81 Link Here
71
	@${MKDIR} ${EXAMPLESDIR}/GL
96
	@${MKDIR} ${EXAMPLESDIR}/GL
72
	@${INSTALL_DATA} ${WRKSRC}/examples/GL/* ${EXAMPLESDIR}/GL
97
	@${INSTALL_DATA} ${WRKSRC}/examples/GL/* ${EXAMPLESDIR}/GL
73
.endif
98
.endif
74
.if !defined(WITHOUT_GNOME)
99
.if defined(WITH_GNOME)
75
	@${MKDIR} ${EXAMPLESDIR}/xmhtml
100
	@${MKDIR} ${EXAMPLESDIR}/xmhtml
76
	@${INSTALL_DATA} ${WRKSRC}/examples/xmhtml/* ${EXAMPLESDIR}/xmhtml
101
	@${INSTALL_DATA} ${WRKSRC}/examples/xmhtml/* ${EXAMPLESDIR}/xmhtml
77
.endif
102
.endif
78
.if !defined(WITHOUT_GLADE)
103
.if defined(WITH_GLADE)
79
	@${MKDIR} ${EXAMPLESDIR}/glade
104
	@${MKDIR} ${EXAMPLESDIR}/glade
80
	@${INSTALL_DATA} ${WRKSRC}/examples/glade/* ${EXAMPLESDIR}/glade
105
	@${INSTALL_DATA} ${WRKSRC}/examples/glade/* ${EXAMPLESDIR}/glade
81
.endif
106
.endif
Lines 84-87 Link Here
84
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
109
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
85
.endif
110
.endif
86
111
87
.include <bsd.port.mk>
112
	@${INSTALL_DATA} ${WRKSRC}/META ${PREFIX}/lib/ocaml/${PORTNAME}
113
114
.include <bsd.port.post.mk>
(-)/var/tmp/ocaml-lablgtk/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (lablgtk-1.2.5.tar.gz) = 92628c756d2d3e2706b59d0382f23c19
1
MD5 (lablgtk-1.2.7.tar.gz) = 73a797e3a459190fdcaa8288935f6fb9
2
SHA256 (lablgtk-1.2.5.tar.gz) = bfc8dd0ede2bc418e2ddf110619dd8cbf3e75443ae5f4f27bca7f765521d6e6b
2
SHA256 (lablgtk-1.2.7.tar.gz) = a83939042872397b1c14715c778566249775aaa16d2d24af4832ec13bebf3d3e
3
SIZE (lablgtk-1.2.5.tar.gz) = 463565
3
SIZE (lablgtk-1.2.7.tar.gz) = 468443
(-)/var/tmp/ocaml-lablgtk/pkg-plist (-56 / +59 lines)
Lines 4-9 Link Here
4
%%GNOME%%lib/ocaml/stublibs/dlllablgnome.so
4
%%GNOME%%lib/ocaml/stublibs/dlllablgnome.so
5
lib/ocaml/stublibs/dlllablgtk.so
5
lib/ocaml/stublibs/dlllablgtk.so
6
%%GL%%lib/ocaml/stublibs/dlllablgtkgl.so
6
%%GL%%lib/ocaml/stublibs/dlllablgtkgl.so
7
lib/ocaml/lablgtk/META
7
lib/ocaml/lablgtk/gBin.cmi
8
lib/ocaml/lablgtk/gBin.cmi
8
lib/ocaml/lablgtk/gBin.cmx
9
lib/ocaml/lablgtk/gBin.cmx
9
lib/ocaml/lablgtk/gBin.ml
10
lib/ocaml/lablgtk/gBin.ml
Lines 207-266 Link Here
207
lib/ocaml/lablgtk/varcc
208
lib/ocaml/lablgtk/varcc
208
lib/ocaml/lablgtk/wrappers.h
209
lib/ocaml/lablgtk/wrappers.h
209
lib/ocaml/lablgtk/xml_lexer.mli
210
lib/ocaml/lablgtk/xml_lexer.mli
210
%%GL%%share/examples/ocaml/lablgtk/GL/gears.ml
211
%%GL%%%%EXAMPLESDIR%%/GL/gears.ml
211
%%GL%%share/examples/ocaml/lablgtk/GL/morph3d.ml
212
%%GL%%%%EXAMPLESDIR%%/GL/morph3d.ml
212
%%GL%%share/examples/ocaml/lablgtk/GL/planet.ml
213
%%GL%%%%EXAMPLESDIR%%/GL/planet.ml
213
%%GL%%share/examples/ocaml/lablgtk/GL/scene.ml
214
%%GL%%%%EXAMPLESDIR%%/GL/scene.ml
214
%%GL%%share/examples/ocaml/lablgtk/GL/simple.ml
215
%%GL%%%%EXAMPLESDIR%%/GL/simple.ml
215
%%GL%%share/examples/ocaml/lablgtk/GL/tutorial-2.ml
216
%%GL%%%%EXAMPLESDIR%%/GL/tutorial-2.ml
216
%%GL%%share/examples/ocaml/lablgtk/GL/tutorial-3.ml
217
%%GL%%%%EXAMPLESDIR%%/GL/tutorial-3.ml
217
%%GL%%share/examples/ocaml/lablgtk/GL/tutorial-4.ml
218
%%GL%%%%EXAMPLESDIR%%/GL/tutorial-4.ml
218
%%GL%%share/examples/ocaml/lablgtk/GL/tutorial-5.ml
219
%%GL%%%%EXAMPLESDIR%%/GL/tutorial-5.ml
219
%%GLADE%%share/examples/ocaml/lablgtk/glade/glade_demo.ml
220
%%GLADE%%%%EXAMPLESDIR%%/glade/glade_demo.ml
220
%%GLADE%%share/examples/ocaml/lablgtk/glade/gladecalc.ml
221
%%GLADE%%%%EXAMPLESDIR%%/glade/gladecalc.ml
221
%%GLADE%%share/examples/ocaml/lablgtk/glade/project1.glade
222
%%GLADE%%%%EXAMPLESDIR%%/glade/project1.glade
222
%%GLADE%%share/examples/ocaml/lablgtk/glade/project2.glade
223
%%GLADE%%%%EXAMPLESDIR%%/glade/project2.glade
223
%%GNOME%%share/examples/ocaml/lablgtk/xmhtml/test.ml
224
%%GNOME%%%%EXAMPLESDIR%%/xmhtml/test.ml
224
share/examples/ocaml/lablgtk/image256x256.rgb
225
%%EXAMPLESDIR%%/image256x256.rgb
225
share/examples/ocaml/lablgtk/buttons.ml
226
%%EXAMPLESDIR%%/buttons.ml
226
share/examples/ocaml/lablgtk/calc.ml
227
%%EXAMPLESDIR%%/calc.ml
227
share/examples/ocaml/lablgtk/calendar.ml
228
%%EXAMPLESDIR%%/calendar.ml
228
share/examples/ocaml/lablgtk/clist.ml
229
%%EXAMPLESDIR%%/clist.ml
229
share/examples/ocaml/lablgtk/combo.ml
230
%%EXAMPLESDIR%%/combo.ml
230
share/examples/ocaml/lablgtk/counter.ml
231
%%EXAMPLESDIR%%/counter.ml
231
share/examples/ocaml/lablgtk/csview.ml
232
%%EXAMPLESDIR%%/csview.ml
232
share/examples/ocaml/lablgtk/dcalendar.ml
233
%%EXAMPLESDIR%%/dcalendar.ml
233
share/examples/ocaml/lablgtk/drawing.ml
234
%%EXAMPLESDIR%%/drawing.ml
234
share/examples/ocaml/lablgtk/editor.ml
235
%%EXAMPLESDIR%%/editor.ml
235
share/examples/ocaml/lablgtk/entry.ml
236
%%EXAMPLESDIR%%/entry.ml
236
share/examples/ocaml/lablgtk/events.ml
237
%%EXAMPLESDIR%%/events.ml
237
share/examples/ocaml/lablgtk/fifteen.ml
238
%%EXAMPLESDIR%%/fifteen.ml
238
share/examples/ocaml/lablgtk/fixed_editor.ml
239
%%EXAMPLESDIR%%/fixed_editor.ml
239
share/examples/ocaml/lablgtk/fixpoint.ml
240
%%EXAMPLESDIR%%/fixpoint.ml
240
share/examples/ocaml/lablgtk/giotest.ml
241
%%EXAMPLESDIR%%/giotest.ml
241
share/examples/ocaml/lablgtk/hello.ml
242
%%EXAMPLESDIR%%/hello.ml
242
share/examples/ocaml/lablgtk/image.ml
243
%%EXAMPLESDIR%%/image.ml
243
share/examples/ocaml/lablgtk/kaimono.ml
244
%%EXAMPLESDIR%%/kaimono.ml
244
share/examples/ocaml/lablgtk/label.ml
245
%%EXAMPLESDIR%%/label.ml
245
share/examples/ocaml/lablgtk/lissajous.ml
246
%%EXAMPLESDIR%%/lissajous.ml
246
share/examples/ocaml/lablgtk/nihongo.ml
247
%%EXAMPLESDIR%%/nihongo.ml
247
share/examples/ocaml/lablgtk/pousse.ml
248
%%EXAMPLESDIR%%/pixview.ml
248
share/examples/ocaml/lablgtk/progressbar.ml
249
%%EXAMPLESDIR%%/pousse.ml
249
share/examples/ocaml/lablgtk/radiobuttons.ml
250
%%EXAMPLESDIR%%/progressbar.ml
250
share/examples/ocaml/lablgtk/rpn.ml
251
%%EXAMPLESDIR%%/radiobuttons.ml
251
share/examples/ocaml/lablgtk/scrolledwin.ml
252
%%EXAMPLESDIR%%/rpn.ml
252
share/examples/ocaml/lablgtk/socket.ml
253
%%EXAMPLESDIR%%/scrolledwin.ml
253
share/examples/ocaml/lablgtk/testdnd.ml
254
%%EXAMPLESDIR%%/socket.ml
254
share/examples/ocaml/lablgtk/testgtk.ml
255
%%EXAMPLESDIR%%/testdnd.ml
255
share/examples/ocaml/lablgtk/testinput.ml
256
%%EXAMPLESDIR%%/testgtk.ml
256
share/examples/ocaml/lablgtk/tictactoe.ml
257
%%EXAMPLESDIR%%/testinput.ml
257
share/examples/ocaml/lablgtk/tron.ml
258
%%EXAMPLESDIR%%/tictactoe.ml
258
share/examples/ocaml/lablgtk/test.xpm
259
%%EXAMPLESDIR%%/tron.ml
259
%%PORTDOCS%%share/doc/ocaml/lablgtk/README
260
%%EXAMPLESDIR%%/test.xpm
261
%%PORTDOCS%%%%DOCSDIR%%/README
260
@dirrm lib/ocaml/lablgtk
262
@dirrm lib/ocaml/lablgtk
261
%%GL%%@dirrm share/examples/ocaml/lablgtk/GL
263
%%GL%%@dirrm %%EXAMPLESDIR%%/GL
262
%%GNOME%%@dirrm share/examples/ocaml/lablgtk/xmhtml
264
%%GNOME%%@dirrm %%EXAMPLESDIR%%/xmhtml
263
%%GLADE%%@dirrm share/examples/ocaml/lablgtk/glade
265
%%GLADE%%@dirrm %%EXAMPLESDIR%%/glade
264
@dirrm share/examples/ocaml/lablgtk
266
@dirrm %%EXAMPLESDIR%%
265
%%PORTDOCS%%@dirrm share/doc/ocaml/lablgtk
267
@dirrmtry share/examples/ocaml
266
%%PORTDOCS%%@dirrm share/doc/ocaml
268
%%PORTDOCS%%@dirrm %%DOCSDIR%%
269
%%PORTDOCS%%@dirrmtry share/doc/ocaml

Return to bug 101144