# $FreeBSD$ PORTNAME= erlang PORTVERSION= 19.3.6.11 PORTREVISION= 1 PORTEPOCH= 1 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 \ patch-otp-19.3.6.1 patch-otp-19.3.6.2 patch-otp-19.3.6.3 \ patch-otp-19.3.6.4 patch-otp-19.3.6.5 patch-otp-19.3.6.6 \ patch-otp-19.3.6.7 patch-otp-19.3.6.8 patch-otp-19.3.6.9 \ patch-otp-19.3.6.10 patch-otp-19.3.6.11 MAINTAINER= erlang@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 CONFIGURE_ARGS+=--enable-threads --without-odbc --without-javac --with-wx-config=${WX_CONFIG} USE_WX= 2.8+ WX_COMPS= wx contrib 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 ${MV} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET}/*.so ${WRKSRC}/lib/wx/priv ${RMDIR} ${WRKSRC}/lib/wx/priv/${CONFIGURE_TARGET} 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} .include