- respect CC/CFLAGS, now build with clang
PR: ports/161943 Submitted by: Nali Toja <nalitoja@gmail.com>
This commit is contained in:
parent
4e860ae744
commit
a151b7a0ad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288308
2 changed files with 18 additions and 17 deletions
|
@ -15,9 +15,19 @@ MAINTAINER= wenheping@gmail.com
|
|||
COMMENT= C Compiler Which Implements the ANSI C89 Standard
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_DOS2UNIX= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
post-patch: .SILENT
|
||||
${REINPLACE_CMD} 's/make/$$(MAKE)/' \
|
||||
${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} -e '/^CC[[:blank:]]*=/d' \
|
||||
-e '/^CFLAGS/ { s/=/+=/; s/-g//; }' \
|
||||
-e '/:[[:blank:]]/s/\.c/.o/g' \
|
||||
-e 's/$$^/$$>/g' \
|
||||
${WRKSRC}/driver/Makefile \
|
||||
${WRKSRC}/ucl/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,22 +1,15 @@
|
|||
--- Makefile.orig 2008-05-14 11:13:02.000000000 +0800
|
||||
+++ Makefile 2008-08-15 13:25:35.000000000 +0800
|
||||
@@ -1,21 +1,21 @@
|
||||
--- Makefile.orig 2011-12-31 14:41:27.000000000 +0800
|
||||
+++ Makefile 2011-12-31 14:43:38.000000000 +0800
|
||||
@@ -1,5 +1,5 @@
|
||||
-UCCDIR = /usr/local/lib/ucc
|
||||
-export UCCDIR
|
||||
+UCCDIR = ${PREFIX}
|
||||
+#export UCCDIR
|
||||
|
||||
all:
|
||||
- make -C driver
|
||||
- make -C ucl
|
||||
+ gmake -C driver
|
||||
+ gmake -C ucl
|
||||
|
||||
clean:
|
||||
- make -C driver clean
|
||||
- make -C ucl clean
|
||||
+ gmake -C driver clean
|
||||
+ gmake -C ucl clean
|
||||
make -C driver
|
||||
@@ -10,11 +10,11 @@
|
||||
make -C ucl clean
|
||||
|
||||
install:
|
||||
- mkdir -p $(UCCDIR)
|
||||
|
@ -31,6 +24,4 @@
|
|||
+ cp ucl/linux/include/* $(UCCDIR)/include/ucc/
|
||||
|
||||
test:
|
||||
- make -C ucl test
|
||||
+ gmake -C ucl test
|
||||
|
||||
make -C ucl test
|
||||
|
|
Loading…
Reference in a new issue