FreeBSD Bugzilla – Attachment 173011 Details for
Bug 209814
games/diaspora: Split off data files into separate port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (since 415836 revision)
diaspora.diff (text/plain), 5.74 KB, created by
lightside
on 2016-07-26 18:07:26 UTC
(
hide
)
Description:
Proposed patch (since 415836 revision)
Filename:
MIME Type:
Creator:
lightside
Created:
2016-07-26 18:07:26 UTC
Size:
5.74 KB
patch
obsolete
>--- diaspora.orig/Makefile 2016-05-25 14:43:29 UTC >+++ diaspora/Makefile >@@ -1,8 +1,14 @@ > # Created by: lightside <lightside@gmx.com> > # $FreeBSD: head/games/diaspora/Makefile 415836 2016-05-25 14:43:29Z amdmi3 $ > >-PORTNAME= diaspora >+PORTNAME?= diaspora > PORTVERSION= 1.1.1 >+.if ${PORTNAME:Mdiaspora} >+PORTREVISION= 1 >+.else >+# For games/diaspora-data port >+#PORTREVISION= 0 >+.endif > CATEGORIES= games > MASTER_SITES= http://diaspora.fs2downloads.com/ \ > http://www.freespacemods.net/e107_files/downloads/:freespacemods \ >@@ -13,7 +19,7 @@ > Diaspora_R1_Patch_1.1.1.tar.lzma > > MAINTAINER= lightside@gmx.com >-COMMENT= Single and multiplayer space fighter combat game >+COMMENT?= Single and multiplayer space fighter combat game > > LICENSE= CCBYNCSAv3 VOLITION GPLv2 > LICENSE_COMB= multi >@@ -25,21 +31,29 @@ > LICENSE_PERMS_CCBYNCSAv3= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept > LICENSE_PERMS_VOLITION= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept > >-LIB_DEPENDS+= libjansson.so:devel/jansson \ >+.if ${PORTNAME:Mdiaspora} >+LIB_DEPENDS= libjansson.so:devel/jansson \ > libpng.so:graphics/png \ > libogg.so:audio/libogg \ > libvorbisfile.so:audio/libvorbis \ > libtheora.so:multimedia/libtheora >+RUN_DEPENDS= diaspora-data>=${PORTVERSION}:games/diaspora-data >+.endif > >-USES= autoreconf jpeg lua:51 openal pkgconfig tar:lzma >-USE_GL= yes >-USE_SDL= sdl >-GNU_CONFIGURE= yes >+USES= tar:lzma > > WRKDIR_DIASPORA= ${WRKDIR}/Diaspora_R1_Linux/Diaspora > WRKSRC= ${WRKDIR_DIASPORA}/fs2_open > >-PORTDATA= data *.vp >+.if ${PORTNAME:Mdiaspora} >+USES+= autoreconf jpeg lua:51 openal pkgconfig >+USE_GL= gl glu >+USE_SDL= sdl >+GNU_CONFIGURE= yes >+EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions \ >+ --exclude *.vp --exclude data/movies >+ >+PORTDATA= data/cmdline_fso.cfg* > PORTDOCS= * > SUB_FILES= fs2_open_${PORTNAME} > PLIST_FILES+= bin/fs2_open_${PORTNAME} \ >@@ -57,54 +71,66 @@ > SPEECH_DESC= Text to speech > SPEECH_CONFIGURE_ENABLE= speech > WXLAUNCHER_DESC= Use wxlauncher to manage application profile >+WXLAUNCHER_DESKTOP_ENTRIES= "Diaspora Launcher" "${COMMENT}" \ >+ "${PORTNAME}" "fs2_open_${PORTNAME}_launcher" \ >+ "Game;Simulation;" false >+WXLAUNCHER_PLIST_FILES= bin/fs2_open_${PORTNAME}_launcher \ >+ %%DATADIR%%/fs2_open_${PORTNAME} > WXLAUNCHER_RUN_DEPENDS= wxlauncher:games/wxlauncher >+WXLAUNCHER_SUB_FILES= fs2_open_${PORTNAME}_launcher >+WXLAUNCHER_VARS= PORTDATA+="resources *.ini *.png *.bmp" >+.else >+NO_ARCH= yes >+NO_BUILD= yes >+PKG_CREATE_VERBOSE= yes > >-.include <bsd.port.options.mk> >- >-.if ${PORT_OPTIONS:MWXLAUNCHER} >-PORTDATA+= resources *.ini *.png *.bmp >-SUB_FILES+= fs2_open_${PORTNAME}_launcher >-PLIST_FILES+= bin/fs2_open_${PORTNAME}_launcher \ >- %%DATADIR%%/fs2_open_${PORTNAME} >+DATADIR= ${PREFIX}/share/diaspora >+PORTDATA= data *.vp > >-DESKTOP_ENTRIES+= "Diaspora Launcher" "${COMMENT}" \ >- "${PORTNAME}" "fs2_open_${PORTNAME}_launcher" \ >- "Game;Simulation;" false >+POST_PLIST+= build-plist-empty > .endif > > post-extract: .SILENT > .for v in 1.1 1.1.1 >- (cd ${WRKDIR} && tar -xf Patch_Files.${v}.tar -C ${WRKDIR_DIASPORA} && \ >- ${RM} Patch_Files.${v}.tar) >+ (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ >+ Patch_Files.${v}.tar ${EXTRACT_AFTER_ARGS} -C ${WRKDIR_DIASPORA} \ >+ && ${RM} Patch_Files.${v}.tar) > .endfor >-.if ${PORT_OPTIONS:MWXLAUNCHER} >+.if ${PORTNAME:Mdiaspora-data} >+# Remove a file, which can be installed by games/diaspora port >+ (cd ${WRKDIR_DIASPORA}/data && ${RM} -f cmdline_fso.cfg) >+.endif >+ >+.if ${PORTNAME:Mdiaspora} >+post-extract-WXLAUNCHER-on: .SILENT > (cd ${WRKDIR_DIASPORA} && ${CP} -f pro00099.template.ini pro00099.ini) > # Backup data/cmdline_fso.cfg, because executable might merge it with > # user settings > (cd ${WRKDIR_DIASPORA}/data && ${MV} -f cmdline_fso.cfg cmdline_fso.cfg.bak) >-.endif > >-post-patch: .SILENT >-.if ${PORT_OPTIONS:MWXLAUNCHER} >- ${REINPLACE_CMD} -e \ >- 's|/PATH/TO/YOUR/DIASPORA/FOLDER/HERE|${DATADIR}|' \ >- ${WRKDIR_DIASPORA}/pro00099.ini >-.endif >- ${REINPLACE_CMD} -e '/^AC_INIT/s/3\.7\.1/${PORTNAME}/ ; \ >+post-patch: >+ @${REINPLACE_CMD} -e '/^AC_INIT/s/3\.7\.1/${PORTNAME}/ ; \ > s/freebsd/${OPSYS:tl}/ ; \ > s/ -m64 -march=athlon64 -ansi// ; \ > s|/usr/local|${LOCALBASE}|' \ > ${CONFIGURE_WRKSRC}/configure.ac >- ${REINPLACE_CMD} -e 's|(640x480)x16|(1024x768)x32|' \ >+ @${REINPLACE_CMD} -e 's|(640x480)x16|(1024x768)x32|' \ > ${BUILD_WRKSRC}/code/osapi/osapi_unix.cpp > >+post-patch-WXLAUNCHER-on: >+ @${REINPLACE_CMD} -e \ >+ 's|/PATH/TO/YOUR/DIASPORA/FOLDER/HERE|${DATADIR}|' \ >+ ${WRKDIR_DIASPORA}/pro00099.ini >+.endif >+ > do-install: >+ (cd ${WRKDIR_DIASPORA} && ${COPYTREE_SHARE} "${PORTDATA}" \ >+ ${STAGEDIR}${DATADIR}) >+.if ${PORTNAME:Mdiaspora} > ${INSTALL_SCRIPT} ${WRKDIR}/fs2_open_${PORTNAME} \ > ${STAGEDIR}${PREFIX}/bin > ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/code/fs2_open_${PORTNAME} \ > ${STAGEDIR}${PREFIX}/libexec >- (cd ${WRKDIR_DIASPORA} && ${COPYTREE_SHARE} "${PORTDATA}" \ >- ${STAGEDIR}${DATADIR}) > (cd ${WRKDIR} && ${COPYTREE_SHARE} "README*.txt" ${STAGEDIR}${DOCSDIR}) > (cd ${WRKDIR_DIASPORA} && ${COPYTREE_SHARE} "*.pdf *.rtf README.txt" \ > ${STAGEDIR}${DOCSDIR}) >@@ -112,18 +138,20 @@ > ${STAGEDIR}${DOCSDIR}) > ${INSTALL_DATA} ${WRKDIR_DIASPORA}/resources/modimg.png \ > ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png >-.if ${PORT_OPTIONS:MWXLAUNCHER} >+.endif >+ >+.if ${PORTNAME:Mdiaspora} >+do-install-WXLAUNCHER-on: > ${INSTALL_SCRIPT} ${WRKDIR}/fs2_open_${PORTNAME}_launcher \ > ${STAGEDIR}${PREFIX}/bin > # Create a symbolic link, which used by launcher > ${LN} -sf ${PREFIX}/libexec/fs2_open_${PORTNAME} ${STAGEDIR}${DATADIR} >-.endif >- >-add-plist-post: build-plist-empty >+.else > > build-plist-empty: .SILENT > # Add required empty directories to TMPPLIST > ${FIND} ${STAGEDIR}${DATADIR}/data -type d -empty | \ > ${SED} -e 's|^${STAGEDIR}|@dir |' >> ${TMPPLIST} >+.endif > > .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
Flags:
lightside
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 209814
:
170760
|
170761
|
170769
|
170793
|
171303
|
172977
|
173011
|
173012
|
173013
|
174740
|
174761
|
174762
|
174763
|
174766