diff options
author | John Marino <marino@FreeBSD.org> | 2013-07-21 14:12:28 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-07-21 14:12:28 +0000 |
commit | dd06b54dc649e969e616331f69b89181f238c8f4 (patch) | |
tree | 76cdb27be2e94fdd7edc900822f8a4609cd6ba79 /lang/gnat_util/Makefile | |
parent | 19c11e107b6186569c06fc0d5c7f39321bb8b426 (diff) |
Notes
Diffstat (limited to 'lang/gnat_util/Makefile')
-rw-r--r-- | lang/gnat_util/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lang/gnat_util/Makefile b/lang/gnat_util/Makefile new file mode 100644 index 000000000000..25d0b7b64a5e --- /dev/null +++ b/lang/gnat_util/Makefile @@ -0,0 +1,46 @@ +# Created by: John Marino <marino@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= gnat_util +PORTVERSION= ${SNAPSHOT} +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_GCC} +MASTER_SITE_SUBDIR= releases/gcc-${GCC_VERSION} +DISTNAME= gcc-${GCC_VERSION} + +MAINTAINER= marino@FreeBSD.org +COMMENT= Library used to build GNAT tools such as ASIS + +USES= ada +USE_BZIP2= yes +DISTINFO_FILE= ${.CURDIR}/../gcc-aux/distinfo +WRKSRC= ${WRKDIR}/${PORTNAME} +DESTINY= ${WRKDIR}/destino +MAKE_ENV= DESTDIR=${DESTINY} \ + MAKEOBJDIR=${WRKSRC}/obj + +.include "${.CURDIR}/Makefile.sources" +.include "${.CURDIR}/../gcc-aux/Makefile.version" +.include <bsd.port.pre.mk> + +post-extract: + @${MKDIR} ${WRKSRC}/obj +.for F in Makefile gnat_util.gpr sdefault_adb.gnat_util + @${CP} ${FILESDIR}/${F} ${WRKSRC}/ +.endfor +.for F in ${GNAT_SRCS} + @${CP} ${WRKDIR}/${DISTNAME}/gcc/ada/${F} ${WRKSRC}/ +.endfor + +post-install: + ${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/ + @cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \ + ${SORT} > ${WRKDIR}/PLIST.all + @cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | \ + ${SORT} -r | ${SED} -e '/lib\/gnat$$/d' -e 's/^/@dirrm /g' \ + >> ${WRKDIR}/PLIST.all + @echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all + @${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST} + +.include <bsd.port.post.mk> + |