Remco wrote:
> $OpenBSD$
> --- Makefile.orig Tue Mar 13 14:37:09 2012
> +++ Makefile Tue Jan 15 10:34:14 2013
> @@ -19,7 +19,7 @@
>
>
#=============================================================================
>
> REVISION = `cat mscore/mscore/revision.h`
> -CPUS = `grep -c processor /proc/cpuinfo`
> +CPUS = `sysctl -n hw.ncpu`
>
> PREFIX = "/usr/local"
> #VERSION = "1.2r${REVISION}"
> @@ -32,11 +32,12 @@ release:
> then \
> mkdir build; \
> cd build; \
> + cp ../mscore/all.h .; \
> cmake -DCMAKE_BUILD_TYPE=RELEASE \
> -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
> ../mscore; \
> - make lrelease; \
> - make -j ${CPUS}; \
> + ${MAKE} lrelease; \
> + ${MAKE} -j ${CPUS}; \
> else \
> echo "build directory does already exist, please remove first
> with 'make clean'"; \
> fi;
Here's an updated patch in order to be able to run 'make install' as well.
With this I'm able to build and install the whole package. I can at least
start MuseScore and play the example song, have never really used it before,
so can't say much else about it right now.
thanks for your effort so far.
$OpenBSD$
--- Makefile.orig Tue Mar 13 14:37:09 2012
+++ Makefile Tue Jan 15 11:52:06 2013
@@ -19,7 +19,7 @@
#=============================================================================
REVISION = `cat mscore/mscore/revision.h`
-CPUS = `grep -c processor /proc/cpuinfo`
+CPUS = `sysctl -n hw.ncpu`
PREFIX = "/usr/local"
#VERSION = "1.2r${REVISION}"
@@ -32,11 +32,12 @@ release:
then \
mkdir build; \
cd build; \
+ cp ../mscore/all.h .; \
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
../mscore; \
- make lrelease; \
- make -j ${CPUS}; \
+ ${MAKE} lrelease; \
+ ${MAKE} -j ${CPUS}; \
else \
echo "build directory does already exist, please remove first
with 'make clean'"; \
fi;
@@ -115,7 +116,7 @@ version: revision
@echo ${VERSION}
install:
- cd build; make install
+ cd build; ${MAKE} install
#
# linux