Date: Sat, 9 Apr 2016 07:23:45 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412798 - in head/lang/dmd2: . files.bootstrap Message-ID: <201604090723.u397NjCA056080@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Sat Apr 9 07:23:45 2016 New Revision: 412798 URL: https://svnweb.freebsd.org/changeset/ports/412798 Log: Previously this port used library files packaged in the distribution tarball. However the latest tarball released by Digital Mars contains library files for only the O/S-architecture supported by the tarball. The port now builds all libraries and files required to build the port from source, installing the library needed to run compiled D programs. The advantage to this is that previously only i386 and amd64 were supported whereas now this port should install on all architectures. Added: head/lang/dmd2/files.bootstrap/ head/lang/dmd2/files.bootstrap/patch-src__phobos__posix.mak (contents, props changed) Modified: head/lang/dmd2/Makefile head/lang/dmd2/Makefile.bootstrap Modified: head/lang/dmd2/Makefile ============================================================================== --- head/lang/dmd2/Makefile Sat Apr 9 06:07:39 2016 (r412797) +++ head/lang/dmd2/Makefile Sat Apr 9 07:23:45 2016 (r412798) @@ -4,6 +4,7 @@ PORTNAME= dmd PKGNAMESUFFIX= 2 PORTVERSION= 2.071.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://ftp.digitalmars.com/ DISTNAME= dmd.${PORTVERSION} @@ -61,6 +62,10 @@ MAKE_ARGS+= DEBUG_FLAGS=-g\ -DDEBUG=1\ - MODULEDIR= ${PREFIX}/include/d/phobos2 post-patch: + @${MKDIR} ${WRKDIR}/dmd2/freebsd/bin32 \ + ${WRKDIR}/dmd2/freebsd/bin64 \ + ${WRKDIR}/dmd2/freebsd/lib32 \ + ${WRKDIR}/dmd2/freebsd/lib64 @${REINPLACE_CMD} -e "s|g++|${CXX}|" \ -e "s|/etc|${PREFIX}/etc|" \ ${WRKSRC}/posix.mak @@ -77,12 +82,23 @@ post-patch: ${WRKDIR}/dmd2/freebsd/bin${MODEL}/dmd.conf @${ECHO_CMD} >> ${WRKDIR}/dmd2/freebsd/bin${MODEL}/dmd.conf +make-phobos: + cd ${WRKSRC}/../phobos && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +make-druntime: + cd ${WRKSRC}/../druntime && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +make-dmd: + cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +do-build: make-dmd make-phobos make-druntime + do-install: ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man1/dmd.1 ${STAGEDIR}${MANPREFIX}/man/man1/dmd.1 ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man5/dmd.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/dmd.conf.5 ${INSTALL_DATA} ${WRKDIR}/dmd2/freebsd/bin${MODEL}/dmd.conf ${STAGEDIR}${PREFIX}/etc/dmd.conf.sample ${INSTALL_PROGRAM} ${WRKSRC}/dmd ${STAGEDIR}${PREFIX}/bin/dmd - ${INSTALL_DATA} ${WRKSRC}/../../freebsd/lib${MODEL}/libphobos2.a ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/../../src/phobos/generated/freebsd/release/${MODEL}/libphobos2.a ${STAGEDIR}${PREFIX}/lib ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKDIR}/dmd2/freebsd/bin32/dmd.conf ${STAGEDIR}${EXAMPLESDIR}/dmd32.conf ${INSTALL_DATA} ${WRKDIR}/dmd2/freebsd/bin64/dmd.conf ${STAGEDIR}${EXAMPLESDIR}/dmd64.conf Modified: head/lang/dmd2/Makefile.bootstrap ============================================================================== --- head/lang/dmd2/Makefile.bootstrap Sat Apr 9 06:07:39 2016 (r412797) +++ head/lang/dmd2/Makefile.bootstrap Sat Apr 9 07:23:45 2016 (r412798) @@ -11,7 +11,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} COMMENT= D 2.0 compiler bootstrap WRKDIR= ${BOOTDIR}/.host_dmd-2.067.1 -PATCHDIR= ${MASTERDIR}/bootstrap +PATCHDIR= ${MASTERDIR}/files.bootstrap USES= gmake zip MAKEFILE= posix.mak EXAMPLESDIR= ${PREFIX}/share/examples/dmd2 @@ -55,6 +55,17 @@ post-patch: ${WRKDIR}/dmd2/freebsd/bin${MODEL}/dmd.conf @${ECHO_CMD} >> ${WRKDIR}/dmd2/freebsd/bin${MODEL}/dmd.conf +make-phobos: + cd ${WRKSRC}/../phobos && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +make-druntime: + cd ${WRKSRC}/../druntime && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +make-dmd: + cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -f ${MAKEFILE} ${BUILD} + +do-build: make-dmd make-phobos make-druntime + do-install: ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man1/dmd.1 ${STAGEDIR}${MANPREFIX}/man/man1/dmd.1 ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man5/dmd.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/dmd.conf.5 Added: head/lang/dmd2/files.bootstrap/patch-src__phobos__posix.mak ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/dmd2/files.bootstrap/patch-src__phobos__posix.mak Sat Apr 9 07:23:45 2016 (r412798) @@ -0,0 +1,11 @@ +--- ../../src/phobos/posix.mak.orig 2016-04-08 22:04:38.300872000 -0700 ++++ ../../src/phobos/posix.mak 2016-04-08 22:11:33.637271000 -0700 +@@ -121,7 +121,7 @@ + DMD = wine dmd.exe + RUN = wine + else +- DMD = ../dmd/src/dmd ++ DMD = ../dmd/dmd + ifeq ($(OS),win32) + CC = dmc + else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604090723.u397NjCA056080>