TP-MAGIC-CONFIG - Online Linux Manual PageSection : 1
Updated : 07 August 2007
Source : 2007.08.07
Note : tp-magic-config
NAMEtp-magic-config -- Helps creating 'Magic' tool plugins for Tux Paint(1)
SYNOPSYStp-magic-config [−−apiversion | −−version | −−cflags | −−pluginprefix | −−plugindocprefix | −−dataprefix | −−localpluginprefix | −−localdataprefix]
DESCRIPTIONtp-magic-config is a simple shell script that responds with various pieces of information about the currently-installed version of Tux Paint(1) that are useful when building 'Magic' tool plugins.
OPTIONS−−apiversion Outputs the version of the Tux Paint 'Magic' tool plugin API that the installed copy of Tux Paint supports. (For API compatibility testing.) −−version Outputs the version of Tux Paint that tp-magic-config corresponds to. −−cflags Outputs the compiler flags that Tux Paint 'Magic' tool plugins should be compiled with. (For example, a "−I" include path option that tells the compiler where it can find the plugin API header file, "tp_magic_config.h", that plugins must #include.) −−pluginprefix Outputs the system directory where the installed copy of Tux Paint expects to find 'Magic' tool plugins (".so" shared objects). (e.g., "/usr/share/tuxpaint/plugins") −−localpluginprefix Outputs the user directory where the installed copy of Tux Paint expects to find 'Magic' tool plugins (".so" shared objects). (e.g., "/home/username/.tuxpaint/plugins") −−plugindocprefix Outputs the directory where the installed copy of Tux Paint expects to find documentation for 'Magic' tool plugins (".html" and ".txt" files). Tux Paint's main documentation includes a link to this directory under the section on "Magic" tools. −−dataprefix Outputs the system directory where the installed copy of Tux Paint keeps its global data files (e.g., "/usr/share/tuxpaint/"). This is the same value that plugins installed system-wide will receive in the "data_directory" string within the "magic_api" structure sent to the plugins' functions. −−localdataprefix Outputs the user directory where the installed copy of Tux Paint expects plugins to install their local data files. (e.g., "/home/username/.tuxpaint/plugins/data"). This is the same value that plugins installed locally will receive in the "data_directory" string within the "magic_api" structure sent to the plugins' functions.
SYSTEM-WIDE SHELL EXAMPLES$ gcc -shared `tp-magic-config --cflags` my_plugin.c -o my_plugin.so
# cp my_plugin.so `tp-magic-config −−pluginprefix`
# cp my_plugin_icon.png `tp-magic-config −−dataprefix`/images/magic
# cp my_plugin.html `tp-magic-config −−plugindocrefix`/html
# cp my_plugin.txt `tp-magic-config −−plugindocrefix`
LOCAL SHELL EXAMPLES$ gcc -shared `tp-magic-config --cflags` my_plugin.c -o my_plugin.so
$ mkdir -p `tp-magic-config −−localpluginprefix`
$ cp my_plugin.so `tp-magic-config −−localpluginprefix`
$ mkdir -p `tp-magic-config −−localdataprefix`/images/magic
$ cp my_plugin_icon.png `tp-magic-config −−localdataprefix`/images/magic
SYSTEM-WIDE MAKEFILE EXAMPLEMAGIC_CFLAGS=$(shell tp-magic-config --cflags)
MAGIC_PREFIX=$(shell tp-magic-config --pluginprefix)
MAGIC_DOC_PREFIX=$(shell tp-magic-config --plugindocprefix)
DATA_PREFIX=$(shell tp-magic-config --dataprefix) all: my_plugin.so my_plugin.so: my_plugin.c .PP$(CC) -shared $(MAGIC_CFLAGS) my_plugin.c -o my_plugin.so install: install-so install-data install-docs install-so:
mkdir -p $(MAGIC_PREFIX)
cp my_plugin.so $(MAGIC_PREFIX)/
chmod 644 $(MAGIC_PREFIX)/my_plugin.so install-data:
mkdir -p $(DATA_PREFIX)
cp icons/my_plugin_icon.png $(DATA_PREFIX)/images/magic/
chmod 644 $(DATA_PREFIX)/images/magic/my_plugin_icon.png install-docs:
mkdir -p $(MAGIC_DOC_PREFIX)
cp docs/my_plugin.html $(MAGIC_DOC_PREFIX)/html/
chmod 644 $(MAGIC_DOC_PREFIX)/html/my_plugin.html
cp docs/my_plugin.txt $(MAGIC_DOC_PREFIX)/
chmod 644 $(MAGIC_DOC_PREFIX)/my_plugin.txt
AUTHORBill Kendrick. <bill@newbreedsoftware.com>
SEE ALSOtuxpaint(1), And documentation within /usr/[local/]share/doc/tuxpaint/. 0
Johanes Gumabo
Data Size : 14,153 byte
man-tp-magic-config.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 237,960
Visitor ID : :
Visitor IP : 18.220.94.189 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_PP|3|tp-magic-config.1|94|7|.PP $(CC) -shared $(MAGIC_CFLAGS) my_plugin.c -o my_plugin.so
)