2007-02-17 03:31:07 +00:00
|
|
|
# New ports collection makefile for: xds
|
|
|
|
# Date created: 29 January 2007
|
|
|
|
# Whom: coumarin@gmail.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xds
|
|
|
|
PORTVERSION= 2.51
|
|
|
|
CATEGORIES= lang linux devel
|
|
|
|
MASTER_SITES= http://www.excelsior-usa.com/download/xds25x/
|
|
|
|
DISTNAME= ${PORTNAME}-x86-${PORTVERSION:S/.//}-enduser-linux
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= coumarin@gmail.com
|
|
|
|
COMMENT= Excelsior Oberon-2/Modula-2 compiler, set up to produce native FreeBSD binaries
|
|
|
|
|
|
|
|
RESTRICTED= Excelsior forbids any redistribution
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
ONLY_FOR_ARCHS_REASON= uses assembly code
|
|
|
|
USE_LINUX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/lib/x86
|
|
|
|
|
|
|
|
MAKEFILE= lib.mkf
|
|
|
|
ALL_TARGET= #
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${BRANDELF} -t Linux ${WRKSRC}/bin/xc ${WRKSRC}/bin/h2d
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|%%XDSDIR%%|${PREFIX}/${PORTNAME}|g" \
|
|
|
|
${WRKSRC}/bin/xcwork
|
|
|
|
|
|
|
|
post-build:
|
2007-02-18 23:25:36 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} PATH=${WRKSRC}/bin ./apisyms-x86
|
2007-02-17 03:31:07 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${FIND} ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
|
|
|
|
@${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} \;
|
|
|
|
@cd ${WRKSRC} && ${CHMOD} 755 bin/xc bin/h2d bin/xcwork samples/buildx86
|
|
|
|
@cd ${WRKDIR} && ${CAT} ${FILESDIR}/plist | \
|
|
|
|
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@cd ${WRKDIR} && ${CAT} ${FILESDIR}/plist-doc | \
|
|
|
|
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}
|
|
|
|
.endif
|
|
|
|
.for f in xc xcwork
|
|
|
|
@${LN} -s ${PREFIX}/${PORTNAME}/bin/${f} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
@${LN} -s ${PREFIX}/${PORTNAME}/bin/h2d ${PREFIX}/bin/${PORTNAME}-h2d
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|