From c6ae8c4191c4b168a595648234d968ff02790b89 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 30 Oct 2015 16:49:13 +0100 Subject: [PATCH] Update spec file for latest OSX versions --- bacula/platforms/osx/Makefile.in | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/bacula/platforms/osx/Makefile.in b/bacula/platforms/osx/Makefile.in index f62e031dd3..512c81ee54 100644 --- a/bacula/platforms/osx/Makefile.in +++ b/bacula/platforms/osx/Makefile.in @@ -16,12 +16,12 @@ BACULA_VERSION:=@VERSION@ BACULA_DL_URL:=http://downloads.sourceforge.net/project/bacula/bacula/${BACULA_VERSION}/bacula-${BACULA_VERSION}.tar.gz # Build universal binary. Comment out when building versions of bacula < 3.0.0 -ARCHFLAGS:=-arch i386 -arch ppc -MACOSX_SDK_SYSROOT:=/Developer/SDKs/MacOSX10.4u.sdk -MACOSX_VERSION_FLAGS:=-mmacosx-version-min=10.4 +ARCHFLAGS:= +MACOSX_SDK_SYSROOT:= +MACOSX_VERSION_FLAGS:= # Tools -PM:=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker +PB:=/usr/bin/pkgbuild MAKE:=/usr/bin/make CURL:=/usr/bin/curl TAR:=/usr/bin/tar @@ -73,17 +73,17 @@ CONFIGFLAGS:= \ --with-basename=@BASENAME@ \ --with-hostname=@HOSTNAME@ \ --with-working-dir=${BACULA_WORKING_DIR} -CPPFLAGS:=-isysroot ${MACOSX_SDK_SYSROOT} ${MACOSX_VERSION_FLAGS} -CFLAGS:=-O -g ${ARCHFLAGS} +CPPFLAGS:= +CFLAGS:=-O -g CXXFLAGS:=${CFLAGS} -LDFLAGS:=-Wl,-syslibroot,${MACOSX_SDK_SYSROOT} ${MACOSX_VERSION_FLAGS} ${ARCHFLAGS} +LDFLAGS:= # required on snow leopard: compiling for 10.4 requires usage of gcc 4.0 # system defaults to version 4.2 -CC:=gcc-4.0 -CPP:=cpp-4.0 -CXX:=g++-4.0 -CXXPP:=cpp-4.0 +CC:=gcc +CPP:=cpp +CXX:=g++ +CXXPP:=cpp # Placeholders for *.in files INFILE_SUBST=\ @@ -99,8 +99,11 @@ dmg: pkg pkg: ${BACULA_DESTDIR} ${BACULA_PMDOC} ${WORKING_DIR}/resources mkdir -p "${PACKAGE_DIR}" - ${PM} --doc "${BACULA_PMDOC}" --id "${PACKAGE_ID}" --no-recommend --out "${PACKAGE_BUNDLE}" + mkdir -p "${CURDIR}/${BACULA_DESTDIR}${WORKING_DIR}" + ${PB} --identifier "${PACKAGE_ID}" --root "${CURDIR}/${BACULA_DESTDIR}" "Bacula Enterprise File Daemon-${BACULA_VERSION}.pkg" + + cp "Bacula Enterprise File Daemon-${BACULA_VERSION}.pkg" "${PACKAGE_DIR}" cp ${WORKING_DIR}/resources/ReadMe.html "${PACKAGE_DIR}/ReadMe.html" sed ${INFILE_SUBST} \ -- 2.39.5