diff options
author | rakuco <rakuco@FreeBSD.org> | 2016-03-19 22:36:54 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2016-03-19 22:36:54 +0800 |
commit | 056b814a16d6fb5db3123e6e76cf567dab22ce1a (patch) | |
tree | 3d9fd5b19a9bec8b689333a48e66659e7e33ceb6 /games | |
parent | 530b03fe287a1e15cad46b14964fff2713c29b9e (diff) | |
download | freebsd-ports-graphics-056b814a16d6fb5db3123e6e76cf567dab22ce1a.tar.gz freebsd-ports-graphics-056b814a16d6fb5db3123e6e76cf567dab22ce1a.tar.zst freebsd-ports-graphics-056b814a16d6fb5db3123e6e76cf567dab22ce1a.zip |
Add some patches to properly declare dependencies between targets.
The upcoming CMake 3.5.0 ends up generating Makefiles that cause much more
problems in parallel builds when the dependencies are not declared correctly.
This also allows us to get rid of MAKE_JOBS_UNSAFE.
PR: 208033
Diffstat (limited to 'games')
-rw-r--r-- | games/vavoom/Makefile | 2 | ||||
-rw-r--r-- | games/vavoom/files/patch-progs_common_CMakeLists.txt | 8 | ||||
-rw-r--r-- | games/vavoom/files/patch-source_CMakeLists.txt | 20 |
3 files changed, 28 insertions, 2 deletions
diff --git a/games/vavoom/Makefile b/games/vavoom/Makefile index 8018594464c..ceedd9b77b5 100644 --- a/games/vavoom/Makefile +++ b/games/vavoom/Makefile @@ -17,8 +17,6 @@ LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png USES= cmake dos2unix jpeg tar:bzip2 DOS2UNIX_REGEX= ((.*\.(c|cpp|h|s|asm|inc|vc|ls|acs|cfg|txt|vs|mak|mgw"))$$|\/(makefile\..*|makefile|Makefile)$$) -MAKE_JOBS_UNSAFE= yes - OPTIONS_DEFINE= FLAC LAUNCHER MAD MIKMOD OPENAL OPTIMIZED_CFLAGS VORBIS SDL DOCS OPTIONS_DEFAULT= OPENGL SDL LAUNCHER_DESC= Build GUI launcher diff --git a/games/vavoom/files/patch-progs_common_CMakeLists.txt b/games/vavoom/files/patch-progs_common_CMakeLists.txt new file mode 100644 index 00000000000..bc3a96e167e --- /dev/null +++ b/games/vavoom/files/patch-progs_common_CMakeLists.txt @@ -0,0 +1,8 @@ +--- progs/common/CMakeLists.txt.orig 2016-03-16 16:45:41 UTC ++++ progs/common/CMakeLists.txt +@@ -17,4 +17,4 @@ add_custom_command(OUTPUT ${OUTDIR}/uiba + COMMAND ${VCC} ARGS -P${OUTDIR} ${CMAKE_CURRENT_SOURCE_DIR}/uibase/classes.vc ${OUTDIR}/uibase.dat + DEPENDS vcc uibase/*.vc ${OUTDIR}/engine.dat) + add_custom_target(uibase ALL DEPENDS ${OUTDIR}/uibase.dat) +-add_dependencies(uibase vcc engine) ++add_dependencies(uibase vcc engine linespec) diff --git a/games/vavoom/files/patch-source_CMakeLists.txt b/games/vavoom/files/patch-source_CMakeLists.txt new file mode 100644 index 00000000000..bc3fdde4b34 --- /dev/null +++ b/games/vavoom/files/patch-source_CMakeLists.txt @@ -0,0 +1,20 @@ +--- source/CMakeLists.txt.orig 2016-03-16 16:43:57 UTC ++++ source/CMakeLists.txt +@@ -790,7 +790,7 @@ if (MAIN_COMPILE_FLAGS) + set_target_properties(vavoom PROPERTIES COMPILE_FLAGS ${MAIN_COMPILE_FLAGS}) + endif (MAIN_COMPILE_FLAGS) + target_link_libraries(vavoom ${MAIN_LIBS}) +-add_dependencies(vavoom core timidity glbsp libglvis) ++add_dependencies(vavoom core timidity glbsp libglvis revision_check) + + install(TARGETS vavoom DESTINATION ${BINDIR}) + +@@ -845,7 +845,7 @@ else(ENABLE_WRAPPERS) + endif(ENABLE_WRAPPERS) + set_target_properties(vavoom-dedicated PROPERTIES COMPILE_FLAGS -DSERVER) + target_link_libraries(vavoom-dedicated glbsp core ${ZLIB_LIBRARY} ${NET_LIBRARIES}) +-add_dependencies(vavoom-dedicated core glbsp) ++add_dependencies(vavoom-dedicated core glbsp revision_check) + + install(TARGETS vavoom-dedicated DESTINATION ${BINDIR}) + |