On Mon, 7 Aug 2017, Sebastien BALLET wrote:
That's really weird. It would be better to find why cmake finds freetype
/in usr/local/include instead of /usr/include, but, you can try this hack:
Edit scribus.SlackBuild, then, modify the cmake block (starting at line
#76) as below (changes are in bold) :
8<--------------------------------------
cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DRENDER_LIB=CAIRO \
-D FREETYPE_INCLUDE_DIRS:PATH="/usr/include/freetype2" \
./CMakeLists.txt
8<--------------------------------------
Sebastian,
Yes, it would be nice to learn why cmake finds freetype in
/usr/local/include/ when it's actually in /usr/include/.
I deleted the space between -D and FREETYPE... above and with
freetype-2.5.5 installed this error is produced:
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/SBo/scribus-1.4.6
./scribus.SlackBuild: line 83:
-DFREETYPE_INCLUDE_DIRS:PATH=/usr/include/freetype2: No such file or
directory
/usr/include/ has freetype2/ with all the expected files, and freetype/
with this softlink:
lrwxrwxrwx 1 root root 9 Aug 7 08:45 /usr/include/freetype -> freetype2/
which was apparently generated when I tried the above build.
For completeness, using freetype--2.6.3-i586-1, scribus-1.4.6 builds.
Summary: On my system, scribus-1.4.6 builds with freetype-2.5.0 and
-2.6.3, but not 2.5.5. Figuring out why is well beyond my experience.
Thanks again,
Rich
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/