freebsd-ports/x11-toolkits/ocaml-labltk/Makefile
Guido Falsi cb214a8a7b Objective Caml interface to Tk
LablTk is an interface to the Tcl/Tk GUI framework. It allows to
develop GUI applications in a speedy and type safe way. A legacy
Camltk interface is included. The OCamlBrowser library viewer is
also part of this project.

WWW: https://forge.ocamlcore.org/projects/labltk/

PR:		195737
Submitted by:	Michael Grunewald <michipili at gmail.com>
2015-05-04 15:39:41 +00:00

39 lines
1 KiB
Makefile

# Created by: Michael Grünewald <michipili@gmail.com>
# $FreeBSD$
PORTNAME= labltk
PORTVERSION= 8.06.0
CATEGORIES= x11-toolkits
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1455/
PKGNAMEPREFIX= ocaml-
MAINTAINER= michipili@gmail.com
COMMENT= Objective Caml interface to Tk
LICENSE= LGPL20
USES= gmake tk:84,85
HAS_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
MAKE_ENV+= STAGEDIR="${STAGEDIR}"
USE_OCAML= yes
ALL_TARGET= all opt
post-patch:
@${FIND} ${WRKSRC} -name 'Makefile*' | ${XARGS} ${REINPLACE_CMD} \
-e 's/$$(INSTALLDIR)/$$(STAGEDIR)$$(INSTALLDIR)/g' \
-e 's/$$(INSTALLBINDIR)/$$(STAGEDIR)$$(INSTALLBINDIR)/g' \
-e 's/$$(STUBLIBDIR)/$$(STAGEDIR)$$(STUBLIBDIR)/g' \
-e 's/mkdir /& -p /g'
@${REINPLACE_CMD} -e 's|%%SCRIPTBASE%%|${PREFIX}/lib/ocaml/labltk/|g' \
${WRKSRC}/lib/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs
post-install:
${INSTALL_DATA} ${WRKSRC}/support/META ${STAGEDIR}${PREFIX}/lib/ocaml/${PORTNAME}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs/dlllabltk.so
.include <bsd.port.mk>