2004-03-06 17:08:04 +00:00
|
|
|
# Ports collection makefile for: treecc
|
|
|
|
# Date created: Wed Jul 11 00:45:15 EDT 2001
|
|
|
|
# Whom: Michael Johnson <ahze@ahze.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pnet
|
|
|
|
PORTVERSION= ${PNET_VERSION}
|
2004-03-10 23:55:50 +00:00
|
|
|
PORTREVISION= ${PNET_REVISION}
|
2004-03-06 17:08:04 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${PNET_MASTER_SITES}
|
2004-03-16 09:43:10 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PNET_MASTER_SITE_SUBDIR}
|
2004-03-06 17:08:04 +00:00
|
|
|
PKGNAMESUFFIX= base
|
|
|
|
|
2009-11-27 22:52:30 +00:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2004-03-06 17:08:04 +00:00
|
|
|
COMMENT= C\# compiler and runtime engine
|
|
|
|
|
|
|
|
BUILD_DEPENDS= treecc:${PORTSDIR}/lang/treecc
|
2006-02-20 20:23:47 +00:00
|
|
|
|
2005-06-08 17:48:16 +00:00
|
|
|
NOT_FOR_ARCHS= sparc64
|
2004-03-06 17:08:04 +00:00
|
|
|
|
2004-03-10 23:55:50 +00:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_XLIB= yes
|
|
|
|
.endif
|
|
|
|
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-03-06 17:08:04 +00:00
|
|
|
USE_GMAKE= yes
|
2009-06-30 03:00:11 +00:00
|
|
|
USE_LDCONFIG= yes
|
2009-11-18 22:39:55 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-03-06 17:08:04 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-threads=posix
|
|
|
|
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
CONFIGURE_ARGS+= --disable-optimizations
|
|
|
|
.endif
|
|
|
|
|
2009-06-30 03:00:11 +00:00
|
|
|
PORTDOCS= pnetasm.texi pnettools.info pnettools.texi texinfo.tex
|
2004-03-06 17:08:04 +00:00
|
|
|
INFO= pnettools
|
2005-06-02 16:45:01 +00:00
|
|
|
MAN1= clrwrap.1 csant.1 cscc.1 csdoc.1 csdoc2hier.1 csdoc2html.1 \
|
2004-03-15 01:42:58 +00:00
|
|
|
cscc-cpp.1 csdoc2texi.1 cssrc2html.1 ilalink.1 ilasm.1 ildasm.1 \
|
|
|
|
ildd.1 ilfind.1 ilgac.1 ilheader.1 ilnative.1 ilranlib.1 ilrun.1 \
|
|
|
|
ilsize.1 ilstrip.1 ilverify.1 resgen.1
|
2005-06-02 16:45:01 +00:00
|
|
|
MLINKS= ilasm.1 al.1 \
|
|
|
|
ar.1 cli-unknown-ar.1 \
|
|
|
|
cscc-cpp.1 cli-unknown-cpp.1 \
|
|
|
|
cscc.1 cli-unknown-gcc.1 \
|
|
|
|
ilranlib.1 cli-unknown-ranlib.1 \
|
|
|
|
ilsize.1 cli-unknown-size.1 \
|
|
|
|
ilstrip.1 cli-unknown-strip.1
|
2004-03-06 17:08:04 +00:00
|
|
|
|
2004-03-10 23:55:50 +00:00
|
|
|
.include "${.CURDIR}/../pnet/Makefile.pnet"
|
2004-03-06 17:08:04 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-09-09 02:40:55 +00:00
|
|
|
.if ${ARCH} != "i386" || ${OSVERSION} < 700000
|
2004-12-30 00:44:24 +00:00
|
|
|
CONFIGURE_ARGS+= --without-libffi \
|
|
|
|
--without-libgc
|
2005-06-06 18:30:24 +00:00
|
|
|
PLIST_SUB= I386="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= I386=""
|
2007-12-21 21:49:20 +00:00
|
|
|
|
2004-12-27 01:16:28 +00:00
|
|
|
.endif
|
|
|
|
|
2004-03-06 17:08:04 +00:00
|
|
|
post-everything::
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
@${ECHO_MSG} "Define optimized CFLAGS with"
|
|
|
|
@${ECHO_MSG} "WITH_OPTIMIZED_CFLAGS=yes"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|`$$CC -print-multi-os-directory 2>/dev/null`|elf|' \
|
2009-06-30 03:00:11 +00:00
|
|
|
${WRKSRC}/libffi/configure
|
2007-03-28 20:06:51 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/ltconfig \
|
|
|
|
${WRKSRC}/libgc/configure
|
2004-03-06 17:08:04 +00:00
|
|
|
|
2004-03-10 23:55:50 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for docfile in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-03-06 17:08:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|