2008-07-16 22:42:13 +00:00
|
|
|
# New ports collection Makefile for: seed7
|
|
|
|
# Date created: 16 July 2008
|
|
|
|
# Whom: gahr
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= seed7
|
2009-08-25 13:43:47 +00:00
|
|
|
DISTVERSION= 05_20090816
|
2008-07-16 22:42:13 +00:00
|
|
|
CATEGORIES= lang
|
2009-08-27 15:04:16 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}.tgz
|
2008-07-16 22:42:13 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
|
|
COMMENT= A high-level, extensible programming language
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_XORG= x11
|
|
|
|
|
2009-07-08 15:03:54 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
2008-07-16 22:42:13 +00:00
|
|
|
MAKEFILE= makefile
|
|
|
|
ALL_TARGET= hi
|
|
|
|
|
|
|
|
post-patch:
|
2008-07-31 05:45:17 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;\
|
|
|
|
s|`pwd`|${PREFIX}/lib/${PORTNAME}|g;\
|
|
|
|
s|-lX11|$${LFLAGS} -lX11|g' \
|
2008-07-16 22:42:13 +00:00
|
|
|
${WRKSRC}/makefile
|
2008-07-31 05:45:17 +00:00
|
|
|
${REINPLACE_CMD} -i '' -e 's|./hi|${PREFIX}/bin/hi|g' \
|
|
|
|
${WRKSRC}/../prg/chk_all.sd7
|
2008-07-16 22:42:13 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
(cd ${WRKSRC} && ${GMAKE} depend)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hi ${PREFIX}/bin
|
|
|
|
${INSTALL} -d ${PREFIX}/lib/${PORTNAME}
|
|
|
|
(cd ${WRKSRC}/../lib && ${COPYTREE_SHARE} \* ${PREFIX}/lib/${PORTNAME})
|
2008-07-31 05:45:17 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/s7_comp.a ${PREFIX}/lib/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/s7_data.a ${PREFIX}/lib/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/seed7_05.a ${PREFIX}/lib/${PORTNAME}
|
2008-07-16 22:42:13 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL} -d ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${INSTALL} -d ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/../prg && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
|
|
|
.endif
|
|
|
|
|
2008-07-31 05:45:17 +00:00
|
|
|
test: install
|
|
|
|
@echo ""
|
|
|
|
@echo "Testing the ${PORTNAME} installation"
|
|
|
|
@(cd ${WRKSRC}/../prg && ${PREFIX}/bin/hi chk_all)
|
|
|
|
|
2008-07-16 22:42:13 +00:00
|
|
|
.include <bsd.port.mk>
|