<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
- <string>@DEAL_II_PACKAGE_NAME@</string>
+ <string>@DEAL_II_CPACK_BUNDLE_NAME@</string>
<key>CFBundleGetInfoString</key>
- <string>@DEAL_II_PACKAGE_VERSION@</string>
+ <string>@DEAL_II_CPACK_BUNDLE_NAME@-@DEAL_II_PACKAGE_VERSION@</string>
<key>CFBundleIconFile</key>
- <string>deal.II</string>
+ <string>@DEAL_II_CPACK_BUNDLE_NAME@</string>
<key>CFBundleIdentifier</key>
<string>org.dealii</string>
<key>CFBundleInfoDictionaryVersion</key>
<key>CFBundleShortVersionString</key>
<string>@DEAL_II_PACKAGE_VERSION@</string>
<key>CFBundleSignature</key>
- <string>@DEAL_II_PACKAGE_NAME@</string>
+ <string>@DEAL_II_CPACK_BUNDLE_NAME@-@DEAL_II_PACKAGE_VERSION@</string>
<key>CFBundleVersion</key>
<string>@DEAL_II_PACKAGE_VERSION@</string>
<key>NSHumanReadableCopyright</key>
<string>GPL</string>
<key>LSMinimumSystemVersion</key>
- <string>10.9</string>
+ <string>10.11</string>
</dict>
</plist>
# Make sure DEAL_II_BUNDLE is set correctly
if [ -z "$DEAL_II_BUNDLE" ]; then
- export DEAL_II_BUNDLE=/Applications/deal.II.app
+ export DEAL_II_BUNDLE=/Applications/@DEAL_II_CPACK_BUNDLE_NAME@.app
if [ ! -d $DEAL_II_BUNDLE ]; then
return=`/usr/bin/osascript <<EOF
tell app "System Events"
# Make sure DEAL_II_BUNDLE is set correctly
if [ -z "$DEAL_II_BUNDLE" ]; then
- export DEAL_II_BUNDLE=/Applications/deal.II.app
+ export DEAL_II_BUNDLE=/Applications/@DEAL_II_CPACK_BUNDLE_NAME@.app
if [ ! -d $DEAL_II_BUNDLE ]; then
cat << EOF
*** Warning: I did not find the deal.II installation in $DEAL_II_BUNDLE.
export DEAL_II_DIR=$DEAL_II_RESOURCES
# Do whatever the external library tells us to
-if [ -f $DEAL_II_RESOURCES/opt/external.conf ]; then
- . $DEAL_II_RESOURCES/opt/external.conf
+if [ -f $DEAL_II_RESOURCES/@DEAL_II_CPACK_EXTERNAL_LIBS@/external.conf ]; then
+ . $DEAL_II_RESOURCES/@DEAL_II_CPACK_EXTERNAL_LIBS@/external.conf
fi
if [ -z "$DEAL_II_CONF_SILENT" ]; then
This is a shell with PATHs and \${EXTERNAL_LIB}_DIR setup to work with Deal.II.
All external libraries are located in
- $DEAL_II_RESOURCES/opt/
+ $DEAL_II_RESOURCES/@DEAL_II_CPACK_EXTERNAL_LIBS@/
If you are new to Deal.II you probably want to have a look at
if ! [[ -x /usr/bin/xcodebuild ]]; then
cat << EOF
*** Warning: This package requires XCode to be installed in order to run.
- Please install XCode from the OS X install disc before you continue.
+ Please install XCode before you continue.
EOF
fi
#
# DEAL_II_WITH_64BIT_INDICES
# DEAL_II_DOXYGEN_USE_MATHJAX
-# DEAL_II_CPACK_EXTERNAL_LIBS_TREE
-#
+# DEAL_II_CPACK_BUNDLE_NAME
+# DEAL_II_CPACK_EXTERNAL_LIBS
#
# *) May also be set via environment variable (CXXFLAGS, LDFLAGS)
# (a nonempty cached variable has precedence and will not be
)
MARK_AS_ADVANCED(DEAL_II_DOXYGEN_USE_MATHJAX)
-SET(DEAL_II_CPACK_EXTERNAL_LIBS_TREE "" CACHE PATH
- "Path to tree of external libraries that will be installed in bundle package."
+SET(DEAL_II_CPACK_EXTERNAL_LIBS "opt" CACHE STRING
+ "A relative path to tree of external libraries that will be installed in bundle package. The path is relative to the /Applications/${DEAL_II_CPACK_BUNDLE_NAME}.app/Contents/Resources directory. It defaults to opt, but you may want to use a different value, for example if you want to distribute a brew based package."
+ )
+MARK_AS_ADVANCED(DEAL_II_CPACK_EXTERNAL_LIBS)
+
+SET(DEAL_II_CPACK_BUNDLE_NAME "${DEAL_II_PACKAGE_NAME}" CACHE STRING
+ "Name of the application bundle to generate."
)
-MARK_AS_ADVANCED(DEAL_II_CPACK_EXTERNAL_LIBS_TREE)
+MARK_AS_ADVANCED(DEAL_II_CPACK_BUNDLE_NAME)
########################################################################
set(CPACK_PACKAGE_FILE_NAME
"dealii-${DEAL_II_PACKAGE_VERSION}"
)
+ MESSAGE(STATUS " Disk filename: ${CPACK_PACKAGE_FILE_NAME}.dmg")
set(CPACK_BUNDLE_NAME
- "${DEAL_II_PACKAGE_NAME}"
+ "${DEAL_II_CPACK_BUNDLE_NAME}"
)
+ MESSAGE(STATUS " Application: ${DEAL_II_CPACK_BUNDLE_NAME}.app")
SET(CPACK_BUNDLE_ICON
"${CMAKE_SOURCE_DIR}/cmake/cpack-mac-bundle/dealii-icon.icns"
DESTINATION ${DEAL_II_EXECUTABLE_RELDIR}
)
- IF(NOT "${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}" STREQUAL "")
- INSTALL(DIRECTORY ${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}/
- DESTINATION opt
- USE_SOURCE_PERMISSIONS
- )
+ IF(NOT "${DEAL_II_CPACK_EXTERNAL_LIBS}" STREQUAL "")
+ SET(_SRC "/Applications/${DEAL_II_CPACK_BUNDLE_NAME}.app/Contents/Resources/${DEAL_II_CPACK_EXTERNAL_LIBS}/")
+ IF(IS_DIRECTORY ${_SRC})
+ MESSAGE(STATUS " Will copy ${_SRC} *as is* in the generated package")
+ INSTALL(DIRECTORY ${_SRC}
+ DESTINATION ${DEAL_II_CPACK_EXTERNAL_LIBS}
+ USE_SOURCE_PERMISSIONS
+ )
+ ENDIF()
ENDIF()
INCLUDE(CPack)