mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Fix build on -current and do a better job of honouring ${CC}.
This commit is contained in:
parent
d30557bce6
commit
723bcae36d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365024
@ -18,9 +18,6 @@ PORTDOCS= README README.timetable USAGE
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
|
@ -17,9 +17,9 @@
|
||||
- gcc -O ${CFLAGS} -c mpglib.c
|
||||
- gcc -O ${CFLAGS} -c main.c
|
||||
- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
|
||||
+ cc -O ${CFLAGS} -c mpglib.c
|
||||
+ cc -O ${CFLAGS} -c main.c
|
||||
+ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
|
||||
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c mpglib.c
|
||||
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c main.c
|
||||
+ ${CC} ${CFLAGS} main.o mpglib.o -o ${NAME} ${LDFLAGS} -lm -lreadline -lncurses
|
||||
|
||||
i386:
|
||||
- gcc -Wall -O -c mpglib.c
|
||||
|
Loading…
Reference in New Issue
Block a user