aboutsummaryrefslogtreecommitdiffstats
path: root/lang/copper/Makefile
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/Makefile
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/Makefile')
-rw-r--r--lang/copper/Makefile40
1 files changed, 40 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>