1: Stagify.
2: fix build with clang. Approved by: portmgr@
This commit is contained in:
parent
3433ffbb56
commit
3ad49071cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357861
2 changed files with 14 additions and 4 deletions
|
@ -16,7 +16,6 @@ RUN_DEPENDS= fgfs:${PORTSDIR}/games/flightgear
|
|||
USE_GNOME= gtk20
|
||||
USES= gmake pkgconfig
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} "s|-fmessage-length=0|| ; s|-O0|${CFLAGS}|" ${WRKSRC}/fgkicker.mak
|
||||
|
||||
|
@ -24,9 +23,9 @@ do-build:
|
|||
(cd ${WRKSRC} && ${GMAKE} -f ${PORTNAME}.mak ${PORTNAME})
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/airports.dat ${DATADIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/airports.dat ${STAGEDIR}${DATADIR}
|
||||
|
||||
install-user:
|
||||
${INSTALL_DATA} ${DATADIR}/airports.dat $$HOME
|
||||
|
|
11
games/fgkicker/files/patch-fgkicker.mak
Normal file
11
games/fgkicker/files/patch-fgkicker.mak
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- fgkicker.mak.orig 2014-06-15 17:50:51.745429612 +0800
|
||||
+++ fgkicker.mak 2014-06-15 17:50:58.109420658 +0800
|
||||
@@ -28,7 +28,7 @@ MAKEOPTIONS = -j1
|
||||
|
||||
GCC = gcc
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
||||
CFLAGS = $(INCLUDES) $(CWARNFLAGS) $(CDEBUGFLAGS) $(COPTIMIZEFLAGS) $(CLANGFLAGS) $(CCODEFLAGS) `pkg-config --cflags gtk+-2.0`
|
||||
|
Loading…
Reference in a new issue