Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2014 12:33:41 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359234 - in head/devel/tigcc: . files
Message-ID:  <201406251233.s5PCXfjv096921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Wed Jun 25 12:33:41 2014
New Revision: 359234
URL: http://svnweb.freebsd.org/changeset/ports/359234
QAT: https://qat.redports.org/buildarchive/r359234/

Log:
  - Stagify
  - Fix build on 10 and head
  - Assign maintainership to submitter
  
  PR:		190467
  Submitted by:	Naram Qashat <cyberbotx@cyberbotx.com>

Added:
  head/devel/tigcc/files/pkg-message.in
     - copied, changed from r359230, head/devel/tigcc/pkg-message
Deleted:
  head/devel/tigcc/pkg-message
Modified:
  head/devel/tigcc/Makefile

Modified: head/devel/tigcc/Makefile
==============================================================================
--- head/devel/tigcc/Makefile	Wed Jun 25 12:22:55 2014	(r359233)
+++ head/devel/tigcc/Makefile	Wed Jun 25 12:33:41 2014	(r359234)
@@ -3,7 +3,7 @@
 
 PORTNAME=	tigcc
 PORTVERSION=	0.96.b8
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=		${MASTER_SITE_GCC:S/$/:gcc/} \
 			${MASTER_SITE_GNU:S/$/:gas/} \
@@ -14,13 +14,18 @@ DISTFILES=		gcc-core-4.1-20060728.tar.bz
 			binutils-2.16.1.tar.bz2:gas \
 			tigcc_src.tar.bz2:tigcc
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	cyberbotx@cyberbotx.com
 COMMENT=	C compiler for the TI89, 92, and 92+ calculators
 
+USE_GCC=	any
 USES=		bison tar:bzip2 gmake
 NO_WRKSUBDIR=	yes
+SUB_FILES=	pkg-message
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 do-extract:
 	@${MKDIR} ${WRKSRC}
 	@${MKDIR} ${WRKSRC}/tigcc
@@ -33,96 +38,109 @@ post-patch:
 	@cd ${WRKSRC}/gnu/binutils-2.16.1; ${PATCH} -s -p1 < ${WRKSRC}/tigcc/sources/gcc/gas-2.16-tigcc-patch.diff
 	@cd ${WRKSRC}/gnu/gcc-4.1-20060728; ${PATCH} -s -p1 < ${WRKSRC}/tigcc/sources/gcc/gcc-4.1-tigcc-patch.diff
 	@cd ${WRKSRC}/gnu/gcc-4.1-20060728/gcc; ${ECHO} "echo all:" > mklibgcc.in
+	@${REINPLACE_CMD} -e 's/^CC[[:space:]]*=/CC ?=/' -e 's/^CFLAGS[[:space:]]*=/CFLAGS ?=/' \
+		${WRKSRC}/tigcc/sources/a68k/Makefile ${WRKSRC}/tigcc/sources/ld-tigcc/Makefile \
+		${WRKSRC}/tigcc/sources/patcher/src/Makefile ${WRKSRC}/tigcc/sources/tigcc/src/Makefile \
+		${WRKSRC}/tigcc/sources/tprbuilder/src/Makefile
 
 do-build:
 	@${ECHO} Building GNU AS
 	@${MKDIR} ${WRKSRC}/gnu/binutils_build
 	@cd ${WRKSRC}/gnu/binutils_build; \
-	 ${WRKSRC}/gnu/binutils-2.16.1/configure --disable-serial-configure --target=m68k-coff --disable-shared --enable-static --disable-multilib --disable-nls --disable-win32-registry
-	@cd ${WRKSRC}/gnu/binutils_build; ${MAKE_CMD}
+		${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
+		CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+		LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
+		${CONFIGURE_ENV} \
+		${WRKSRC}/gnu/binutils-2.16.1/configure --disable-serial-configure --target=m68k-coff --disable-shared \
+		--enable-static --disable-multilib --disable-nls --disable-win32-registry
+	@cd ${WRKSRC}/gnu/binutils_build; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building the GNU C COMPILER
 	@${MKDIR} ${WRKSRC}/gnu/gcc_build
 	@cd ${WRKSRC}/gnu/gcc_build; \
-	 ${WRKSRC}/gnu/gcc-4.1-20060728/configure --target=m68k-coff --with-gnu-as --disable-nls --disable-multilib --disable-shared --enable-static --disable-threads --disable-win32-registry --disable-checking --disable-werror --disable-pch --disable-mudflap --disable-libssp
-	@cd ${WRKSRC}/gnu/gcc_build; ${MAKE_CMD}
+		${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
+		CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+		LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
+		${CONFIGURE_ENV} \
+		${WRKSRC}/gnu/gcc-4.1-20060728/configure --target=m68k-coff --with-gnu-as --disable-nls --disable-multilib \
+		--disable-shared --enable-static --disable-threads --disable-win32-registry --disable-checking --disable-werror \
+		--disable-pch --disable-mudflap --disable-libssp
+	@cd ${WRKSRC}/gnu/gcc_build; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building A68K
-	@cd ${WRKSRC}/tigcc/sources/a68k; ${MAKE_CMD}
+	@cd ${WRKSRC}/tigcc/sources/a68k; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building LD-TIGCC
-	@cd ${WRKSRC}/tigcc/sources/ld-tigcc; ${MAKE_CMD}
+	@cd ${WRKSRC}/tigcc/sources/ld-tigcc; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building PATCHER
-	@cd ${WRKSRC}/tigcc/sources/patcher/src; ${MAKE_CMD}
+	@cd ${WRKSRC}/tigcc/sources/patcher/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building the ExePack support from the TIGCC Tools Suite
 	@cd ${WRKSRC}/tigcc/sources/ttpack; ${CC} ${CFLAGS} -o ttpack ttpack.c
 	@cd ${WRKSRC}/tigcc/sources/ttpack; ${CC} ${CFLAGS} -o ttbin2oth ttbin2oth.c
 
 	@${ECHO} Building TIGCC
-	@cd ${WRKSRC}/tigcc/sources/tigcc/src; ${MAKE_CMD}
+	@cd ${WRKSRC}/tigcc/sources/tigcc/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 	@${ECHO} Building TPRBUILDER
-	@cd ${WRKSRC}/tigcc/sources/tprbuilder/src; ${MAKE_CMD}
+	@cd ${WRKSRC}/tigcc/sources/tprbuilder/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS}
 
 do-install:
-	@${MKDIR} ${PREFIX}/tigcc
-	@${MKDIR} ${PREFIX}/tigcc/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/tigcc
+	@${MKDIR} ${STAGEDIR}${PREFIX}/tigcc/bin
 
 	@${ECHO} Installing GNU AS
-	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/binutils_build/gas/as-new ${PREFIX}/tigcc/bin/as
+	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/binutils_build/gas/as-new ${STAGEDIR}${PREFIX}/tigcc/bin/as
 
 	@${ECHO} Installing the GNU C Compiler
-	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/gcc_build/gcc/cc1 ${PREFIX}/tigcc/bin/cc1
-	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/gcc_build/gcc/xgcc ${PREFIX}/tigcc/bin/gcc
+	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/gcc_build/gcc/cc1 ${STAGEDIR}${PREFIX}/tigcc/bin/cc1
+	@${INSTALL_PROGRAM} ${WRKSRC}/gnu/gcc_build/gcc/xgcc ${STAGEDIR}${PREFIX}/tigcc/bin/gcc
 
 	@${ECHO} Installing A68K
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/a68k/A68k ${PREFIX}/tigcc/bin/a68k
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/a68k/A68k ${STAGEDIR}${PREFIX}/tigcc/bin/a68k
 
 	@${ECHO} Installing LD-TIGCC
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ld-tigcc/ld-tigcc ${PREFIX}/tigcc/bin/ld-tigcc
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ld-tigcc/ar-tigcc ${PREFIX}/tigcc/bin/ar-tigcc
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ld-tigcc/ld-tigcc ${STAGEDIR}${PREFIX}/tigcc/bin/ld-tigcc
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ld-tigcc/ar-tigcc ${STAGEDIR}${PREFIX}/tigcc/bin/ar-tigcc
 
 	@${ECHO} Installing PATCHER
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/patcher/src/patcher ${PREFIX}/tigcc/bin/patcher
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/patcher/src/patcher ${STAGEDIR}${PREFIX}/tigcc/bin/patcher
 
 	@${ECHO} Installing the ExePack support from the TIGCC Tools Suite
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ttpack/ttpack ${PREFIX}/tigcc/bin/ttpack
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ttpack/ttbin2oth ${PREFIX}/tigcc/bin/ttbin2oth
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ttpack/ttpack ${STAGEDIR}${PREFIX}/tigcc/bin/ttpack
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/ttpack/ttbin2oth ${STAGEDIR}${PREFIX}/tigcc/bin/ttbin2oth
 
 	@${ECHO} Installing TIGCC
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/tigcc/src/tigcc ${PREFIX}/tigcc/bin/tigcc
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/tigcc/src/tigcc ${STAGEDIR}${PREFIX}/tigcc/bin/tigcc
 
 	@${ECHO} Installing TPRBUILDER
-	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/tprbuilder/src/tprbuilder ${PREFIX}/tigcc/bin/tprbuilder
+	@${INSTALL_PROGRAM} ${WRKSRC}/tigcc/sources/tprbuilder/src/tprbuilder ${STAGEDIR}${PREFIX}/tigcc/bin/tprbuilder
 
 	@${ECHO} Installing TIGCCLIB
-	@${CP} -R ${WRKSRC}/tigcc/tigcclib/include ${PREFIX}/tigcc/
-	@${LN} -s ./os.h ${PREFIX}/tigcc/include/asm/OS.h
-	@${CP} -R ${WRKSRC}/tigcc/tigcclib/lib ${PREFIX}/tigcc/
+	@${CP} -R ${WRKSRC}/tigcc/tigcclib/include ${STAGEDIR}${PREFIX}/tigcc/
+	@${LN} -s ./os.h ${STAGEDIR}${PREFIX}/tigcc/include/asm/OS.h
+	@${CP} -R ${WRKSRC}/tigcc/tigcclib/lib ${STAGEDIR}${PREFIX}/tigcc/
 
-post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${ECHO} Installing the TIGCC documentation
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/tigcc; ${CP} AUTHORS BUGS CHANGELOG COPYING DIRECTORIES HOWTO INSTALL README README.linux README.osX ${DOCSDIR}/
-	@${MKDIR} ${DOCSDIR}/a68k
-	@cd ${WRKSRC}/tigcc/sources/a68k; ${CP} Bugs.txt Doc.txt History.txt ToDo.txt ${DOCSDIR}/a68k/
-	@${MKDIR} ${DOCSDIR}/tigcc
-	@cd ${WRKSRC}/tigcc; ${CP} AUTHORS  COPYING  CHANGELOG  README ${DOCSDIR}/tigcc/
-	@${MKDIR} ${DOCSDIR}/tprbuilder
-	@cd ${WRKSRC}/tigcc/sources/tprbuilder; ${CP} AUTHORS  COPYING  ChangeLog  README ${DOCSDIR}/tprbuilder/
-	@${MKDIR} ${DOCSDIR}/patcher
-	@cd ${WRKSRC}/tigcc/sources/patcher; ${CP} AUTHORS  COPYING  ChangeLog  README ${DOCSDIR}/patcher/
-	@${CP} -R ${WRKSRC}/tigcc/tigcclib/doc/html ${DOCSDIR}/
-	@${LN} -s ./html ${DOCSDIR}/tigcclib
-	@${CP} ${WRKSRC}/tigcc/tigcclib/doc/converter/tigccdoc ${PREFIX}/tigcc/bin/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC}/tigcc; ${CP} AUTHORS BUGS CHANGELOG COPYING DIRECTORIES HOWTO INSTALL README README.linux README.osX ${STAGEDIR}${DOCSDIR}/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/a68k
+	@cd ${WRKSRC}/tigcc/sources/a68k; ${CP} Bugs.txt Doc.txt History.txt ToDo.txt ${STAGEDIR}${DOCSDIR}/a68k/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/tigcc
+	@cd ${WRKSRC}/tigcc; ${CP} AUTHORS  COPYING  CHANGELOG  README ${STAGEDIR}${DOCSDIR}/tigcc/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/tprbuilder
+	@cd ${WRKSRC}/tigcc/sources/tprbuilder; ${CP} AUTHORS COPYING ChangeLog README ${STAGEDIR}${DOCSDIR}/tprbuilder/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/patcher
+	@cd ${WRKSRC}/tigcc/sources/patcher; ${CP} AUTHORS  COPYING  ChangeLog  README ${STAGEDIR}${DOCSDIR}/patcher/
+	@${CP} -R ${WRKSRC}/tigcc/tigcclib/doc/html ${STAGEDIR}${DOCSDIR}/
+	@${LN} -s ./html ${STAGEDIR}${DOCSDIR}/tigcclib
+	@${CP} ${WRKSRC}/tigcc/tigcclib/doc/converter/tigccdoc ${STAGEDIR}${PREFIX}/tigcc/bin/
 .endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	@${CP} ${WRKSRC}/tigcc/tigcclib/examples/* ${EXAMPLESDIR}/
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@${CP} ${WRKSRC}/tigcc/tigcclib/examples/* ${STAGEDIR}${EXAMPLESDIR}/
 .endif
-	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Copied and modified: head/devel/tigcc/files/pkg-message.in (from r359230, head/devel/tigcc/pkg-message)
==============================================================================
--- head/devel/tigcc/pkg-message	Wed Jun 25 12:09:17 2014	(r359230, copy source)
+++ head/devel/tigcc/files/pkg-message.in	Wed Jun 25 12:33:41 2014	(r359234)
@@ -10,7 +10,7 @@ Additionally the TIGCC bin folder must b
 
 If you use the csh shell you would put something like
 
-setenv TIGCC	/usr/local/tigcc
+setenv TIGCC	%%PREFIX%%/tigcc
 setenv PATH	$PATH:$TIGCC/bin
 
 into the .cshrc file in your home directory.



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