aboutsummaryrefslogtreecommitdiffstats
path: root/lang/copper
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-02-08 01:20:12 +0800
committergahr <gahr@FreeBSD.org>2013-02-08 01:20:12 +0800
commit82013f4cc1b0a6d6b08e6cd1405f2e210419f25c (patch)
tree48b5f32b4834fa2df44ee26d369f69017529bad8 /lang/copper
parente744597123aeb982eacb2d6f30bc7d8db65a81e2 (diff)
downloadfreebsd-ports-gnome-82013f4cc1b0a6d6b08e6cd1405f2e210419f25c.tar.gz
freebsd-ports-gnome-82013f4cc1b0a6d6b08e6cd1405f2e210419f25c.tar.zst
freebsd-ports-gnome-82013f4cc1b0a6d6b08e6cd1405f2e210419f25c.zip
- New port: lang/copper
Copper an experimental programming language used to develop Code Browser 4. It is based on Zinc [http://tibleiz.net/zinc/] with some improvements such as genericity, multiple return values or variadic arguments. It does not generate intermediary C code anymore, it has two backends: a x86 COFF generator and LLVM (version 2.9). WWW: http://tibleiz.net/copper/
Diffstat (limited to 'lang/copper')
-rw-r--r--lang/copper/Makefile40
-rw-r--r--lang/copper/distinfo2
-rw-r--r--lang/copper/pkg-descr7
3 files changed, 49 insertions, 0 deletions
diff --git a/lang/copper/Makefile b/lang/copper/Makefile
new file mode 100644
index 000000000000..cd3663294b69
--- /dev/null
+++ b/lang/copper/Makefile
@@ -0,0 +1,40 @@
+# Created by: gahr
+# $FreeBSD$
+
+PORTNAME= copper
+PORTVERSION= 1.6
+CATEGORIES= lang
+MASTER_SITES= http://tibleiz.net/download/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= gahr@FreeBSD.org
+COMMENT= Another experimental programming language
+
+BUILD_DEPENDS= llc:${PORTSDIR}/devel/llvm
+
+ONLY_FOR_ARCHS= i386 amd64
+USE_GMAKE= yes
+USE_LINUX= f10
+MAKE_ARGS+= BACKEND=llvm
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+PLIST_FILES= bin/copper-llvm
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+ALL_TARGET= boot64 all
+.else
+ALL_TARGET= all
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
+ s|^CC|#CC|; \
+ s|x86_64|amd64|; \
+ s|g++|${CXX}|; \
+ s|-ldl||g; \
+ s|^LFLAGS=|LFLAGS=-L${LOCALBASE}/lib|' \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.post.mk>
diff --git a/lang/copper/distinfo b/lang/copper/distinfo
new file mode 100644
index 000000000000..bdec2676c73f
--- /dev/null
+++ b/lang/copper/distinfo
@@ -0,0 +1,2 @@
+SHA256 (copper-1.6-src.tar.gz) = 470716ca413cef881b311e89b5216d1cf8cdccfbff9c69a93b4a3322baedba2d
+SIZE (copper-1.6-src.tar.gz) = 571656
diff --git a/lang/copper/pkg-descr b/lang/copper/pkg-descr
new file mode 100644
index 000000000000..02891a0c953f
--- /dev/null
+++ b/lang/copper/pkg-descr
@@ -0,0 +1,7 @@
+Copper an experimental programming language used to develop Code Browser 4.
+It is based on Zinc [http://tibleiz.net/zinc/] with some improvements such
+as genericity, multiple return values or variadic arguments. It does not
+generate intermediary C code anymore, it has two backends: a x86 COFF
+generator and LLVM (version 2.9).
+
+WWW: http://tibleiz.net/copper/