blob: aa4e70f65ea6ee7ef3bcd04b20c467ed4df97e57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $FreeBSD$
PORTNAME= erlang
PORTVERSION= 19.3.6
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/:erlangorg \
http://erlang.stacken.kth.se/download/:erlangorg \
http://www.csd.uu.se/ftp/mirror/erlang/download/:erlangorg
PKGNAMESUFFIX= -wx
DISTNAME= otp_src_${ERL_RELEASE}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:erlangorg
DIST_SUBDIR= erlang
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= http://olgeni.olgeni.com/~olgeni/distfiles/ \
LOCAL/olgeni
PATCHFILES= patch-otp-19.3.1 patch-otp-19.3.2 patch-otp-19.3.3 \
patch-otp-19.3.4 patch-otp-19.3.5 patch-otp-19.3.6
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Erlang bindings for wxWindows
LICENSE= APACHE20
RUN_DEPENDS= ${LOCALBASE}/bin/erl:lang/erlang
WRKSRC= ${WRKDIR}/otp_src_${ERL_RELEASE}
PLIST_SUB= APP_VERSION=${APP_VERSION} \
CONFIGURE_TARGET=${CONFIGURE_TARGET}
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= DOCS
ERL_RELEASE= 19.3
USES= gmake
USE_GL= gl glu
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
APP_VERSION= 1.8
APP_DIR= ${PREFIX}/lib/erlang/lib/wx-${APP_VERSION}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${ERLANG_DOCS}:erlangorg
.endif
CONFIGURE_ARGS+=--enable-threads --without-odbc --without-javac --with-wx-config=${WX_CONFIG}
USE_WX= 2.8+
WX_COMPS= wx contrib
ERLANG_DOCS= otp_doc_html_${ERL_RELEASE}.tar.gz
do-build:
cd ${WRKSRC}/lib/wx && ${GMAKE} ERL_TOP=${WRKSRC} TARGET=${CONFIGURE_TARGET}
${STRIP_CMD} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/erl_gl.so
${STRIP_CMD} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/wxe_driver.so
do-install:
@${MKDIR} ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/wx && ${COPYTREE_SHARE} ebin ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/wx && ${COPYTREE_SHARE} include ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/wx && ${COPYTREE_SHARE} priv ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/wx && ${COPYTREE_SHARE} src ${STAGEDIR}${APP_DIR}
do-install-DOCS-on:
cd ${WRKSRC}/lib/wx && ${COPYTREE_SHARE} doc ${STAGEDIR}${APP_DIR}
${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_DOCS} \
-C ${STAGEDIR}${PREFIX}/lib/erlang lib/wx-${APP_VERSION}
@${FIND} ${STAGEDIR}${APP_DIR} -type d -empty -delete
.include <bsd.port.mk>
|