plug-ins: add X11 Mouse Cursor plug-in

This commit adds a plug-in to read and write X11 mouse cursor files.
This commit is contained in:
Takeshi Matsuyama 2009-05-27 12:04:35 +09:00 committed by Sven Neumann
parent aac9e75ec3
commit 27cec2c3f2
6 changed files with 2370 additions and 0 deletions

View file

@ -253,6 +253,11 @@ These are:
--without-script-fu. If for some reason you don't want to build the
Script-Fu plug-in, you can use --without-script-fu.
--without-xmc. The X11 Mouse Cursor(XMC) plug-in needs libXcursor
and configure checks for its presense. If for some reason you
don't want to build the XMC plug-in even though the library is
installed, use --without-xmc to disable it explicitly.
The `make' command builds several things:
- A bunch of public libraries in the directories starting with 'libgimp'.

View file

@ -1431,6 +1431,29 @@ AC_SUBST(LCMS)
AM_CONDITIONAL(HAVE_LCMS, test "x$have_lcms" = xyes)
######################
# Check for libXcursor
######################
AC_ARG_WITH(xmc,[ --without-xmc build without Xcursor support])
have_xmc=no
if test "x$with_xmc" != xno; then
have_xmc=yes
PKG_CHECK_MODULES(XMC, xcursor,
FILE_XMC='file-xmc$(EXEEXT)',
have_xmc="no (libXcursor not found)")
else
have_xmc="no (libXcursor support disabled)"
fi
if test "x$have_xmc" = xyes; then
MIME_TYPES="$MIME_TYPES;image/x-xcursor"
fi
AC_SUBST(FILE_XMC)
################
# Check for alsa
################
@ -2104,6 +2127,7 @@ Optional Plug-Ins:
Windows ICO $have_libpng
WMF: $have_libwmf
XJT: $have_xjt
X11 Mouse Cursor: $have_xmc
XPM: $have_libxpm
Plug-In Features:

View file

@ -80,6 +80,7 @@
/file-tiff-save
/file-wmf
/file-xbm
/file-xmc
/file-xpm
/file-xwd
/film

View file

@ -115,6 +115,7 @@ libexec_PROGRAMS = \
$(FILE_TIFF_SAVE) \
$(FILE_WMF) \
file-xbm \
$(FILE_XMC) \
$(FILE_XPM) \
file-xwd \
film \
@ -194,6 +195,7 @@ EXTRA_PROGRAMS = \
file-tiff-load \
file-tiff-save \
file-wmf \
file-xmc \
file-xpm \
lcms \
mail \
@ -1437,6 +1439,23 @@ file_xbm_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
file_xmc_SOURCES = \
file-xmc.c
file_xmc_LDADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpmodule) \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS) \
$(XMC_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
file_xpm_SOURCES = \
file-xpm.c

2320
plug-ins/common/file-xmc.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -77,6 +77,7 @@
'file-tiff-save' => { ui => 1, optional => 1, libs => 'TIFF_LIBS' },
'file-wmf' => { ui => 1, optional => 1, libs => 'WMF_LIBS', cflags => 'WMF_CFLAGS' },
'file-xbm' => { ui => 1 },
'file-xmc' => { ui => 1, optional => 1, libs => 'XMC_LIBS' },
'file-xpm' => { ui => 1, optional => 1, libs => 'XPM_LIBS' },
'file-xwd' => { ui => 1 },
'film' => { ui => 1 },