[SCM] packaging for the mame arcade game emulator branch, master, updated. a3d1c1e55914573f847dee2dab9edfa0224d4465

Emmanuel Kasper emmanuel at libera.cc
Tue Feb 28 15:17:59 UTC 2012


Am 2012-02-28 15:45, schrieb Ansgar Burchardt:
> "Emmanuel Kasper" writes:
>> commit a3d1c1e55914573f847dee2dab9edfa0224d4465
>> Author: Emmanuel Kasper <emmanuel-tTcBf5k31O/F11Dp+j+f1g at public.gmane.org>
>> Date:   Tue Feb 28 15:23:31 2012 +0100
>>
>>     Enable NJOBS hack for parallel builds (make -j xx)
>>
> [...]
>> +# Number of make jobs = number of cores + 1
>> +NJOBS:=$(shell echo $$(($$(getconf _NPROCESSORS_ONLN 2>/dev/null) + 1)))
>> +ifdef SETNJOBS
>> +	NJOBS:=$(SETNJOBS)
>> +endif
>> +
>>  # Override relevant make variables in original makefile
>>  DEB_MAME_OPTS = \
>>      OPT_FLAGS="-D'INI_PATH=\"/etc/mame\"'" \
>> @@ -141,7 +147,7 @@ endif
>>  	dh $@
>>  
>>  override_dh_auto_build:
>> -	$(MAKE) -j3 $(DEB_MAME_OPTS) all
>> +	$(MAKE) -j$(NJOBS) $(DEB_MAME_OPTS) all
>>  	$(CURDIR)/mame -createconfig
>>  	mv mame.ini default.mame.ini
> 
> Please don't do this.  There is a documented way in policy for parallel
> builds (4.9.1).  debhelper also has some features to make this easier,
> see the --parallel option for dh and use dh_auto_build (if it does the
> right thing).
> 
> Regards,
> Ansgar
thank you for your feedback. I will have a look a how to use the
DEB_BUILD_OPTIONS for parallel building.
Emmanuel




More information about the Pkg-games-devel mailing list