2015-02-21 13:53:37 +01:00
|
|
|
PORTNAME= erlang
|
2019-04-10 12:23:25 +02:00
|
|
|
DISTVERSIONPREFIX= OTP-
|
2021-05-07 13:07:10 +02:00
|
|
|
DISTVERSION= 21.3.8.23
|
|
|
|
PORTREVISION= 0
|
2017-06-24 20:34:56 +02:00
|
|
|
PORTEPOCH= 1
|
2015-02-21 13:53:37 +01:00
|
|
|
CATEGORIES= lang parallel
|
|
|
|
PKGNAMESUFFIX= -wx
|
|
|
|
DIST_SUBDIR= erlang
|
2015-06-02 14:42:09 +02:00
|
|
|
|
2018-06-07 13:15:11 +02:00
|
|
|
MAINTAINER= erlang@FreeBSD.org
|
2015-02-21 13:53:37 +01:00
|
|
|
COMMENT= Erlang bindings for wxWindows
|
|
|
|
|
2015-12-20 00:23:08 +01:00
|
|
|
LICENSE= APACHE20
|
|
|
|
|
2019-05-27 14:34:09 +02:00
|
|
|
BUILD_DEPENDS= erlang>=21.3.8:lang/erlang
|
|
|
|
RUN_DEPENDS= erlang>=21.3.8:lang/erlang
|
2015-06-02 14:42:09 +02:00
|
|
|
|
2019-09-16 12:53:33 +02:00
|
|
|
USES= autoreconf:build gl gmake perl5 xorg
|
2019-04-10 12:23:25 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_PROJECT= otp
|
|
|
|
USE_GL= gl glu
|
|
|
|
USE_PERL5= build
|
2019-07-29 00:25:20 +02:00
|
|
|
USE_WX= 3.1+
|
2015-02-21 13:53:37 +01:00
|
|
|
|
2019-07-29 00:25:20 +02:00
|
|
|
WX_COMPS= wx
|
2015-02-21 13:53:37 +01:00
|
|
|
|
2019-04-10 12:23:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2021-04-08 09:58:18 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2015-02-21 13:53:37 +01:00
|
|
|
|
2019-04-14 00:11:42 +02:00
|
|
|
WX_APPS= wx debugger et observer
|
2015-02-21 13:53:37 +01:00
|
|
|
|
2021-04-08 09:58:18 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads \
|
|
|
|
--with-wx-config=${WX_CONFIG} \
|
|
|
|
--without-javac \
|
|
|
|
--without-odbc
|
2015-02-21 13:53:37 +01:00
|
|
|
|
2019-04-10 12:23:25 +02:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ./otp_build autoconf
|
2015-02-21 13:53:37 +01:00
|
|
|
|
|
|
|
do-build:
|
2019-04-10 12:23:25 +02:00
|
|
|
.for app in wx debugger et observer
|
2019-04-14 00:11:42 +02:00
|
|
|
cd ${WRKSRC}/lib/${app} && ${SETENV} ERL_LIBS=${WRKSRC}/lib ${GMAKE} ERL_TOP=${WRKSRC} TARGET=${CONFIGURE_TARGET}
|
2019-04-10 12:23:25 +02:00
|
|
|
.endfor
|
2015-02-21 13:53:37 +01:00
|
|
|
${STRIP_CMD} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/erl_gl.so
|
|
|
|
${STRIP_CMD} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/wxe_driver.so
|
2017-10-25 15:26:54 +02:00
|
|
|
${MV} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/*.so ${WRKSRC}/lib/wx/priv
|
|
|
|
${RMDIR} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}
|
2015-02-21 13:53:37 +01:00
|
|
|
|
|
|
|
do-install:
|
2019-04-14 00:11:42 +02:00
|
|
|
.for app in ${WX_APPS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${app}-$$(${CUT} -w -f3 ${WRKSRC}/lib/${app}/vsn.mk)
|
2019-04-10 12:23:25 +02:00
|
|
|
${FIND} ${WRKSRC}/lib/${app} -type d -empty -delete
|
|
|
|
.for dir in src include priv ebin
|
|
|
|
cd ${WRKSRC}/lib/${app} && if [ -d ${dir} ]; then \
|
2019-04-14 00:11:42 +02:00
|
|
|
${COPYTREE_SHARE} ${dir} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${app}-$$(${CUT} -w -f3 vsn.mk); \
|
2019-04-10 12:23:25 +02:00
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
.endfor
|
2016-10-25 10:59:02 +02:00
|
|
|
|
2015-02-21 13:53:37 +01:00
|
|
|
.include <bsd.port.mk>
|