2014-02-13 00:17:32 +01:00
|
|
|
# $NetBSD: Makefile,v 1.60 2014/02/12 23:18:05 tron Exp $
|
2003-04-30 01:47:45 +02:00
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
DISTNAME= otp_src_${DIST_VERSION_MAJOR}${DIST_VERSION_MINOR:D-${DIST_VERSION_MINOR}}
|
2014-02-13 00:17:32 +01:00
|
|
|
PKGREVISION= 2
|
2006-03-29 23:34:13 +02:00
|
|
|
PKGNAME= erlang-${ERLANG_VERSION}
|
2003-04-30 01:47:45 +02:00
|
|
|
CATEGORIES= lang
|
2009-12-15 13:07:57 +01:00
|
|
|
MASTER_SITES= http://www.erlang.org/download/
|
2003-04-30 01:47:45 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-08-31 03:01:55 +02:00
|
|
|
HOMEPAGE= http://www.erlang.org/
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Concurrent functional programming language
|
2011-04-14 21:34:07 +02:00
|
|
|
LICENSE= erlang-public-license
|
2003-04-30 01:47:45 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= erlang
|
2013-01-23 22:46:06 +01:00
|
|
|
WRKSRC= $(WRKDIR)/otp_src_${DIST_VERSION_MAJOR}
|
2003-04-30 01:47:45 +02:00
|
|
|
|
2008-08-19 13:04:52 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
2008-01-04 15:10:05 +01:00
|
|
|
|
2003-04-30 01:47:45 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2009-12-15 13:07:57 +01:00
|
|
|
USE_GNU_CONFIGURE_HOST= ${USE_CROSS_COMPILE}
|
2007-02-26 16:47:43 +01:00
|
|
|
OVERRIDE_DIRDEPTH= 4
|
2012-01-19 11:17:56 +01:00
|
|
|
USE_TOOLS+= gmake perl:run flex
|
2003-04-30 01:47:45 +02:00
|
|
|
|
2008-04-08 15:16:22 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl}
|
2005-07-12 11:40:46 +02:00
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
PTHREAD_OPTS+= require native
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
|
2013-12-24 16:00:44 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# have gcc without the necessary atomic ops?
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
|
|
|
|
|
|
|
|
# a machine without native ethread implementation?
|
|
|
|
.if empty(MACHINE_PLATFORM:M*i386) &&\
|
|
|
|
empty(MACHINE_PLATFORM:M*sparc) &&\
|
|
|
|
empty(MACHINE_PLATFORM:M*sparc64) &&\
|
|
|
|
empty(MACHINE_PLATFORM:M*powerpc) &&\
|
|
|
|
empty(MACHINE_PLATFORM:M*x86_64)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-native-ethr-impls\
|
|
|
|
--disable-smp-require-native-atomics
|
|
|
|
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
MAKE_ENV+= DESTDIR=${DESTDIR}
|
|
|
|
|
2011-04-25 22:58:24 +02:00
|
|
|
REPLACE_INTERPRETER+= escript
|
|
|
|
REPLACE.escript.old= .*escript
|
|
|
|
REPLACE.escript.new= ${LOCALBASE}/bin/escript
|
|
|
|
REPLACE_FILES.escript= \
|
|
|
|
lib/reltool/examples/display_args \
|
|
|
|
lib/reltool/examples/mnesia_core_dump_viewer \
|
|
|
|
lib/snmp/src/compile/snmpc.src \
|
|
|
|
lib/erl_docgen/priv/bin/codeline_preprocessing.escript \
|
|
|
|
lib/erl_docgen/priv/bin/xml_from_edoc.escript \
|
2011-05-26 22:19:43 +02:00
|
|
|
lib/snmp/bin/snmpc \
|
|
|
|
lib/diameter/bin/diameterc
|
2011-04-25 22:58:24 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= target
|
2004-09-13 15:43:30 +02:00
|
|
|
SUBST_STAGE.target= post-patch
|
|
|
|
SUBST_FILES.target= make/target.mk
|
|
|
|
SUBST_SED.target= -e "s|=.*config.guess)|= ${MACHINE_GNU_PLATFORM}|"
|
2006-03-29 23:33:16 +02:00
|
|
|
SUBST_MESSAGE.target= Fixing target name.
|
2004-09-13 15:43:30 +02:00
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
TEST_TARGET= tests
|
2011-04-14 21:34:07 +02:00
|
|
|
TEST_MAKE_FLAGS= ERL_TOP=${WRKSRC}
|
2009-12-15 13:07:57 +01:00
|
|
|
REPLACE_PERL+= make/make_emakefile
|
|
|
|
|
|
|
|
PLIST_SRC= PLIST
|
2005-12-30 11:32:16 +01:00
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
.if exists(${.CURDIR}/PLIST.${OPSYS})
|
|
|
|
PLIST_SRC+= ${.CURDIR}/PLIST.${OPSYS}
|
|
|
|
.endif
|
|
|
|
|
2007-07-30 09:15:36 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CONFIGURE_ARGS+= --disable-sctp
|
|
|
|
.endif
|
2009-12-15 13:07:57 +01:00
|
|
|
###
|
|
|
|
### XXX There may be others here.
|
|
|
|
###
|
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
|
|
|
|
CONFIGURE_ARGS+= --enable-kernel-poll
|
|
|
|
.endif
|
2007-07-30 09:15:36 +02:00
|
|
|
|
2005-12-30 11:32:16 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2006-03-29 23:34:13 +02:00
|
|
|
.include "Makefile.versions"
|
|
|
|
|
2009-12-15 13:07:57 +01:00
|
|
|
###
|
|
|
|
### Ensure this gets rebuilt.
|
|
|
|
###
|
|
|
|
pre-build:
|
|
|
|
${RUN} ${RM} -f ${WRKSRC}/lib/stdlib/ebin/dets_v9.beam
|
|
|
|
|
2007-08-03 13:01:37 +02:00
|
|
|
post-install:
|
2009-12-15 13:07:57 +01:00
|
|
|
chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib
|
|
|
|
|
2004-06-28 19:39:46 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2013-10-18 17:47:49 +02:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2004-06-28 19:39:46 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2003-04-30 01:47:45 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|