summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorshannonjr <shannonjr@pkgsrc.org>2004-05-28 22:30:50 +0000
committershannonjr <shannonjr@pkgsrc.org>2004-05-28 22:30:50 +0000
commit42165e366923e4df523f3478a1dc4c94ae956952 (patch)
treee30902f707117e4b4c89d3d4a71b9d8611455940 /lang
parent5090ffc5c258976df94545dda1b62fb4b6ade298 (diff)
downloadpkgsrc-42165e366923e4df523f3478a1dc4c94ae956952.tar.gz
pkg/23871 Ada runtime is not relocatable (same as gcc Bug ada/12950)
part 2/2
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc3-ada/Makefile4
-rw-r--r--lang/gcc3-ada/buildlink3.mk36
2 files changed, 38 insertions, 2 deletions
diff --git a/lang/gcc3-ada/Makefile b/lang/gcc3-ada/Makefile
index d8cc5fbde82..2f29fe2b978 100644
--- a/lang/gcc3-ada/Makefile
+++ b/lang/gcc3-ada/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2004/05/22 17:48:21 abs Exp $
+# $NetBSD: Makefile,v 1.12 2004/05/28 22:30:50 shannonjr Exp $
PKGNAME= gcc3${GCC3_PKGMODIF}-ada-${GCC_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= GNU Compiler Collection, v3 - Ada compiler
INFO_FILES= gnat_ug_unx.info gnat_ug_vms.info gnat_ug_vxw.info
diff --git a/lang/gcc3-ada/buildlink3.mk b/lang/gcc3-ada/buildlink3.mk
new file mode 100644
index 00000000000..ac6cacfab02
--- /dev/null
+++ b/lang/gcc3-ada/buildlink3.mk
@@ -0,0 +1,36 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/05/28 22:30:50 shannonjr Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GCC3_ADA_BUILDLINK3_MK:= ${GCC3_ADA_BUILDLINK3_MK}+
+BUILDLINK_PREFIX.gcc3-ada:=${LOCALBASE}/gcc3
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= gcc3-ada
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngcc3-ada}
+BUILDLINK_PACKAGES+= gcc3-ada
+
+.if !empty(GCC3_ADA_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gcc3-ada+= gcc3-ada>=3.3.3
+BUILDLINK_PKGSRCDIR.gcc3-ada?= ../../lang/gcc3-ada
+BUILDLINK_ENV+= ADAC=${LOCALBASE}/gcc3/bin/gcc
+_GCC_ARCHDIR!= ${DIRNAME} `${LOCALBASE}/gcc3/bin/gcc --print-libgcc-file-name`
+. if empty(_GCC_ARCHDIR:M*not_found*)
+BUILDLINK_LIBDIRS.gcc3-ada+= lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-ada}\///}
+BUILDLINK_LIBDIRS.gcc3-ada+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-ada}\///}/adalib
+BUILDLINK_INCDIRS.gcc3-ada+= include ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-ada}\///}/adainclude
+. endif
+.endif # GCC3_ADA_BUILDLINK3_MK
+
+BUILDLINK_PKGSRCDIR.gcc3-ada?= ../../wip/gcc3-ada
+BUILDLINK_FILES_CMD.gcc3-ada= (cd ${BUILDLINK_PREFIX.gcc3-ada} && \
+ ${FIND} bin libexec lib \( -type file -o -type link \) -print)
+BUILDLINK_TRANSFORM.gcc3-ada= -e s:\buildlink:buildlink/gcc3:
+
+BUILDLINK_DEPMETHOD.gcc3-ada?= build
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}