mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
4281cae870
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/
41 lines
782 B
Makefile
41 lines
782 B
Makefile
# 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>
|