Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2013 18:21:14 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r326677 - head/lang/sdcc
Message-ID:  <201309071821.r87ILEpW082993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sat Sep  7 18:21:14 2013
New Revision: 326677
URL: http://svnweb.freebsd.org/changeset/ports/326677

Log:
  Conflict with sdcc-devel and simplify options handling.

Added:
  head/lang/sdcc/pkg-plist   (contents, props changed)
Modified:
  head/lang/sdcc/Makefile

Modified: head/lang/sdcc/Makefile
==============================================================================
--- head/lang/sdcc/Makefile	Sat Sep  7 18:20:39 2013	(r326676)
+++ head/lang/sdcc/Makefile	Sat Sep  7 18:21:14 2013	(r326677)
@@ -2,6 +2,7 @@
 
 PORTNAME=	sdcc
 PORTVERSION=	3.3.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	src-
 CATEGORIES=	lang
 MASTER_SITES=	SF
@@ -13,10 +14,10 @@ LICENSE=	GPLv3
 
 BUILD_DEPENDS=	${LOCALBASE}/include/boost/graph/adjacency_list.hpp:${PORTSDIR}/devel/boost-libs
 
-CONFLICTS_INSTALL=	sdcc-[0-9]*
+CONFLICTS_INSTALL=	sdcc-[0-9]* sdcc-devel-[0-9]*
 GNU_CONFIGURE=	yes
+USES=		gmake
 USE_BZIP2=	yes
-USE_GMAKE=	yes
 
 OPTIONS_DEFINE= 	DEVLIB DOCS UCSIM
 OPTIONS_MULTI=		TARGETS
@@ -33,59 +34,30 @@ CPPFLAGS+=	-idirafter ${LOCALBASE}/inclu
 CONFIGURE_ARGS= --disable-avr --disable-install-libbfd --disable-werror \
 		--enable-new-pics docdir=${DOCSDIR}
 CONFIGURE_ENV=	ARCH=""
-PLIST_FILES=	bin/as2gbmap bin/makebin bin/packihx bin/sdar bin/sdcc	\
-		bin/sdcclib bin/sdcpp bin/sdld bin/sdld6808 bin/sdldgb	\
-		bin/sdldz80 bin/sdnm bin/sdobjcopy bin/sdranlib
 PORTDATA=	*
 PORTDOCS=	*
 WRKSRC= 	${WRKDIR}/sdcc-${DISTVERSION}
 
+OPTIONS_SUB=		yes
+DEVLIB_CONFIGURE_OFF=	--disable-device-lib
+HC08_CONFIGURE_OFF=	--disable-hc08 --disable-hc08-port		\
+			--disable-s08-port
+MCS51_CONFIGURE_OFF=	--disable-51 --disable-mcs51-port		\
+			--disable-ds390-port --disable-ds400-port
+PIC_BUILD_DEPENDS=	gputils>=1.0.0:${PORTSDIR}/devel/gputils
+PIC_RUN_DEPENDS=	gpasm:${PORTSDIR}/devel/gputils
+PIC_CONFIGURE_OFF=	--disable-pic14-port --disable-pic16-port
+UCSIM_CONFIGURE_OFF=	--disable-ucsim
+Z80_CONFIGURE_OFF=	--disable-z80 --disable-z80-port		\
+			--disable-z180-port --disable-gbz80-port	\
+			--disable-r2k-port --disable-r3ka-port
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "amd64"
 CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
 .endif
 
-.if empty(PORT_OPTIONS:MDEVLIB)
-CONFIGURE_ARGS+=--disable-device-lib
-.endif
-
-.if ${PORT_OPTIONS:MHC08}
-PLIST_FILES+=	bin/sdas6808 %%UCSIM%%bin/shc08
-.else
-CONFIGURE_ARGS+=--disable-hc08 --disable-hc08-port --disable-s08-port
-.endif
-
-.if ${PORT_OPTIONS:MMCS51}
-PLIST_FILES+=	bin/sdas390 bin/sdas8051 %%UCSIM%%bin/s51		\
-		%%UCSIM%%bin/sdcdb %%UCSIM%%bin/sdcdb.el		\
-		%%UCSIM%%bin/sdcdbsrc.el
-.else
-CONFIGURE_ARGS+=--disable-51 --disable-mcs51-port \
-		--disable-ds390-port --disable-ds400-port
-.endif
-
-.if ${PORT_OPTIONS:MPIC}
-BUILD_DEPENDS+= gputils>=1.0.0:${PORTSDIR}/devel/gputils
-RUN_DEPENDS+=	gpasm:${PORTSDIR}/devel/gputils
-.else
-CONFIGURE_ARGS+=--disable-pic14-port --disable-pic16-port
-.endif
-
-.if ${PORT_OPTIONS:MUCSIM}
-PLIST_SUB+=	UCSIM=""
-.else
-CONFIGURE_ARGS+=--disable-ucsim
-PLIST_SUB+=	UCSIM="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MZ80}
-PLIST_FILES+=	bin/sdasgb bin/sdasrab bin/sdasz80 %%UCSIM%%bin/sz80
-.else
-CONFIGURE_ARGS+=--disable-z80 --disable-z80-port --disable-z180-port \
-		--disable-gbz80-port --disable-r2k-port --disable-r3ka-port
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} '/install:/s/:.*/:/' \
 		${WRKSRC}/Makefile.in \

Added: head/lang/sdcc/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/sdcc/pkg-plist	Sat Sep  7 18:21:14 2013	(r326677)
@@ -0,0 +1,26 @@
+bin/as2gbmap
+bin/makebin
+bin/packihx
+%%UCSIM%%%%MCS51%%bin/s51
+bin/sdar
+%%MCS51%%bin/sdas390
+%%HC08%%bin/sdas6808
+%%MCS51%%bin/sdas8051
+%%Z80%%bin/sdasgb
+%%Z80%%bin/sdasrab
+%%Z80%%bin/sdasz80
+bin/sdcc
+bin/sdcclib
+%%UCSIM%%%%MCS51%%bin/sdcdb
+%%UCSIM%%%%MCS51%%bin/sdcdb.el
+%%UCSIM%%%%MCS51%%bin/sdcdbsrc.el
+bin/sdcpp
+bin/sdld
+bin/sdld6808
+bin/sdldgb
+bin/sdldz80
+bin/sdnm
+bin/sdobjcopy
+bin/sdranlib
+%%UCSIM%%%%HC08%%bin/shc08
+%%UCSIM%%%%Z80%%bin/sz80



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309071821.r87ILEpW082993>