Lines 26-45
Link Here
|
26 |
libsigc-2.0.so:devel/libsigc++20 \ |
26 |
libsigc-2.0.so:devel/libsigc++20 \ |
27 |
libtiff.so:graphics/tiff |
27 |
libtiff.so:graphics/tiff |
28 |
|
28 |
|
29 |
USES= cmake desktop-file-utils compiler:gcc-c++11-lib gnome \ |
29 |
USES= cmake desktop-file-utils gnome \ |
30 |
jpeg localbase:ldflags pkgconfig tar:xz |
30 |
jpeg localbase:ldflags pkgconfig tar:xz |
31 |
|
31 |
|
32 |
DOS2UNIX_REGEX= .*\.(cc|h) |
32 |
DOS2UNIX_REGEX= .*\.(cc|h) |
33 |
LDFLAGS+= -Wl,--as-needed # fontconfig, freetype, gettext, libX11 |
33 |
LDFLAGS+= -Wl,--as-needed # fontconfig, freetype, gettext, libX11 |
34 |
USE_GNOME= gtkmm30 librsvg2 |
34 |
USE_GNOME= gtkmm30 librsvg2 |
35 |
USE_GCC= 9+ |
|
|
36 |
USE_BINUTILS= yes |
35 |
USE_BINUTILS= yes |
37 |
|
36 |
|
38 |
_LTO_FLAGS= -flto=${_MAKE_JOBS_NUMBER} -fuse-linker-plugin |
37 |
CFLAGS+= -I${LOCALBASE}/include -fPIC ${_OPT_FLAGS} |
39 |
_AR= ${CC:S/gcc/gcc-ar/} |
38 |
LDFLAGS+= -Wl,--as-needed -lpthread ${_OPT_FLAGS} |
40 |
_RANLIB= ${CC:S/gcc/gcc-ranlib/} |
|
|
41 |
CFLAGS+= -I${LOCALBASE}/include -fPIC ${_LTO_FLAGS} ${_OPT_FLAGS} |
42 |
LDFLAGS+= -Wl,--as-needed -lpthread ${_LTO_FLAGS} ${_OPT_FLAGS} |
43 |
CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ |
39 |
CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ |
44 |
-DCREDITSDIR="${DOCSDIR}" \ |
40 |
-DCREDITSDIR="${DOCSDIR}" \ |
45 |
-DLICENCEDIR="${DOCSDIR}" \ |
41 |
-DLICENCEDIR="${DOCSDIR}" \ |
Lines 47-54
Link Here
|
47 |
-DDATADIR="${DATADIR}" \ |
43 |
-DDATADIR="${DATADIR}" \ |
48 |
-DCACHE_NAME_SUFFIX="" \ |
44 |
-DCACHE_NAME_SUFFIX="" \ |
49 |
-Wno-dev \ |
45 |
-Wno-dev \ |
50 |
-DCMAKE_AR:FILEPATH=${_AR} \ |
|
|
51 |
-DCMAKE_RANLIB:FILEPATH=${_RANLIB} \ |
52 |
-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW |
46 |
-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW |
53 |
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default |
47 |
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default |
54 |
# any more. The CMP0056 policy must be explicitly set to NEW to ensure |
48 |
# any more. The CMP0056 policy must be explicitly set to NEW to ensure |