Skip to content

Commit f77c897

Browse files
authored
Merge pull request #19 from rodlie/master
1.2.0
2 parents b179b66 + 256e830 commit f77c897

17 files changed

+288
-163
lines changed

.travis.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1+
sudo: required
12
language: cpp
23
compiler: g++
3-
dist: xenial
4-
sudo: required
5-
6-
before_install:
7-
- sudo apt remove --purge imagemagick imagemagick-common
8-
- sudo apt-get update
4+
matrix:
5+
include:
6+
- os: linux
7+
dist: xenial
8+
- os: osx
9+
osx_image: xcode8
910

10-
install:
11-
- sudo apt-get install cmake tree qtbase5-dev libpng-dev libjpeg-dev liblcms2-dev libtiff-dev libbz2-dev zlib1g-dev liblzma-dev
12-
- sudo apt-get install scons autoconf automake autopoint bash bison bzip2 flex g++ g++-multilib gettext git gperf intltool
13-
- sudo apt-get install libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libssl-dev libtool-bin libxml-parser-perl make
14-
- sudo apt-get install openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils wine
15-
- sudo apt-get install libfreetype6-dev libfontconfig1-dev
16-
1711
script:
1812
- sh res/travis.sh
1913

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ set(COMPANY "Cyan")
5757
set(COPYRIGHT "Copyright Ole-Andre Rodlie, INRIA. All rights reserved.")
5858
set(IDENTIFIER "net.fxarena.cyan")
5959

60+
if(CMAKE_BUILD_TYPE MATCHES RELEASE)
61+
add_definitions(-DQT_NO_DEBUG_OUTPUT)
62+
endif()
63+
6064
if(APPLE)
6165
set(ICON_FILE ${RESOURCE_FOLDER}/${PROJECT_NAME}.icns)
6266
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7")

cyan.pro

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,18 @@ TEMPLATE = app
5959
CONFIG += c++11
6060
QT_CONFIG -= no-pkg-config
6161
CONFIG += link_pkgconfig
62-
PKGCONFIG += lcms2 ImageMagick++
63-
LIBS += `pkg-config --libs --static ImageMagick++`
62+
PKGCONFIG += lcms2
63+
MAGICK_CONFIG = ImageMagick++
64+
!isEmpty(MAGICK): MAGICK_CONFIG = $${MAGICK}
65+
PKG_CONFIG_BIN = pkg-config
66+
!isEmpty(CUSTOM_PKG_CONFIG): PKG_CONFIG_BIN = $${CUSTOM_PKG_CONFIG}
67+
68+
PKGCONFIG += $${MAGICK_CONFIG}
69+
LIBS += `$${PKG_CONFIG_BIN} --libs --static $${MAGICK_CONFIG}`
70+
71+
isEmpty(PREFIX): PREFIX = /usr/local
72+
isEmpty(DOCDIR): DOCDIR = $$PREFIX/share/doc
73+
isEmpty(MANDIR): MANDIR = $$PREFIX/share/man
6474

6575
DEFINES += CYAN_VERSION=\"\\\"$${VERSION}$${VERSION_TYPE}\\\"\"
6676
DEFINES += CYAN_GIT=\"\\\"$${GIT}\\\"\"
@@ -69,10 +79,55 @@ QMAKE_TARGET_PRODUCT = "$${TARGET}"
6979
QMAKE_TARGET_DESCRIPTION = "$${TARGET}"
7080
QMAKE_TARGET_COPYRIGHT = "Copyright Ole-Andre Rodlie, INRIA"
7181

82+
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
83+
84+
unix:!mac {
85+
target.path = $${PREFIX}/bin
86+
target_desktop.path = $${PREFIX}/share/applications
87+
target_desktop.files = res/cyan.desktop
88+
target_docs.path = $${DOCDIR}/$${TARGET}-$${VERSION}
89+
target_docs.files = LICENSE
90+
INSTALLS += target target_desktop target_docs
91+
92+
icon16.files = res/hicolor/16x16/apps/cyan.png
93+
icon16.path = $${PREFIX}/share/icons/hicolor/16x16/apps
94+
icon20.files = res/hicolor/20x20/apps/cyan.png
95+
icon20.path = $${PREFIX}/share/icons/hicolor/20x20/apps
96+
icon22.files = res/hicolor/22x22/apps/cyan.png
97+
icon22.path = $${PREFIX}/share/icons/hicolor/22x22/apps
98+
icon24.files = res/hicolor/24x24/apps/cyan.png
99+
icon24.path = $${PREFIX}/share/icons/hicolor/24x24/apps
100+
icon32.files = res/hicolor/32x32/apps/cyan.png
101+
icon32.path = $${PREFIX}/share/icons/hicolor/32x32/apps
102+
icon48.files = res/hicolor/48x48/apps/cyan.png
103+
icon48.path = $${PREFIX}/share/icons/hicolor/48x48/apps
104+
icon64.files = res/hicolor/64x64/apps/cyan.png
105+
icon64.path = $${PREFIX}/share/icons/hicolor/64x64/apps
106+
icon72.files = res/hicolor/72x72/apps/cyan.png
107+
icon72.path = $${PREFIX}/share/icons/hicolor/72x72/apps
108+
icon96.files = res/hicolor/96x96/apps/cyan.png
109+
icon96.path = $${PREFIX}/share/icons/hicolor/96x96/apps
110+
icon128.files = res/hicolor/128x128/apps/cyan.png
111+
icon128.path = $${PREFIX}/share/icons/hicolor/128x128/apps
112+
icon160.files = res/hicolor/160x160/apps/cyan.png
113+
icon160.path = $${PREFIX}/share/icons/hicolor/160x160/apps
114+
icon192.files = res/hicolor/192x192/apps/cyan.png
115+
icon192.path = $${PREFIX}/share/icons/hicolor/192x192/apps
116+
icon256.files = res/hicolor/256x256/apps/cyan.png
117+
icon256.path = $${PREFIX}/share/icons/hicolor/256x256/apps
118+
icon512.files = res/hicolor/512x512/apps/cyan.png
119+
icon512.path = $${PREFIX}/share/icons/hicolor/512x512/apps
120+
121+
INSTALLS += icon16 icon20 icon22 \
122+
icon24 icon32 icon48 \
123+
icon64 icon72 icon96 \
124+
icon128 icon160 icon192 \
125+
icon256 icon512
126+
}
72127
mac {
73128
ICON = res/Cyan.icns
74129
QMAKE_INFO_PLIST = res/Info.plist
75-
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
130+
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
76131
QMAKE_CXXFLAGS += -fopenmp
77132
QMAKE_LFLAGS += -fopenmp
78133
}

docs/ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.2.0 - TBA
1+
## 1.2.0 - 20181203
22

33
* Major "behind-the-scene" changes
44
* Improved performance

docs/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ Cyan is an open source cross-platform image viewer and converter, designed for [
1919

2020
# Requirements
2121

22-
* 4GB RAM (+)
23-
* Microsoft Windows 7 x64 (+)
24-
* Apple Mac OS X Lion 10.7 (+)
25-
* Linux/FreeBSD (source-only)
22+
* [![Download for Windows](https://github.com/rodlie/cyan/raw/master/docs/images/download_for_windows.png)](https://github.com/rodlie/cyan/releases/latest) Microsoft Windows 7/8/10 x64
23+
* [![Download for Mac](https://github.com/rodlie/cyan/raw/master/docs/images/download_for_mac.png)](https://github.com/rodlie/cyan/releases/latest) Apple Mac OS X 10.10-10.14
24+
* [![Download for Linux](https://github.com/rodlie/cyan/raw/master/docs/images/download_for_linux.png)](https://github.com/rodlie/cyan/releases/latest) GNU/Linux x86_64 (glibc 2.23+/libgcc 5.4+)
2625

27-
Recommended requirements and additional files:
26+
## Recommended
2827

2928
* A bitmap editor
3029
* [GIMP](https://www.gimp.org)

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
theme: jekyll-theme-minimal
22
title: Cyan
3-
description: Open Source prepress image viewer and converter
3+
description: Open source prepress image viewer and converter
44
logo: https://github.com/rodlie/cyan/raw/master/res/hicolor/256x256/apps/cyan.png
5-
show_downloads: true
5+
show_downloads: false

docs/_layouts/default.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<img src="{{site.logo | relative_url}}" alt="Logo" />
1919
{% endif %}
2020

21-
<a target="_blank" href="https://sourceforge.net/projects/prepress/files/latest/download"><img alt="Download Cyan" src="https://a.fsdn.com/con/app/sf-download-button" width=276 height=48 srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a>
21+
<!-- <a target="_blank" href="https://sourceforge.net/projects/prepress/files/latest/download"><img alt="Download Cyan" src="https://a.fsdn.com/con/app/sf-download-button" width=276 height=48 srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a> -->
22+
<a target="_blank" href="https://github.com/rodlie/cyan/releases/latest"><img alt="Download Cyan" src="https://a.fsdn.com/con/app/sf-download-button" width=276 height=48 srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a>
2223

2324
{% if site.show_downloads %}
2425
<ul class="downloads">

docs/cyan.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h1 id="open-source">Open Source</h1>
105105
_3RDPARTY_
106106
</p>
107107

108-
<p align="justify">The source repository is hosted on <a href="https://github.com/rodlie/cyan">Github</a> and the binaries are hosted on <a href="https://sourceforge.net/projects/prepress">Sourceforge</a>. <a href="https://travis-ci.org/">Travis CI</a> is used to build and deploy the binaries.</p>
108+
<p align="justify">Hosted on <a href="https://github.com/rodlie/cyan">Github</a> and <a href="https://sourceforge.net/projects/prepress">Sourceforge</a>. <a href="https://travis-ci.org/">Travis CI</a> is used to build and deploy the binaries.</p>
109109

110110
<p></p>
111111

docs/images/cyan-promo-01.png

1.51 KB
Loading

docs/images/download_for_linux.png

1.25 KB
Loading

docs/images/download_for_mac.png

1.62 KB
Loading

docs/images/download_for_windows.png

1.53 KB
Loading

0 commit comments

Comments
 (0)