FreeBSD Bugzilla – Attachment 191956 Details for
Bug 226980
openal-using ports fail to link when lld is the system linker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for games/assaultcube (since 449527 revision)
assaultcube.diff (text/plain), 3.29 KB, created by
lightside
on 2018-03-29 20:33:00 UTC
(
hide
)
Description:
Proposed patch for games/assaultcube (since 449527 revision)
Filename:
MIME Type:
Creator:
lightside
Created:
2018-03-29 20:33:00 UTC
Size:
3.29 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 449527) >+++ Makefile (working copy) >@@ -24,7 +24,7 @@ > LICENSE_PERMS_OTHER= dist-mirror pkg-mirror auto-accept > > USES= gmake tar:bzip2 >-ALL_TARGET= # empty >+LLD_UNSAFE= yes > WRKSRC= ${WRKDIR}/AssaultCube_v${PORTVERSION} > BUILD_WRKSRC= ${WRKSRC}/source/src > SUB_FILES= ${PLIST_FILES:Mbin/*:T} >@@ -31,7 +31,7 @@ > > PORTDATA= config packages scripts > PORTDOCS= * >-PLIST_DIRS= %%DATADIR%%/packages/maps/servermaps/incoming >+PLIST_DIRS= ${DATADIR}/packages/maps/servermaps/incoming > > OPTIONS_DEFINE= DOCS PORT_ENET > OPTIONS_MULTI= BUILD >@@ -44,6 +44,9 @@ > CLIENT_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ > libcurl.so:ftp/curl > CLIENT_ALL_TARGET= client >+CLIENT_DESKTOP_ENTRIES= "AssaultCube" "${COMMENT}" \ >+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}_client" \ >+ "Game;" false > CLIENT_PLIST_FILES= bin/${PORTNAME}_client libexec/${PORTNAME}_client \ > share/pixmaps/${PORTNAME}.png > DEDICATED_DESC= Build dedicated server >@@ -53,24 +56,11 @@ > MASTER_ALL_TARGET= master > MASTER_PLIST_FILES= bin/${PORTNAME}_master libexec/${PORTNAME}_master > PORT_ENET_DESC= Use libenet from net/enet >+PORT_ENET_ALL_TARGET_OFF= libenet >+PORT_ENET_CONFIGURE_OFF= --enable-shared=no --enable-static=yes >+PORT_ENET_LIB_DEPENDS= libenet.so:net/enet >+PORT_ENET_VARS_OFF= GNU_CONFIGURE=yes CONFIGURE_WRKSRC="${WRKSRC}/source/enet" > >-.include <bsd.port.options.mk> >- >-.if ${PORT_OPTIONS:MCLIENT} >-DESKTOP_ENTRIES="AssaultCube" "${COMMENT}" \ >- "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}_client" \ >- "Game;" false >-.endif >- >-.if ${PORT_OPTIONS:MPORT_ENET} >-LIB_DEPENDS+= libenet.so:net/enet >-.else >-ALL_TARGET+= libenet >-GNU_CONFIGURE= yes >-CONFIGURE_ARGS+= --enable-shared=no --enable-static=yes >-CONFIGURE_WRKSRC= ${WRKSRC}/source/enet >-.endif >- > post-patch: .SILENT > ${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \ > /^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \ >@@ -80,26 +70,26 @@ > /^CLIENT_LIBS=/s|$$| -lintl| ; \ > /^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \ > ${BUILD_WRKSRC}/Makefile >-.if ${PORT_OPTIONS:MPORT_ENET} >- ${SED} -i '.port_enet.bak' -e 's/libenet // ; \ >+ >+post-patch-PORT_ENET-on: .SILENT >+ ${REINPLACE_CMD} -i '.port_enet.bak' -e 's/libenet // ; \ > s|-I\.\./enet/include|| ; \ > s|-L\.\./enet/\.libs||' \ > ${BUILD_WRKSRC}/Makefile >-.endif > > do-install: >-.for f in ${PLIST_FILES:Mbin/*} >- ${INSTALL_SCRIPT} ${WRKDIR}/${f:T} ${STAGEDIR}${PREFIX}/${f} >-.endfor >-.for f in ${PLIST_FILES:Mlibexec/*} >- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f:T:S/${PORTNAME}/ac/} \ >- ${STAGEDIR}${PREFIX}/${f} >-.endfor >-.if ${PORT_OPTIONS:MCLIENT} >- ${INSTALL_DATA} ${WRKSRC}/docs/images/icon.png \ >- ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png >-.endif > (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR}) > (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) > >+do-install-CLIENT-on: >+ ${INSTALL_DATA} ${WRKSRC}/docs/images/icon.png \ >+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png >+ >+.for f in client master server >+post-install-${f:S|server|DEDICATED|:tu}-on: >+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}_${f} ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/ac_${f} \ >+ ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}_${f} >+.endfor >+ > .include <bsd.port.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226980
:
191886
|
191887
|
191888
|
191889
|
191952
|
191953
|
191955
|
191956
|
192249
|
192269
|
196575