2013-01-02 22:29:56 +00:00
|
|
|
# Created by: alepulver
|
2007-12-17 18:24:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opendylan
|
2013-01-02 22:29:56 +00:00
|
|
|
DISTVERSION= 2012.1
|
2007-12-17 18:24:15 +00:00
|
|
|
CATEGORIES= lang
|
2011-12-21 13:36:44 +00:00
|
|
|
MASTER_SITES= http://opendylan.org/downloads/opendylan/${DISTVERSION}/
|
2013-01-02 22:29:56 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-x86-freebsd
|
2007-12-17 18:24:15 +00:00
|
|
|
|
2011-12-21 13:36:44 +00:00
|
|
|
MAINTAINER= hannes@mehnert.org
|
2007-12-17 18:24:15 +00:00
|
|
|
COMMENT= Open Dylan project native command-line compiler for Dylan
|
|
|
|
|
|
|
|
IA32_BINARY_PORT= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
2013-01-02 22:29:56 +00:00
|
|
|
WRAPPERS= dylan-compiler make-dylan-app dswank parser-compiler
|
2007-12-17 18:24:15 +00:00
|
|
|
|
2013-01-02 22:29:56 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2007-12-17 18:24:15 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for f in ${WRAPPERS}
|
|
|
|
@(${ECHO_CMD} "#!${SH}"; \
|
|
|
|
${ECHO_CMD} 'export LD_LIBRARY_PATH="${DATADIR}/lib"'; \
|
|
|
|
${ECHO_CMD} 'exec ${DATADIR}/bin/${f} "$$@"') > ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
.for d in bin databases lib sources
|
|
|
|
${CP} -r ${WRKSRC}/${d} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
.for f in ${WRAPPERS}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
|
|
|
|
.endfor
|
2013-01-02 22:29:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-12-17 18:24:15 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2011-12-21 13:36:44 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/License.txt ${DOCSDIR}
|
2007-12-17 18:24:15 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-02 22:29:56 +00:00
|
|
|
.include <bsd.port.mk>
|