mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# Created by: Michael Grünewald <michipili@gmail.com>
|
|
|
|
PORTNAME= labltk
|
|
PORTVERSION= 8.06.3
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= https://download.ocamlcore.org/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Objective Caml interface to Tk
|
|
|
|
LICENSE= LGPL20
|
|
|
|
USES= gmake tk
|
|
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>
|