aboutsummaryrefslogblamecommitdiff
path: root/devel/syntax_tools/Makefile
blob: 6eea63d0d24b368d620d14644ca39c55be9e9a78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                          



                                                                       
                    
                      




                                                    
                                           


















                                                                      
                                                                            

                      
# New ports collection makefile for:	syntax_tools
# Date Created:				18 July 2003
# Whom:				 	olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	syntax_tools
PORTVERSION=	1.2
CATEGORIES=	devel
MASTER_SITES=	http://www.erlang.org/contrib/ \
		http://erlang.stacken.kth.se/contrib/ \
		http://www.csd.uu.se/ftp/mirror/erlang/contrib/ \
		http://www.serc.rmit.edu.au/mirrors/ose_mirror/contrib/
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	erlang

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Erlang modules for code manipulation

BUILD_DEPENDS=	erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS=	erl:${PORTSDIR}/lang/erlang

PLIST_SUB=	VERSION="${PORTVERSION}"

SYNTAX_TOOLS=	${PREFIX}/lib/erlang/lib/syntax_tools-${PORTVERSION}

post-extract:
		@${RM} ${WRKSRC}/demo.erl ${WRKSRC}/test.erl

do-build:
		@cd ${WRKSRC} && erlc *.erl

do-install:
		@${MKDIR} ${SYNTAX_TOOLS}
		@${MKDIR} ${SYNTAX_TOOLS}/src
		@${MKDIR} ${SYNTAX_TOOLS}/ebin
		@${MKDIR} ${SYNTAX_TOOLS}/doc
		@${INSTALL_DATA} ${WRKSRC}/*.erl ${SYNTAX_TOOLS}/src
		@${INSTALL_DATA} ${WRKSRC}/*.beam ${SYNTAX_TOOLS}/ebin
		@${INSTALL_DATA} ${WRKSRC}/doc/* ${SYNTAX_TOOLS}/doc
		@${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/syntax_tools

.include <bsd.port.mk>