aboutsummaryrefslogtreecommitdiff
path: root/lang/sdcc/Makefile
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2012-08-28 12:02:30 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2012-08-28 12:02:30 +0000
commit98c91dc6d26aaac1bce7c62326221e758aad7448 (patch)
treea63dd69346ec47fb47c9d9bb38aa67c94ace02c5 /lang/sdcc/Makefile
parent5c34dc192f9eb701a65468cc840f8e662728b2ea (diff)
downloadports-98c91dc6d26aaac1bce7c62326221e758aad7448.tar.gz
ports-98c91dc6d26aaac1bce7c62326221e758aad7448.zip
Notes
Diffstat (limited to 'lang/sdcc/Makefile')
-rw-r--r--lang/sdcc/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/sdcc/Makefile b/lang/sdcc/Makefile
index df124f733b22..3c72db132b96 100644
--- a/lang/sdcc/Makefile
+++ b/lang/sdcc/Makefile
@@ -8,6 +8,7 @@
PORTNAME= sdcc
PORTVERSION= 3.2.0
DISTVERSIONPREFIX= src-
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= SF
@@ -18,7 +19,7 @@ LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/boost/graph/adjacency_list.hpp:${PORTSDIR}/devel/boost-libs
-CONFLICTS= sdcc-3.1.*
+CONFLICTS= sdcc-[0-9]*
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
@@ -34,15 +35,16 @@ Z80_DESC= Zilog Z80/Z180/GBZ80, Rabbit 2000/3000/3000A
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ARGS= --disable-avr --disable-install-libbfd --enable-new-pics
+CONFIGURE_ARGS= --disable-avr --disable-install-libbfd
CONFIGURE_ENV= ARCH=""
WRKSRC= ${WRKDIR}/sdcc
-ONLY_FOR_ARCHS= i386
-ONLY_FOR_ARCHS_REASON= Project only supports FreeBSD on i386
-
.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
+.endif
+
.if ${PORT_OPTIONS:MDEVLIB}
PLIST_SUB+= DEVLIB=""
.else