2008-06-22 00:13:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.38 2008/06/21 22:13:09 joerg Exp $
|
2003-04-30 01:47:45 +02:00
|
|
|
|
2008-01-04 15:05:05 +01:00
|
|
|
DISTNAME= otp_src_${DIST_VERSION_MAJOR}-${DIST_VERSION_MINOR}
|
2006-03-29 23:34:13 +02:00
|
|
|
PKGNAME= erlang-${ERLANG_VERSION}
|
2008-06-22 00:13:09 +02:00
|
|
|
PKGREVISION= 2
|
2003-04-30 01:47:45 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://www.erlang.org/download/
|
|
|
|
|
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
|
2003-04-30 01:47:45 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= erlang
|
|
|
|
|
2008-01-04 15:10:05 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2003-04-30 01:47:45 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-02-26 16:47:43 +01:00
|
|
|
OVERRIDE_DIRDEPTH= 4
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
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
|
|
|
|
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
|
|
|
|
2005-12-30 11:32:16 +01:00
|
|
|
PLIST_SRC= PLIST.common
|
|
|
|
|
2007-07-30 09:15:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CONFIGURE_ARGS+= --disable-sctp
|
|
|
|
.endif
|
|
|
|
|
2005-12-30 11:32:16 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
PLIST_SRC+= PLIST.common_end
|
|
|
|
|
2006-03-29 23:34:13 +02:00
|
|
|
.include "Makefile.versions"
|
|
|
|
|
2007-08-03 13:01:37 +02:00
|
|
|
post-install:
|
2008-01-04 15:10:05 +01:00
|
|
|
chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib/kernel-${VERSION.kernel}/examples
|
|
|
|
chmod -R go-w ${DESTDIR}${PREFIX}/lib/erlang/lib/ssl-${VERSION.ssl}/examples
|
|
|
|
rm ${DESTDIR}${PREFIX}/lib/erlang/lib/observer-${VERSION.observer}/priv/bin/*.bat
|
|
|
|
rm ${DESTDIR}${PREFIX}/lib/erlang/lib/webtool-${VERSION.webtool}/priv/bin/*.bat
|
2007-08-03 13:01:37 +02:00
|
|
|
|
2004-06-28 19:39:46 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2003-04-30 01:47:45 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|