aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gdc
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-07-25 23:05:33 +0800
committergarga <garga@FreeBSD.org>2005-07-25 23:05:33 +0800
commit08fde60c3f176dcb041bf87dc490382c59a6a9e1 (patch)
treeb8fd48146cef8c7f678d9bd78ad117bb657df1e8 /lang/gdc
parent9d705b318b766b92b470daa2f2f6fb071f408bc9 (diff)
downloadfreebsd-ports-gnome-08fde60c3f176dcb041bf87dc490382c59a6a9e1.tar.gz
freebsd-ports-gnome-08fde60c3f176dcb041bf87dc490382c59a6a9e1.tar.zst
freebsd-ports-gnome-08fde60c3f176dcb041bf87dc490382c59a6a9e1.zip
Fix default include path.
PR: ports/84046 Submitted by: Masanori OZAWA <ozawa@ongs.co.jp> (maintainer) Approved by: flz (mentor)
Diffstat (limited to 'lang/gdc')
-rw-r--r--lang/gdc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gdc/Makefile b/lang/gdc/Makefile
index bb839e199fd0..d3ae895d0c55 100644
--- a/lang/gdc/Makefile
+++ b/lang/gdc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gdc
PORTVERSION= 0.15
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GCC} \
http://home.earthlink.net/~dvdfrdmn/d/:gdc
@@ -45,11 +46,12 @@ CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
.endif
GXX_INC=${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/${__GCC_VERSION}/include/c++/
+GDC_INC=${PREFIX}/include/d/${__GCC_VERSION}
CONFIGURE_ARGS+=--disable-nls --with-system-zlib \
--with-libiconv-prefix=${LOCALBASE} \
--with-gxx-include-dir=${GXX_INC} \
--disable-shared --prefix=${PREFIX} \
- --enable-languages=c,d,c++
+ --enable-languages=c,c++,d
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
GNU_CONFIGURE= yes
PLIST_SUB= __GCC_VER=${__GCC_VERSION} CONF_TARGET=${CONFIGURE_TARGET}
@@ -82,6 +84,9 @@ post-patch:
@${REINPLACE_CMD} -e \
's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
${GCCDIR}/version.c
+ @${REINPLACE_CMD} -e \
+ '/^gcc_d_include_dir/s|^.*$$|gcc_d_include_dir = ${GDC_INC}|' \
+ ${GCCDIR}/d/Make-lang.in
post-build:
.ifdef WITH_UNITTEST