# Created by: gahr # $FreeBSD$ PORTNAME= hla PORTVERSION= 1.103 CATEGORIES= lang MASTER_SITES= http://webster.cs.ucr.edu/AsmTools/HLA/HLAv${PORTVERSION}/:src \ http://www.gahr.ch/FreeBSD/HLA/:extra DISTFILES= ${PORTNAME}src${EXTRACT_SUFX}:src \ bsd.hla.tar.gz:src \ lex.yy.c:extra DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${PORTNAME}src${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= High Level Assembly USES= bison zip:infozip WRKSRC= ${WRKDIR}/hlasrc/trunk/trunk MAKEFILE= makefile.bsd ALL_TARGET= hlaparse hla SUB_FILES= pkg-message ONLY_FOR_ARCHS= i386 OPTIONS_DEFINE= DOCS TEST .include .if ${PORT_OPTIONS:MDOCS} || make(makesum) DISTFILES+= HLARef_html${EXTRACT_SUFX}:src \ HLAstdlib_html${EXTRACT_SUFX}:src .endif .if ${PORT_OPTIONS:MTEST} || make(makesum) DISTFILES+= hello.hla:extra .endif post-extract: ${MKDIR} ${WRKDIR}/stdlib && \ ${TAR} -zxf ${_DISTDIR}/bsd.${PORTNAME}.tar.gz -C ${WRKDIR}/stdlib ${CP} ${_DISTDIR}/lex.yy.c ${WRKSRC} .if ${PORT_OPTIONS:MTEST} ${CP} ${_DISTDIR}/hello.hla ${WRKSRC} .endif .if ${PORT_OPTIONS:MDOCS} (${MKDIR} ${WRKDIR}/HLAstdlib && \ ${UNZIP_CMD} -q ${_DISTDIR}/HLAstdlib_html${EXTRACT_SUFX} -d ${WRKDIR}/HLAstdlib \ ) (${MKDIR} ${WRKDIR}/HLAReference && \ ${UNZIP_CMD} -q ${_DISTDIR}/HLARef_html${EXTRACT_SUFX} -d ${WRKDIR}/HLAReference \ ) .endif post-patch: @${REINPLACE_CMD} -e '/flex/d; s|gcc|${CC}|; s|-O2|${CFLAGS}|; \ s|-static-libgcc||' ${WRKSRC}/makefile.bsd do-configure: (cd ${WRKSRC} && bison -o hlaparse.c hlaparse.bsn) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hla ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/hlaparse ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKDIR}/stdlib/hla/hlalib/hlalib.a ${STAGEDIR}${PREFIX}/lib @${MKDIR} ${STAGEDIR}${PREFIX}/include/hla (cd ${WRKDIR}/stdlib/hla/include/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/hla) post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}/Reference ${STAGEDIR}${DOCSDIR}/stdlib (cd ${WRKDIR}/HLAReference && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/Reference) (cd ${WRKDIR}/HLAstdlib && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/stdlib) .endif .if ${PORT_OPTIONS:MTEST} @${ECHO_MSG} "" @${ECHO_MSG} "Testing HLA installation..." @( \ hlainc=${STAGEDIR}${PREFIX}/include/hla hlalib=${STAGEDIR}${PREFIX}/lib/hlalib.a \ PATH=${PATH}:${STAGEDIR}${PREFIX}/bin ${WRKSRC}/hla ${WRKSRC}/hello.hla && \ ${WRKSRC}/hello \ ) .endif .include minimist-1.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.mat2016-04-011-2/+2
* - Add LICENSE_FILEsunpoet2015-11-151-0/+2
* Make it so that the default Perl is always called perl5.mat2015-09-141-9/+9
* Change the way Perl modules are installed, update the default Perl to 5.18.mat2014-11-262-2/+1
* Cleanup plistbapt2014-10-201-1/+0
* - Add LICENSEsunpoet2013-10-232-8/+12
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1
* - Use single space after WWW:sunpoet2013-08-291-1/+1
* - Cleanup Makefile headersunpoet2013-08-221-5/+1
* - Remove leading indefinite article from COMMENTsunpoet2013-08-221-1/+1
* - Convert to new perl frameworksunpoet2013-08-211-1/+2
* - Pet portlintsunpoet2011-08-301-3/+4
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* - Use LOCAL/sunpoet as backup MASTER_SITESsunpoet2010-10-011-1/+1
* - Fix PLIST entrysunpoet2010-09-282-1/+2
* - Update MAINTAINER to my FreeBSD.org addresssunpoet2010-09-231-1/+1