Skip to content
Permalink
Browse files

Unix Desktop integration

git-svn-id: svn://scit.us/dawg/stable@341 7e5b8c5c-87e2-0310-a459-8d91125b37d5
  • Loading branch information...
reedacartwright committed Apr 6, 2009
1 parent 77083c8 commit a9e5349e4ccdbeb463cd5e22687293dd2a5d16b0
Showing with 27 additions and 4 deletions.
  1. +2 −2 CMakeLists.txt
  2. +10 −0 postflight.sh.in
  3. +2 −2 src/CMakeLists.txt
  4. +13 −0 src/dawg.desktop
  5. BIN src/dawg.png
@@ -97,7 +97,7 @@ SET(CPACK_SOURCE_IGNORE_FILES
"${PROJ_NAME}[-]${PROJ_VERSION_MAJOR}" "${PROJ_NAME}$" "${PROJ_NAME}\\\\.exe"
)

SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Simulator of Sequence Evolution")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Sequence Evolution Simulator")
SET(CPACK_PACKAGE_VENDOR "Reed A. Cartwright, PhD <reed@scit.us>")
SET(CPACK_PACKAGE_EXECUTABLES "dawg" "Dawg")
SET(CPACK_CREATE_DESKTOP_LINKS "dawg")
@@ -150,7 +150,7 @@ IF(WIN32 AND NOT UNIX)
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\scit.us\\\\projects\\\\dawg\\\\")
SET(CPACK_NSIS_CONTACT "reed@scit.us")
SET(CPACK_NSIS_DISPLAY_NAME "${PROJ_NAME} ${PROJ_VERSION}")
SET(CPACK_NSIS_MODIFY_PATH ON)
SET(CPACK_NSIS_MODIFY_PATH ON)
ELSEIF(APPLE)
SET(CPACK_GENERATOR "PackageMaker")
SET(CPACK_SOURCE_GENERATOR "TGZ")
@@ -0,0 +1,10 @@
#!/bin/bash
app1="$2/@PROJ_BUNDLE_NAME@.app/Contents/MacOS/@PROJ_BUNDLE_NAME@"
app2="$2/@PROJ_BUNDLE_NAME@/bin/dawg"
if [ -x "$app1" ]; then
ln -s "$app1" /usr/bin/dawg
elif [ -x "$app2" ]; then
ln -s "$app2" /usr/bin/dawg
fi
exit 0

@@ -101,8 +101,8 @@ ENDIF(APPLE_BUNDLE_APP)
INSTALL(TARGETS dawg RUNTIME DESTINATION bin ${PROJ_INSTALL_EXTRA_ARGS})

IF(UNIX)
# INSTALL(FILES dawg.desktop DESTINATION share/applications )
# INSTALL(FILES dawg.png DESTINATION share/pixmaps )
INSTALL(FILES dawg.desktop DESTINATION share/applications )
INSTALL(FILES dawg.png DESTINATION share/pixmaps )
ENDIF(UNIX)

IF(APPLE_BUNDLE_APP)
@@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Dawg
Comment=Sequence Evolution Simulator
Exec=dawg %f
TryExec=dawg
Icon=dawg
Terminal=true
X-MultipleArgs=false
Type=Application
Categories=Application;Education;Science;Biology;
StartupNotify=false
BIN +2.5 KB src/dawg.png
Binary file not shown.

0 comments on commit a9e5349

Please sign in to comment.
You can’t perform that action at this time.