diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-11-25 00:17:28 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-11-25 00:17:28 +0000 |
commit | bd902f794fbf2bd3edb125b868ae4b8e2d1d2de4 (patch) | |
tree | 7342a0a36b00a1aebcb548ebe733fcb29c35c316 /devel/gecc/Makefile | |
parent | Upgrade to 5.0.10. (diff) |
Add preliminary port of gecc.
Diffstat (limited to 'devel/gecc/Makefile')
-rw-r--r-- | devel/gecc/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/devel/gecc/Makefile b/devel/gecc/Makefile new file mode 100644 index 000000000000..d6f971dab7a5 --- /dev/null +++ b/devel/gecc/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: gecc +# Date created: 2002-11-07 +# Whom: trevor +# +# $FreeBSD$ +# + +PORTNAME= gecc +PORTVERSION= 20021119 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gecc + +MAINTAINER= trevor@FreeBSD.org + +.include <bsd.port.pre.mk> +.if ${OSVERSION} < 500039 +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +BROKEN= "only works as a wrapper" +.else +BROKEN= "getopt_long() problems" +.endif + +BINS= gecc geccd +DOCS= AUTHORS COPYING ChangeLog NEWS TODO +DOCDIR= share/doc/${PORTNAME} +.if ${OSVERSION} < 500039 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" +.endif +GNU_CONFIGURE= yes +PLIST= ${WRKDIR}/pkg-plist +USE_PYTHON= yes +USE_REINPLACE= yes +REINPLACE_ARGS= -i'' -E + +post-extract: + ${CP} ${FILESDIR}/README ${FILESDIR}/dashboard.h ${WRKSRC} + ${REINPLACE_CMD} "s=usr/bin=${LOCALBASE}/bin=g" ${WRKSRC}/geccmon + +pre-install: + ${RM} -f ${PLIST} +.for ii in ${BINS} geccmon + ${ECHO_CMD} bin/`${BASENAME} ${ii}` >> ${PLIST} +.endfor +.if !defined(NOPORTDOCS) +.for ii in ${DOCS} README + ${ECHO_CMD} ${DOCDIR}/${ii} >> ${PLIST} +.endfor + ${ECHO_CMD} "@dirrm " ${DOCDIR} >> ${PLIST} +.endif + +do-install: +.for ii in ${BINS} + ${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin +.endfor + ${INSTALL_SCRIPT} ${WRKSRC}/geccmon ${PREFIX}/bin +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/${DOCDIR} +.for ii in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${ii} ${PREFIX}/${DOCDIR} +.endfor + ${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/${DOCDIR} +.endif + +.include <bsd.port.post.mk> |