home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 November / PCO_1198.ISO / filesbbs / os2 / gimpos2.arj / GIMP10BI.ZIP / XFree86 / src / diffs / gimp100.diff
Encoding:
Text File  |  1998-09-14  |  154.8 KB  |  5,696 lines

  1. diff -crN gimp-1.0.0.orig/app/about_dialog.c gimp-1.0.0/app/about_dialog.c
  2. *** gimp-1.0.0.orig/app/about_dialog.c    Sat May 30 15:31:54 1998
  3. --- gimp-1.0.0/app/about_dialog.c    Fri Sep 11 22:41:08 1998
  4. ***************
  5. *** 24,29 ****
  6. --- 24,33 ----
  7.   
  8.   #include "config.h"
  9.   
  10. + #ifdef __EMX__
  11. + extern const char *__XOS2RedirRoot(const char *);
  12. + #endif
  13.   #define ANIMATION_STEPS 16
  14.   #define ANIMATION_SIZE 2
  15.   
  16. ***************
  17. *** 281,287 ****
  18. --- 285,295 ----
  19.     if (logo_pixmap)
  20.       return TRUE;
  21.   
  22. + #ifndef __EMX__
  23.     sprintf (buf, "%s/gimp_logo.ppm", DATADIR);
  24. + #else
  25. +   sprintf (buf, "%s/gimp_logo.ppm", __XOS2RedirRoot(DATADIR));
  26. + #endif
  27.   
  28.     fp = fopen (buf, "rb");
  29.     if (!fp)
  30. diff -crN gimp-1.0.0.orig/app/app_procs.c gimp-1.0.0/app/app_procs.c
  31. *** gimp-1.0.0.orig/app/app_procs.c    Sat May 30 15:31:56 1998
  32. --- gimp-1.0.0/app/app_procs.c    Fri Jul 10 14:49:54 1998
  33. ***************
  34. *** 59,64 ****
  35. --- 59,68 ----
  36.   
  37.   #include "config.h"
  38.   
  39. + #ifdef __EMX__
  40. + extern const char *__XOS2RedirRoot(const char *);
  41. + #endif
  42.   #define LOGO_WIDTH_MIN 350
  43.   #define LOGO_HEIGHT_MIN 110 
  44.   #define NAME "The GIMP"
  45. ***************
  46. *** 149,155 ****
  47. --- 153,163 ----
  48.     if (logo_pixmap)
  49.       return TRUE;
  50.   
  51. + #ifndef __EMX__
  52.     sprintf (buf, "%s/gimp_splash.ppm", DATADIR);
  53. + #else
  54. +   sprintf (buf, "%s/gimp_splash.ppm", __XOS2RedirRoot(DATADIR));
  55. + #endif
  56.   
  57.     fp = fopen (buf, "r");
  58.     if (!fp)
  59. ***************
  60. *** 184,190 ****
  61. --- 192,202 ----
  62.     if (logo_pixmap)
  63.       return TRUE;
  64.   
  65. + #ifndef __EMX__
  66.     sprintf (buf, "%s/gimp_splash.ppm", DATADIR);
  67. + #else
  68. +   sprintf (buf, "%s/gimp_splash.ppm", __XOS2RedirRoot(DATADIR));
  69. + #endif
  70.   
  71.     fp = fopen (buf, "r");
  72.     if (!fp)
  73. diff -crN gimp-1.0.0.orig/app/datafiles.c gimp-1.0.0/app/datafiles.c
  74. *** gimp-1.0.0.orig/app/datafiles.c    Thu May 28 17:03:04 1998
  75. --- gimp-1.0.0/app/datafiles.c    Sat Jul 11 14:52:18 1998
  76. ***************
  77. *** 70,76 ****
  78. --- 70,80 ----
  79.   
  80.     next_token = local_path;
  81.   
  82. + #ifndef __EMX__
  83.     token = xstrsep(&next_token, ":");
  84. + #else
  85. +   token = xstrsep(&next_token, ";");
  86. + #endif
  87.   
  88.     while (token)
  89.       {
  90. ***************
  91. *** 126,132 ****
  92. --- 130,140 ----
  93.   
  94.         g_free(path);
  95.   
  96. + #ifndef __EMX__
  97.         token = xstrsep(&next_token, ":");
  98. + #else
  99. +       token = xstrsep(&next_token, ";");
  100. + #endif
  101.       } /* while */
  102.   
  103.     g_free(local_path);
  104. diff -crN gimp-1.0.0.orig/app/general.c gimp-1.0.0/app/general.c
  105. *** gimp-1.0.0.orig/app/general.c    Mon Apr 13 13:38:30 1998
  106. --- gimp-1.0.0/app/general.c    Sat Jul 11 14:52:48 1998
  107. ***************
  108. *** 50,56 ****
  109. --- 50,60 ----
  110.     int err;
  111.   
  112.     local_path = g_strdup (search_path);
  113. + #ifndef __EMX__
  114.     token = strtok (local_path, ":");
  115. + #else
  116. +   token = strtok (local_path, ";");
  117. + #endif
  118.   
  119.     while (token)
  120.       {
  121. ***************
  122. *** 67,73 ****
  123. --- 71,81 ----
  124.         break;
  125.       }
  126.   
  127. + #ifndef __EMX__
  128.         token = strtok (NULL, ":");
  129. + #else
  130. +       token = strtok (NULL, ";");
  131. + #endif
  132.       }
  133.   
  134.     g_free (local_path);
  135. diff -crN gimp-1.0.0.orig/app/gimp2.def gimp-1.0.0/app/gimp2.def
  136. *** gimp-1.0.0.orig/app/gimp2.def    Thu Jan  1 00:00:00 1970
  137. --- gimp-1.0.0/app/gimp2.def    Sun Sep 13 03:29:24 1998
  138. ***************
  139. *** 0 ****
  140. --- 1,3 ----
  141. + NAME WINDOWCOMPAT
  142. + DESCRIPTION 'GIMP/2 for XFree86/OS2 v1.0.0'
  143. + STACKSIZE 1048576
  144. diff -crN gimp-1.0.0.orig/app/gimprc.c gimp-1.0.0/app/gimprc.c
  145. *** gimp-1.0.0.orig/app/gimprc.c    Sat May 30 15:32:06 1998
  146. --- gimp-1.0.0/app/gimprc.c    Sat Jul 11 19:23:16 1998
  147. ***************
  148. *** 33,38 ****
  149. --- 33,42 ----
  150.   #include "plug_in.h"
  151.   #include "gimage.h"
  152.   
  153. + #ifdef __EMX__
  154. + extern const char *__XOS2RedirRoot(const char *);
  155. + #endif
  156.   #define ERROR  0
  157.   #define DONE   1
  158.   #define OK     2
  159. ***************
  160. *** 158,163 ****
  161. --- 162,170 ----
  162.   static void gimprc_set_token (char *token, char *value);
  163.   static Argument * gimprc_query (Argument *args);
  164.   static void add_gimp_directory_token (char *gimp_dir);
  165. + #ifdef __EMX__
  166. + static void add_x11root_token (char *x11root);
  167. + #endif
  168.   static char* open_backup_file (char *filename, FILE **fp_new, FILE **fp_old);
  169.   
  170.   static ParseInfo parse_info;
  171. ***************
  172. *** 243,249 ****
  173. --- 250,260 ----
  174.   
  175.     if (NULL != env_gimp_dir)
  176.       {
  177. + #ifndef __EMX__
  178.         if ('/' == env_gimp_dir[0])
  179. + #else
  180. +       if (_fnisabs(env_gimp_dir))
  181. + #endif
  182.         strncpy (gimp_dir, env_gimp_dir, MAX_GIMPDIR_LEN);
  183.         else
  184.       {
  185. ***************
  186. *** 293,300 ****
  187. --- 304,318 ----
  188.   
  189.     gimp_dir = gimp_directory ();
  190.     add_gimp_directory_token (gimp_dir);
  191. + #ifdef __EMX__
  192. +   add_x11root_token(getenv("X11ROOT"));
  193. + #endif
  194.   
  195. + #ifndef __EMX__
  196.     sprintf (libfilename, "%s/gimprc", DATADIR);
  197. + #else
  198. +   sprintf (libfilename, "%s/gimprc", __XOS2RedirRoot(DATADIR));
  199. + #endif
  200.     app_init_update_status("Resource configuration", libfilename, -1);
  201.     parse_gimprc_file (libfilename);
  202.   
  203. ***************
  204. *** 313,319 ****
  205. --- 331,341 ----
  206.     int status;
  207.     char rfilename[512];
  208.   
  209. + #ifndef __EMX__
  210.     if (filename[0] != '/')
  211. + #else
  212. +   if (_fnisrel(filename))
  213. + #endif
  214.       {
  215.         if (!home_dir)
  216.       home_dir = g_strdup (getenv ("HOME"));
  217. ***************
  218. *** 1745,1750 ****
  219. --- 1767,1797 ----
  220.     unknown_tokens = g_list_append (unknown_tokens, ut);
  221.   }
  222.   
  223. + #ifdef __EMX__
  224. + static void
  225. + add_x11root_token (char *x11root)
  226. + {
  227. +   UnknownToken *ut;
  228. +   if (x11root == NULL)
  229. +     return;
  230. +   /*
  231. +     The token holds data from a static buffer which is initialized
  232. +     once.  There should be no need to change an already-existing
  233. +     value.
  234. +   */
  235. +   if (NULL != gimprc_find_token ("x11root"))
  236. +     return;
  237. +   ut = g_new (UnknownToken, 1);
  238. +   ut->token = g_strdup ("x11root");
  239. +   ut->value = g_strdup (x11root);
  240. +   /* Similarly, transforming the path should be silly. */
  241. +   unknown_tokens = g_list_append (unknown_tokens, ut);
  242. + }
  243. + #endif
  244.   /* Try to:
  245.   
  246.      1. Open gimprc for reading.
  247. ***************
  248. *** 1778,1783 ****
  249. --- 1825,1839 ----
  250.   
  251.     oldfilename = g_malloc (strlen (filename) + 5);
  252.     sprintf (oldfilename, "%s.old", filename);
  253. + #ifdef __EMX__
  254. +   {
  255. +     struct stat buf;
  256. +     if (stat (oldfilename, &buf) == 0)    /* if .old exists, remove it */
  257. +       remove(oldfilename);
  258. +     fclose(*fp_old);    /* before rename(), close it */
  259. +   }
  260. + #endif
  261.     if (rename (filename, oldfilename) < 0)
  262.       {
  263.         g_free (oldfilename);
  264. ***************
  265. *** 1787,1792 ****
  266. --- 1843,1859 ----
  267.           return "Can't rename gimprc to gimprc.old; gimprc.old is a directory";
  268.         return "Can't rename gimprc to gimprc.old, reason unknown";
  269.       }
  270. + #ifdef __EMX__
  271. +   /* reopen */
  272. +   if ((*fp_old = fopen (oldfilename, "rt")) == NULL)
  273. +     {
  274. +       if (errno == EACCES)
  275. +         return "Can't open gimprc; permission problems";
  276. +       if (errno == ENOENT)
  277. +         return "Can't open gimprc; file does not exist";
  278. +       return "Can't open gimprc, reason unknown";
  279. +     }
  280. + #endif
  281.   
  282.     if ((*fp_new = fopen (filename, "wt")) == NULL)
  283.       {
  284. diff -crN gimp-1.0.0.orig/app/gradient.c gimp-1.0.0/app/gradient.c
  285. *** gimp-1.0.0.orig/app/gradient.c    Thu May 28 17:03:18 1998
  286. --- gimp-1.0.0/app/gradient.c    Fri Jul 10 19:48:36 1998
  287. ***************
  288. *** 5837,5843 ****
  289. --- 5837,5847 ----
  290.       home        = getenv("HOME");
  291.       local_path  = g_strdup(path_str);
  292.       first_token = local_path;
  293. + #ifndef __EMX__
  294.       token       = xstrsep(&first_token, ":");
  295. + #else
  296. +     token       = xstrsep(&first_token, ";");
  297. + #endif
  298.       filename    = NULL;
  299.   
  300.       if (token) {
  301. diff -crN gimp-1.0.0.orig/app/Imakefile gimp-1.0.0/app/Imakefile
  302. *** gimp-1.0.0.orig/app/Imakefile    Thu Jan  1 00:00:00 1970
  303. --- gimp-1.0.0/app/Imakefile    Thu Jul 30 00:30:46 1998
  304. ***************
  305. *** 0 ****
  306. --- 1,286 ----
  307. + /*
  308. +     Written for XFree86/OS2
  309. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  310. +  */
  311. + #include "../gimp.cf"
  312. + #if BuildOMFEXE
  313. + ADD_DEFS = -Zomf
  314. + LOCAL_LDFLAGS = -Zomf
  315. + PROG_DEF = gimp2.def
  316. + #else
  317. + ADD_DEFS =
  318. + LOCAL_LDFLAGS = 
  319. + PROG_DEF =
  320. + #endif
  321. + DEFINES = \
  322. +     -DHAVE_CONFIG_H \
  323. +     -DLIBDIR=\""$(GIMPPLUGINSDIR)"\" \
  324. +     -DDATADIR=\""$(GIMPDATADIR)"\" \
  325. +     -DGIMPDIR=\"".gimp"\" $(ADD_DEFS)
  326. + INCLUDES = -I.. -I.
  327. + #ifdef OS2Architecture
  328. + LOCAL_LIBRARIES = -L../libgimp -lgimp -lgtk -lgdk -lglib -lXext -lX11 -lshm
  329. + #else
  330. + LOCAL_LIBRARIES = -L../libgimp -lgimp -lgtk -lgdk -lglib -lXext -lX11
  331. + #endif
  332. + SRCS = \
  333. +     about_dialog.c        \
  334. +     actionarea.c        \
  335. +     airbrush.c        \
  336. +     app_procs.c        \
  337. +     asupsample.c        \
  338. +     batch.c            \
  339. +     bezier_select.c        \
  340. +     blend.c            \
  341. +     boundary.c        \
  342. +     brightness_contrast.c    \
  343. +     brush_select.c        \
  344. +     brushes.c        \
  345. +     bucket_fill.c        \
  346. +     buildmenu.c        \
  347. +     by_color_select.c    \
  348. +     channel.c        \
  349. +     channel_cmds.c        \
  350. +     channels_dialog.c    \
  351. +     channel_ops.c        \
  352. +     clone.c            \
  353. +     color_area.c        \
  354. +     color_balance.c        \
  355. +     color_panel.c        \
  356. +     color_picker.c        \
  357. +     color_select.c        \
  358. +     color_transfer.c    \
  359. +     colormaps.c        \
  360. +     commands.c        \
  361. +     convert.c        \
  362. +     convolve.c        \
  363. +     crop.c            \
  364. +     cursorutil.c        \
  365. +     curves.c        \
  366. +     datafiles.c        \
  367. +     desaturate.c        \
  368. +     disp_callbacks.c    \
  369. +     draw_core.c        \
  370. +     drawable.c        \
  371. +     drawable_cmds.c        \
  372. +     edit_cmds.c        \
  373. +     edit_selection.c    \
  374. +     ellipse_select.c    \
  375. +     eraser.c        \
  376. +     errors.c        \
  377. +     equalize.c        \
  378. +     fileops.c        \
  379. +     flip_tool.c        \
  380. +     floating_sel.c        \
  381. +     floating_sel_cmds.c    \
  382. +     frac.c            \
  383. +     free_select.c        \
  384. +     fuzzy_select.c        \
  385. +     gdisplay.c        \
  386. +     gdisplay_cmds.c        \
  387. +     gdisplay_ops.c        \
  388. +     general.c        \
  389. +     gimage.c        \
  390. +     gimage_cmds.c        \
  391. +     gimage_mask.c        \
  392. +     gimage_mask_cmds.c    \
  393. +     gimprc.c        \
  394. +     global_edit.c        \
  395. +     gradient.c        \
  396. +     gximage.c        \
  397. +     histogram.c        \
  398. +     histogram_tool.c    \
  399. +     hue_saturation.c    \
  400. +     image_map.c        \
  401. +     image_render.c        \
  402. +     indexed_palette.c    \
  403. +     info_dialog.c        \
  404. +     info_window.c        \
  405. +     install.c        \
  406. +     interface.c        \
  407. +     internal_procs.c    \
  408. +     invert.c        \
  409. +     iscissors.c        \
  410. +     layer.c            \
  411. +     layer_cmds.c        \
  412. +     layer_select.c        \
  413. +     layers_dialog.c        \
  414. +     levels.c        \
  415. +     magnify.c        \
  416. +     main.c            \
  417. +     menus.c            \
  418. +     move.c            \
  419. +     ops_buttons.c        \
  420. +     palette.c        \
  421. +     paint_core.c        \
  422. +     paint_funcs.c        \
  423. +     paintbrush.c        \
  424. +     pattern_select.c    \
  425. +     patterns.c        \
  426. +     pencil.c        \
  427. +     perspective_tool.c    \
  428. +     pixel_region.c        \
  429. +     plug_in.c        \
  430. +     posterize.c        \
  431. +     procedural_db.c        \
  432. +     rect_select.c        \
  433. +     regex.c            \
  434. +     resize.c        \
  435. +     rotate_tool.c        \
  436. +     scale.c            \
  437. +     scale_tool.c        \
  438. +     scroll.c        \
  439. +     selection.c        \
  440. +     shear_tool.c        \
  441. +     temp_buf.c        \
  442. +     text_tool.c        \
  443. +     threshold.c        \
  444. +     tile.c            \
  445. +     tile_cache.c        \
  446. +     tile_manager.c        \
  447. +     tile_swap.c        \
  448. +     tips_dialog.c        \
  449. +     tools.c            \
  450. +     transform_core.c    \
  451. +     transform_tool.c    \
  452. +     undo.c            \
  453. +     undo_cmds.c        \
  454. +     xcf.c
  455. + OBJS = \
  456. +     about_dialog.o        \
  457. +     actionarea.o        \
  458. +     airbrush.o        \
  459. +     app_procs.o        \
  460. +     asupsample.o        \
  461. +     batch.o            \
  462. +     bezier_select.o        \
  463. +     blend.o            \
  464. +     boundary.o        \
  465. +     brightness_contrast.o    \
  466. +     brush_select.o        \
  467. +     brushes.o        \
  468. +     bucket_fill.o        \
  469. +     buildmenu.o        \
  470. +     by_color_select.o    \
  471. +     channel.o        \
  472. +     channel_cmds.o        \
  473. +     channels_dialog.o    \
  474. +     channel_ops.o        \
  475. +     clone.o            \
  476. +     color_area.o        \
  477. +     color_balance.o        \
  478. +     color_panel.o        \
  479. +     color_picker.o        \
  480. +     color_select.o        \
  481. +     color_transfer.o    \
  482. +     colormaps.o        \
  483. +     commands.o        \
  484. +     convert.o        \
  485. +     convolve.o        \
  486. +     crop.o            \
  487. +     cursorutil.o        \
  488. +     curves.o        \
  489. +     datafiles.o        \
  490. +     desaturate.o        \
  491. +     disp_callbacks.o    \
  492. +     draw_core.o        \
  493. +     drawable.o        \
  494. +     drawable_cmds.o        \
  495. +     edit_cmds.o        \
  496. +     edit_selection.o    \
  497. +     ellipse_select.o    \
  498. +     eraser.o        \
  499. +     errors.o        \
  500. +     equalize.o        \
  501. +     fileops.o        \
  502. +     flip_tool.o        \
  503. +     floating_sel.o        \
  504. +     floating_sel_cmds.o    \
  505. +     frac.o            \
  506. +     free_select.o        \
  507. +     fuzzy_select.o        \
  508. +     gdisplay.o        \
  509. +     gdisplay_cmds.o        \
  510. +     gdisplay_ops.o        \
  511. +     general.o        \
  512. +     gimage.o        \
  513. +     gimage_cmds.o        \
  514. +     gimage_mask.o        \
  515. +     gimage_mask_cmds.o    \
  516. +     gimprc.o        \
  517. +     global_edit.o        \
  518. +     gradient.o        \
  519. +     gximage.o        \
  520. +     histogram.o        \
  521. +     histogram_tool.o    \
  522. +     hue_saturation.o    \
  523. +     image_map.o        \
  524. +     image_render.o        \
  525. +     indexed_palette.o    \
  526. +     info_dialog.o        \
  527. +     info_window.o        \
  528. +     install.o        \
  529. +     interface.o        \
  530. +     internal_procs.o    \
  531. +     invert.o        \
  532. +     iscissors.o        \
  533. +     layer.o            \
  534. +     layer_cmds.o        \
  535. +     layer_select.o        \
  536. +     layers_dialog.o        \
  537. +     levels.o        \
  538. +     magnify.o        \
  539. +     main.o            \
  540. +     menus.o            \
  541. +     move.o            \
  542. +     ops_buttons.o        \
  543. +     palette.o        \
  544. +     paint_core.o        \
  545. +     paint_funcs.o        \
  546. +     paintbrush.o        \
  547. +     pattern_select.o    \
  548. +     patterns.o        \
  549. +     pencil.o        \
  550. +     perspective_tool.o    \
  551. +     pixel_region.o        \
  552. +     plug_in.o        \
  553. +     posterize.o        \
  554. +     procedural_db.o        \
  555. +     rect_select.o        \
  556. +     regex.o            \
  557. +     resize.o        \
  558. +     rotate_tool.o        \
  559. +     scale.o            \
  560. +     scale_tool.o        \
  561. +     scroll.o        \
  562. +     selection.o        \
  563. +     shear_tool.o        \
  564. +     temp_buf.o        \
  565. +     text_tool.o        \
  566. +     threshold.o        \
  567. +     tile.o            \
  568. +     tile_cache.o        \
  569. +     tile_manager.o        \
  570. +     tile_swap.o        \
  571. +     tips_dialog.o        \
  572. +     tools.o            \
  573. +     transform_core.o    \
  574. +     transform_tool.o    \
  575. +     undo.o            \
  576. +     undo_cmds.o        \
  577. +     xcf.o            \
  578. +     $(PROG_DEF)
  579. + ComplexProgramTarget(gimp)
  580. + #if defined(OS2Architecture) && !BuildOMFEXE
  581. + all::
  582. +     emxbind -a gimp.exe -h255
  583. + #endif
  584. diff -crN gimp-1.0.0.orig/app/install.c gimp-1.0.0/app/install.c
  585. *** gimp-1.0.0.orig/app/install.c    Sat May 30 15:32:10 1998
  586. --- gimp-1.0.0/app/install.c    Sun Sep 13 02:15:56 1998
  587. ***************
  588. *** 27,32 ****
  589. --- 27,36 ----
  590.   #include "gimprc.h"
  591.   
  592.   
  593. + #ifdef __EMX__
  594. + extern const char *__XOS2RedirRoot(const char *);
  595. + #endif
  596.   static void install_run (InstallCallback);
  597.   static void install_help (InstallCallback);
  598.   static void help_install_callback (GtkWidget *, gpointer);
  599. ***************
  600. *** 415,421 ****
  601. --- 419,429 ----
  602.     gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1);
  603.   
  604.     /*  Generate output  */
  605. + #ifndef __EMX__
  606.     sprintf (buffer, "%s/user_install", DATADIR);
  607. + #else
  608. +   sprintf (buffer, "%s/user_install.cmd", __XOS2RedirRoot(DATADIR));
  609. + #endif
  610.     if ((err = stat (buffer, &stat_buf)) != 0)
  611.       {
  612.         gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
  613. ***************
  614. *** 433,440 ****
  615. --- 441,458 ----
  616.   
  617.     if (executable == TRUE)
  618.       {
  619. + #ifndef __EMX__
  620.         sprintf (buffer, "%s/user_install %s %s", DATADIR, DATADIR,
  621.              gimp_directory ());
  622. + #else
  623. +       char *s = buffer;
  624. +       sprintf (buffer, "%s/user_install.cmd %s %s", __XOS2RedirRoot(DATADIR),
  625. +            __XOS2RedirRoot(DATADIR), gimp_directory ());
  626. +       while (*s)
  627. +     {
  628. +       if (*s == '/') *s = '\\'; s++;
  629. +     }
  630. + #endif
  631.         if ((pfp = popen (buffer, "r")) != NULL)
  632.       {
  633.         while (fgets (buffer, 2048, pfp))
  634. diff -crN gimp-1.0.0.orig/app/palette.c gimp-1.0.0/app/palette.c
  635. *** gimp-1.0.0.orig/app/palette.c    Thu May 28 17:03:30 1998
  636. --- gimp-1.0.0/app/palette.c    Sat Sep 12 21:27:38 1998
  637. ***************
  638. *** 971,977 ****
  639. --- 971,981 ----
  640.         home = getenv("HOME");
  641.         local_path = g_strdup (palette_path);
  642.         first_token = local_path;
  643. + #ifndef __EMX__
  644.         token = xstrsep(&first_token, ":");
  645. + #else
  646. +       token = xstrsep(&first_token, ";");
  647. + #endif
  648.   
  649.         if (token)
  650.           {
  651. ***************
  652. *** 1005,1011 ****
  653. --- 1009,1018 ----
  654.         palette_entries_list = palette_entries_insert_list (palette_entries_list, entries);
  655.   
  656.         gtk_option_menu_remove_menu (GTK_OPTION_MENU (palette->option_menu));
  657. + #if 0
  658. + /* XXX unknown bug??? */
  659.         gtk_widget_destroy (palette->menu);
  660. + #endif
  661.         palette_create_palette_menu (palette, entries);
  662.       }
  663.   }
  664. ***************
  665. *** 1034,1040 ****
  666. --- 1041,1050 ----
  667.       }
  668.   
  669.         gtk_option_menu_remove_menu (GTK_OPTION_MENU (palette->option_menu));
  670. + #if 0
  671. + /* XXX unknown bug??? */
  672.         gtk_widget_destroy (palette->menu);
  673. + #endif
  674.   
  675.         entries = palette->entries;
  676.         if (entries && entries->filename)
  677. diff -crN gimp-1.0.0.orig/app/plug_in.c gimp-1.0.0/app/plug_in.c
  678. *** gimp-1.0.0.orig/app/plug_in.c    Sat May 30 15:32:16 1998
  679. --- gimp-1.0.0/app/plug_in.c    Sat Jul 11 15:20:54 1998
  680. ***************
  681. *** 30,35 ****
  682. --- 30,39 ----
  683.   #include <sys/stat.h>
  684.   #include <time.h>
  685.   #include <unistd.h>
  686. + #ifdef __EMX__
  687. + #include <fcntl.h>
  688. + #include <process.h>
  689. + #endif
  690.   
  691.   #include "libgimp/gimpprotocol.h"
  692.   #include "libgimp/gimpwire.h"
  693. ***************
  694. *** 265,271 ****
  695. --- 269,279 ----
  696.     /* read the pluginrc file for cached data */
  697.     if (pluginrc_path)
  698.       {
  699. + #ifndef __EMX__
  700.         if (*pluginrc_path == '/')
  701. + #else
  702. +       if (_fnisabs(pluginrc_path))
  703. + #endif
  704.           strcpy(filename, pluginrc_path);
  705.         else
  706.           sprintf(filename, "%s/%s", gimp_directory(), pluginrc_path);
  707. ***************
  708. *** 676,682 ****
  709. --- 684,694 ----
  710.     PlugIn *plug_in;
  711.     char *path;
  712.   
  713. + #ifndef __EMX__
  714.     if (name[0] != '/')
  715. + #else
  716. +   if (_fnisrel(name))
  717. + #endif
  718.       {
  719.         path = search_in_path (plug_in_path, name);
  720.         if (!path)
  721. ***************
  722. *** 769,774 ****
  723. --- 781,791 ----
  724.         plug_in->my_write = my_write[1];
  725.         plug_in->his_read = my_write[0];
  726.         plug_in->his_write = my_read[1];
  727. + #ifdef __EMX__
  728. +       setmode(plug_in->my_read, O_BINARY);
  729. +       setmode(plug_in->my_write, O_BINARY);
  730. +       /* set binary for plug_in->his_read/write is in gimp_main()/libgimp */
  731. + #endif
  732.   
  733.         /* Remember the file descriptors for the pipes.
  734.          */
  735. ***************
  736. *** 794,799 ****
  737. --- 811,817 ----
  738.          *  so that we can later use it to kill the filter if
  739.          *  necessary.
  740.          */
  741. + #ifndef __EMX__
  742.         plug_in->pid = fork ();
  743.   
  744.         if (plug_in->pid == 0)
  745. ***************
  746. *** 808,813 ****
  747. --- 826,842 ----
  748.             _exit (1);
  749.       }
  750.         else if (plug_in->pid == -1)
  751. + #else
  752. +       {
  753. +     int flag;
  754. +     flag = fcntl(plug_in->my_read, F_GETFD);
  755. +     fcntl(plug_in->my_read, F_SETFD, flag | FD_CLOEXEC);
  756. +     flag = fcntl(plug_in->my_write, F_GETFD);
  757. +     fcntl(plug_in->my_write, F_SETFD, flag | FD_CLOEXEC);
  758. +       }
  759. +       plug_in->pid = spawnvp (P_NOWAIT, plug_in->args[0], plug_in->args);
  760. +       if (plug_in->pid == -1)
  761. + #endif
  762.       {
  763.             g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
  764.             plug_in_destroy (plug_in);
  765. diff -crN gimp-1.0.0.orig/app/tile_swap.c gimp-1.0.0/app/tile_swap.c
  766. *** gimp-1.0.0.orig/app/tile_swap.c    Sat May 30 15:32:20 1998
  767. --- gimp-1.0.0/app/tile_swap.c    Sun Jul 12 02:45:14 1998
  768. ***************
  769. *** 116,121 ****
  770. --- 116,129 ----
  771.         tile_swap_print_gaps (def_swap_file);
  772.       }
  773.   
  774. + #ifdef __EMX__
  775. +       /* should close before unlink */
  776. +       if (swap_file->fd > 0)
  777. +     {
  778. +       close (swap_file->fd);
  779. +       swap_file->fd = -1;
  780. +     }
  781. + #endif
  782.         unlink (swap_file->filename);
  783.       }
  784.   }
  785. diff -crN gimp-1.0.0.orig/app/tips_dialog.c gimp-1.0.0/app/tips_dialog.c
  786. *** gimp-1.0.0.orig/app/tips_dialog.c    Mon Apr 13 19:05:40 1998
  787. --- gimp-1.0.0/app/tips_dialog.c    Thu Jul  9 16:21:14 1998
  788. ***************
  789. *** 8,13 ****
  790. --- 8,17 ----
  791.   #include "interface.h"
  792.   #include "wilber.h"
  793.   
  794. + #ifdef __EMX__
  795. + extern const char *__XOS2RedirRoot(const char *);
  796. + #endif
  797.   #define TIPS_FILE_NAME "gimp_tips.txt"
  798.   
  799.   static int  tips_dialog_hide (GtkWidget *widget, gpointer data);
  800. ***************
  801. *** 41,47 ****
  802. --- 45,55 ----
  803.     if (tips_count == 0)
  804.       {
  805.         temp = g_malloc (512);
  806. + #ifndef __EMX__
  807.         sprintf ((char *)temp, "%s/%s", DATADIR, TIPS_FILE_NAME);
  808. + #else
  809. +       sprintf ((char *)temp, "%s/%s", __XOS2RedirRoot(DATADIR), TIPS_FILE_NAME);
  810. + #endif
  811.         read_tips_file ((char *)temp);
  812.         g_free (temp);
  813.       }
  814. diff -crN gimp-1.0.0.orig/config.h gimp-1.0.0/config.h
  815. *** gimp-1.0.0.orig/config.h    Thu Jan  1 00:00:00 1970
  816. --- gimp-1.0.0/config.h    Thu Jul  9 16:19:54 1998
  817. ***************
  818. *** 0 ****
  819. --- 1,89 ----
  820. + /* config.h.  Generated automatically by configure.  */
  821. + /* config.h.in.  Generated automatically from configure.in by autoheader.  */
  822. + /* Define if using alloca.c.  */
  823. + /* #undef C_ALLOCA */
  824. + /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
  825. +    This function is required for alloca.c support on those systems.  */
  826. + /* #undef CRAY_STACKSEG_END */
  827. + /* Define if you have alloca, as a function or macro.  */
  828. + #define HAVE_ALLOCA 1
  829. + /* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
  830. + #define HAVE_ALLOCA_H 1
  831. + /* Define if you don't have vprintf but do have _doprnt.  */
  832. + /* #undef HAVE_DOPRNT */
  833. + /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
  834. + #define HAVE_SYS_WAIT_H 1
  835. + /* Define if you have <unistd.h>.  */
  836. + #define HAVE_UNISTD_H 1
  837. + /* Define if you have the vprintf function.  */
  838. + #define HAVE_VPRINTF 1
  839. + /* Define to `int' if <sys/types.h> doesn't define.  */
  840. + /* #undef pid_t */
  841. + /* Define as the return type of signal handlers (int or void).  */
  842. + #define RETSIGTYPE void
  843. + /* If using the C implementation of alloca, define if you know the
  844. +    direction of stack growth for your system; otherwise it will be
  845. +    automatically deduced at run-time.
  846. +  STACK_DIRECTION > 0 => grows toward higher addresses
  847. +  STACK_DIRECTION < 0 => grows toward lower addresses
  848. +  STACK_DIRECTION = 0 => direction of growth unknown
  849. +  */
  850. + /* #undef STACK_DIRECTION */
  851. + /* Define if you have the ANSI C header files.  */
  852. + #define STDC_HEADERS 1
  853. + /* Define if you can safely include both <sys/time.h> and <time.h>.  */
  854. + #define TIME_WITH_SYS_TIME 1
  855. + #define GIMP_MAJOR_VERSION 1
  856. + #define GIMP_MINOR_VERSION 0
  857. + #define GIMP_MICRO_VERSION 0
  858. + #define GIMP_VERSION "1.0.0"
  859. + #define HAVE_DIRENT_H 1
  860. + /* #undef HAVE_DOPRNT */
  861. + #define HAVE_IPC_H 1
  862. + /* #undef HAVE_NDIR_H */
  863. + #define HAVE_SHM_H 1
  864. + /* #undef HAVE_SYS_DIR_H */
  865. + /* #undef HAVE_SYS_NDIR_H */
  866. + /* #undef HAVE_SYS_SELECT_H */
  867. + #define HAVE_SYS_TIME_H 1
  868. + #define HAVE_UNISTD_H 1
  869. + #define HAVE_VPRINTF 1
  870. + /* #undef HAVE_XSHM_H */
  871. + /* #undef IPC_RMID_DEFERRED_RELEASE */
  872. + /* #undef NO_DIFFTIME */
  873. + /* #undef NO_FD_SET */
  874. + #define RAND_FUNC random
  875. + #define SRAND_FUNC srandom
  876. + /* #undef PACKAGE */
  877. + /* #undef VERSION */
  878. + /* Define if you have the <dirent.h> header file.  */
  879. + #define HAVE_DIRENT_H 1
  880. + /* Define if you have the <ndir.h> header file.  */
  881. + /* #undef HAVE_NDIR_H */
  882. + /* Define if you have the <sys/dir.h> header file.  */
  883. + /* #undef HAVE_SYS_DIR_H */
  884. + /* Define if you have the <sys/ndir.h> header file.  */
  885. + /* #undef HAVE_SYS_NDIR_H */
  886. diff -crN gimp-1.0.0.orig/data/brushes/Imakefile gimp-1.0.0/data/brushes/Imakefile
  887. *** gimp-1.0.0.orig/data/brushes/Imakefile    Thu Jan  1 00:00:00 1970
  888. --- gimp-1.0.0/data/brushes/Imakefile    Thu Jul  9 23:15:50 1998
  889. ***************
  890. *** 0 ****
  891. --- 1,51 ----
  892. + /*
  893. +     Written for XFree86/OS2
  894. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  895. +  */
  896. + #include "../../gimp.cf"
  897. + brush_DATA    =\
  898. +     10x10square.gbr    \
  899. +     10x10squareBlur.gbr    \
  900. +     11circle.gbr    \
  901. +     11fcircle.gbr    \
  902. +     13circle.gbr    \
  903. +     13fcircle.gbr    \
  904. +     15circle.gbr    \
  905. +     15fcircle.gbr    \
  906. +     17circle.gbr    \
  907. +     17fcircle.gbr    \
  908. +     19circle.gbr    \
  909. +     19fcircle.gbr    \
  910. +     1circle.gbr    \
  911. +     20x20square.gbr    \
  912. +     20x20squareBlur.gbr    \
  913. +     3circle.gbr        \
  914. +     3fcircle.gbr        \
  915. +     5circle.gbr        \
  916. +     5fcircle.gbr        \
  917. +     5x5square.gbr        \
  918. +     5x5squareBlur.gbr    \
  919. +     7circle.gbr        \
  920. +     7fcircle.gbr        \
  921. +     9circle.gbr        \
  922. +     9fcircle.gbr        \
  923. +     DStar11.gbr        \
  924. +     DStar17.gbr        \
  925. +     DStar25.gbr        \
  926. +     callig1.gbr        \
  927. +     callig2.gbr        \
  928. +     callig3.gbr        \
  929. +     callig4.gbr        \
  930. +     confetti.gbr        \
  931. +     dunes.gbr        \
  932. +     galaxy.gbr        \
  933. +     galaxy_big.gbr        \
  934. +     galaxy_small.gbr    \
  935. +     pixel.gbr        \
  936. +     thegimp.gbr        \
  937. +     xcf.gbr
  938. + InstallMultiple($(brush_DATA),$(GIMPDATADIR)/brushes)
  939. diff -crN gimp-1.0.0.orig/data/gradients/Imakefile gimp-1.0.0/data/gradients/Imakefile
  940. *** gimp-1.0.0.orig/data/gradients/Imakefile    Thu Jan  1 00:00:00 1970
  941. --- gimp-1.0.0/data/gradients/Imakefile    Thu Jul  9 23:22:34 1998
  942. ***************
  943. *** 0 ****
  944. --- 1,93 ----
  945. + /*
  946. +     Written for XFree86/OS2
  947. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  948. +  */
  949. + #include "../../gimp.cf"
  950. + gradient_DATA1    =\
  951. +     Abstract_1 \
  952. +     Abstract_2 \
  953. +     Abstract_3 \
  954. +     Aneurism \
  955. +     Blinds \
  956. +     Blue_Green    \
  957. +     Browns \
  958. +     Brushed_Aluminium \
  959. +     Burning_Paper \
  960. +     Burning_Transparency \
  961. +     CD \
  962. +     CD_Half \
  963. +     Caribbean_Blues \
  964. +     Coffee \
  965. +     Cold_Steel \
  966. +     Cold_Steel_2 \
  967. +     Crown_molding \
  968. +     Dark_1 \
  969. +     Deep_Sea \
  970. +     Default \
  971. +     Flare_Glow_Angular_1 \
  972. +     Flare_Glow_Radial_1 \
  973. +     Flare_Glow_Radial_2 \
  974. +     Flare_Glow_Radial_3    \
  975. +     Flare_Glow_Radial_4    \
  976. +     Flare_Radial_101 \
  977. +     Flare_Radial_102 \
  978. +     Flare_Radial_103 \
  979. +     Flare_Rays_Radial_1 \
  980. +     Flare_Rays_Radial_2 \
  981. +     Flare_Rays_Size_1 \
  982. +     Flare_Sizefac_101 \
  983. +     Four_bars \
  984. +     French_flag \
  985. +     French_flag_smooth \
  986. +     Full_saturation_spectrum_CCW \
  987. +     Full_saturation_spectrum_CW \
  988. +     German_flag \
  989. +     German_flag_smooth \
  990. +     Golden \
  991. +     Greens \
  992. +     Horizon_1 \
  993. +     Horizon_2 \
  994. +     Incandescent \
  995. +     Land_1 \
  996. +     Land_and_Sea
  997. + gradient_DATA2    =\
  998. +     Metallic_Something    \
  999. +     Mexican_flag \
  1000. +     Mexican_flag_smooth \
  1001. +     Nauseating_Headache \
  1002. +     Neon_Cyan \
  1003. +     Neon_Green \
  1004. +     Neon_Yellow \
  1005. +     Pastels    \
  1006. +     Pastel_Rainbow \
  1007. +     Purples \
  1008. +     Radial_Eyeball_Blue \
  1009. +     Radial_Eyeball_Brown \
  1010. +     Radial_Eyeball_Green \
  1011. +     Radial_Glow_1 \
  1012. +     Radial_Rainbow_Hoop \
  1013. +     Romanian_flag \
  1014. +     Romanian_flag_smooth \
  1015. +     Rounded_edge \
  1016. +     Shadows_1 \
  1017. +     Shadows_2    \
  1018. +     Shadows_3    \
  1019. +     Skyline \
  1020. +     Skyline_polluted \
  1021. +     Square_Wood_Frame \
  1022. +     Sunrise    \
  1023. +     Three_bars_sin \
  1024. +     Tropical_Colors \
  1025. +     Tube_Red \
  1026. +     Wood_1 \
  1027. +     Wood_2    \
  1028. +     Yellow_Contrast    \
  1029. +     Yellow_Orange
  1030. + /* since $(DATA) is too long, we split it */
  1031. + InstallMultiple($(gradient_DATA1),$(GIMPDATADIR)/gradients)
  1032. + InstallMultiple($(gradient_DATA2),$(GIMPDATADIR)/gradients)
  1033. diff -crN gimp-1.0.0.orig/data/Imakefile gimp-1.0.0/data/Imakefile
  1034. *** gimp-1.0.0.orig/data/Imakefile    Thu Jan  1 00:00:00 1970
  1035. --- gimp-1.0.0/data/Imakefile    Thu Jul  9 23:13:46 1998
  1036. ***************
  1037. *** 0 ****
  1038. --- 1,13 ----
  1039. + /*
  1040. +     Written for XFree86/OS2
  1041. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1042. +  */
  1043. + #define IHaveSubdirs
  1044. + #define PassCDebugFlags
  1045. + SUBDIRS = brushes gradients palettes patterns
  1046. + MakeSubdirs($(SUBDIRS))
  1047. + DependSubdirs($(SUBDIRS))
  1048. diff -crN gimp-1.0.0.orig/data/palettes/Imakefile gimp-1.0.0/data/palettes/Imakefile
  1049. *** gimp-1.0.0.orig/data/palettes/Imakefile    Thu Jan  1 00:00:00 1970
  1050. --- gimp-1.0.0/data/palettes/Imakefile    Thu Jul  9 23:19:16 1998
  1051. ***************
  1052. *** 0 ****
  1053. --- 1,47 ----
  1054. + /*
  1055. +     Written for XFree86/OS2
  1056. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1057. +  */
  1058. + #include "../../gimp.cf"
  1059. + palette_DATA    =\
  1060. +     Blues         \
  1061. +     Bears        \
  1062. +     Bgold        \
  1063. +     Borders        \
  1064. +     Browns_And_Yellows    \
  1065. +     Caramel        \
  1066. +     China        \
  1067. +     Coldfire    \
  1068. +     Cool_Colors    \
  1069. +     Cranes        \
  1070. +     Dark_pastels    \
  1071. +     Default        \
  1072. +     Ega        \
  1073. +     Firecode    \
  1074. +     Gold        \
  1075. +     Grayblue    \
  1076. +     Grays        \
  1077. +     GrayViolet    \
  1078. +     Greens        \
  1079. +     Hilite        \
  1080. +     Kahki        \
  1081. +     Lights        \
  1082. +     Muted        \
  1083. +     Named_Colors    \
  1084. +     News3        \
  1085. +     Op2        \
  1086. +     Paintjet    \
  1087. +     Pastels        \
  1088. +     Plasma        \
  1089. +     Reds        \
  1090. +     Reds_And_Purples    \
  1091. +     Royal        \
  1092. +     Topographic    \
  1093. +     Volcano        \
  1094. +     Warm_Colors    \
  1095. +     Web        
  1096. + InstallMultiple($(palette_DATA),$(GIMPDATADIR)/palettes)
  1097. diff -crN gimp-1.0.0.orig/data/patterns/Imakefile gimp-1.0.0/data/patterns/Imakefile
  1098. *** gimp-1.0.0.orig/data/patterns/Imakefile    Thu Jan  1 00:00:00 1970
  1099. --- gimp-1.0.0/data/patterns/Imakefile    Thu Jul  9 23:20:18 1998
  1100. ***************
  1101. *** 0 ****
  1102. --- 1,67 ----
  1103. + /*
  1104. +     Written for XFree86/OS2
  1105. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1106. +  */
  1107. + #include "../../gimp.cf"
  1108. + pattern_DATA    =\
  1109. +     3dgreen.pat \
  1110. +     Craters.pat \
  1111. +     Moonfoot.pat \
  1112. +     amethyst.pat \
  1113. +     bark.pat \
  1114. +     blue.pat \
  1115. +     bluegrid.pat \
  1116. +     bluesquares.pat \
  1117. +     blueweb.pat \
  1118. +     brick.pat \
  1119. +     burlap.pat \
  1120. +     burlwood.pat \
  1121. +     choc_swirl.pat \
  1122. +     corkboard.pat \
  1123. +     cracked.pat    \
  1124. +     crinklepaper.pat \
  1125. +     electric.pat \
  1126. +     fibers.pat    \
  1127. +     granite1.pat \
  1128. +     ground1.pat \
  1129. +     ice.pat \
  1130. +     java.pat \
  1131. +     leather.pat \
  1132. +     leaves.pat \
  1133. +     leopard.pat \
  1134. +     lightning.pat \
  1135. +     marble1.pat \
  1136. +     marble2.pat \
  1137. +     marble3.pat \
  1138. +     nops.pat \
  1139. +     paper.pat \
  1140. +     parque1.pat \
  1141. +     parque2.pat \
  1142. +     parque3.pat \
  1143. +     pastel.pat \
  1144. +     pine.pat \
  1145. +     pink_marble.pat \
  1146. +     pool.pat \
  1147. +     qube1.pat \
  1148. +     rain.pat \
  1149. +     recessed.pat \
  1150. +     redcube.pat \
  1151. +     rock.pat \
  1152. +     sky.pat \
  1153. +     slate.pat \
  1154. +     sm_squares.pat \
  1155. +     starfield.pat \
  1156. +     stone33.pat   \
  1157. +     terra.pat \
  1158. +     walnut.pat \
  1159. +     warning.pat \
  1160. +     wood1.pat \
  1161. +     wood2.pat \
  1162. +     wood3.pat \
  1163. +     wood4.pat \
  1164. +     wood5.pat 
  1165. + InstallMultiple($(pattern_DATA),$(GIMPDATADIR)/patterns)
  1166. diff -crN gimp-1.0.0.orig/gimp.cf gimp-1.0.0/gimp.cf
  1167. *** gimp-1.0.0.orig/gimp.cf    Thu Jan  1 00:00:00 1970
  1168. --- gimp-1.0.0/gimp.cf    Sat Sep 12 21:38:02 1998
  1169. ***************
  1170. *** 0 ****
  1171. --- 1,13 ----
  1172. + /*
  1173. +     Written for XFree86/OS2
  1174. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1175. +  */
  1176. + #define BuildOMFEXE 1    /* reduce EXE size */
  1177. + GIMPDIR = $(LIBDIR)/gimp
  1178. + GIMPPLUGINSDIR = $(GIMPDIR)/plug-ins
  1179. + GIMPDATADIR = $(GIMPDIR)/data
  1180. diff -crN gimp-1.0.0.orig/gimprc.os2 gimp-1.0.0/gimprc.os2
  1181. *** gimp-1.0.0.orig/gimprc.os2    Thu Jan  1 00:00:00 1970
  1182. --- gimp-1.0.0/gimprc.os2    Wed Sep  9 03:13:58 1998
  1183. ***************
  1184. *** 0 ****
  1185. --- 1,212 ----
  1186. + # This is the system-wide gimprc file.  Any change made in this file
  1187. + # will affect all users of this system, provided that they are not
  1188. + # overriding the default values in their personal gimprc file.
  1189. + #
  1190. + # Lines that start with a '#' are comments.
  1191. + # Blank lines are ignored.
  1192. + # The variable gimp_dir is set to either the interned value
  1193. + # .gimp or the environment variable GIMP_DIRECTORY.  If
  1194. + # the path in GIMP_DIRECTORY is relative, it is considered
  1195. + # relative to your home directory.
  1196. + # XFree86/OS2:
  1197. + # The variable x11root is set to the environment variable X11ROOT.
  1198. + (prefix "${x11root}/XFree86")
  1199. + (exec_prefix "${prefix}")
  1200. + (gimp_data_dir "${prefix}/lib/X11/gimp/data")
  1201. + (gimp_plugin_dir "${exec_prefix}/lib/X11/gimp")
  1202. + # Set the temporary storage directory...files will appear here
  1203. + # during the course of running the gimp.  Most files will disappear
  1204. + # when the gimp exits, but some files are likely to remain,
  1205. + # such as working palette files, so it is best if this directory
  1206. + # not be one that is shared by other users or is cleared on machine
  1207. + # reboot such as /tmp.
  1208. + (temp-path "${gimp_dir}/tmp")
  1209. + # Set the swap file location. The gimp uses a tile based memory
  1210. + # allocation scheme. The swap file is used to quickly and easily
  1211. + # swap files out to disk and back in. Be aware that the swap file
  1212. + # can easily get very large if the gimp is used with large images.
  1213. + # Also, things can get horribly slow if the swap file is created on 
  1214. + # a directory that is mounted over NFS.  For these reasons, it may 
  1215. + # be desirable to put your swap file in "/tmp".
  1216. + (swap-path "${gimp_dir}")
  1217. + # Set the brush search path...this path will be searched for valid
  1218. + #  brushes at startup.
  1219. + (brush-path "${gimp_dir}/brushes;${gimp_data_dir}/brushes")
  1220. + # Specify a default brush. If none is specified it defaults to the
  1221. + #  "1circle.gbr" brush which is just a single pixel sized brush.
  1222. + #  The brush is searched for in the brush path.
  1223. + (default-brush "19fcircle.gbr")
  1224. + # Set the pattern search path...this path will be searched for valid
  1225. + #  patterns at startup.
  1226. + (pattern-path "${gimp_dir}/patterns;${gimp_data_dir}/patterns")
  1227. + # Specify a default pattern.
  1228. + #  The pattern is searched for in the specified pattern paths.
  1229. + (default-pattern "wood2.pat")
  1230. + # Set the palette search path...this path will be searched for valid
  1231. + #  palettes at startup.
  1232. + (palette-path "${gimp_dir}/palettes")
  1233. + # Specify a default palette.
  1234. + #  The pattern is searched for in the specified pattern paths.
  1235. + (default-palette "Default")
  1236. + # Set the gradient search path...this path will be searched for valid
  1237. + #  gradients at startup.
  1238. + (gradient-path "${gimp_dir}/gradients;${gimp_data_dir}/gradients")
  1239. + # Specify a default gradient.
  1240. + #  The gradient is searched for in the specified gradient paths.
  1241. + (default-gradient "German_flag_smooth")
  1242. + # Set the plug-in search path...this path will be searched for
  1243. + #  plug-ins when the plug-in is run.
  1244. + (plug-in-path "${gimp_dir}/plug-ins;${gimp_dir}/plug-ins/script-fu;${gimp_plugin_dir}/plug-ins")
  1245. + # Set the path for the script-fu plug-in.  This value is ignored by
  1246. + #  the GIMP if the script-fu plug-in is never run.
  1247. + (script-fu-path "${gimp_dir}/scripts;${gimp_data_dir}/scripts")
  1248. + # The tile cache is used to make sure the gimp doesn't thrash
  1249. + # tiles between memory and disk. Setting this value higher will
  1250. + # cause the gimp to use less swap space, but will also cause
  1251. + # the gimp to use more memory. Conversely, a smaller cache size
  1252. + # causes the gimp to use more swap space and less memory.
  1253. + # Note: the gimp will still run even if `tile-cache-size' is
  1254. + # set to 0. The actual size can contain a suffix of 'm', 'M',
  1255. + # 'k', 'K', 'b' or 'B', which makes the gimp interpret the
  1256. + # size as being specified in megabytes, kilobytes and bytes
  1257. + # respectively. If no suffix is specified the size defaults to
  1258. + # being specified in kilobytes.
  1259. + (tile-cache-size 10m)
  1260. + # Speed of marching ants in the selection outline
  1261. + #  this value is in milliseconds
  1262. + #  (less time indicates faster marching)
  1263. + (marching-ants-speed 300)
  1264. + # Set the number of operations kept on the undo stack
  1265. + (undo-levels 5)
  1266. + # Set the color-cube resource for dithering on 8-bit displays
  1267. + #  The 4 values stand for Shades of red, green, blue and grays
  1268. + #  Multiplying the # of shades of each primary color yields
  1269. + #  the total number of colors that will be allocated from the
  1270. + #  gimp colormap.  This number should not exceed 256.  Most of the
  1271. + #  colors remaining after the allocation of the colorcube
  1272. + #  will be left to the system palette in an effort to reduce
  1273. + #  colormap "flashing".
  1274. + (color-cube 6 6 4 24)
  1275. + # Install a GIMP colormap by default -- only for 8-bit displays
  1276. + # (install-colormap)
  1277. + # Specify that marching ants for selected regions will be drawn
  1278. + #  with colormap cycling as oposed to redrawing with different stipple masks
  1279. + #  this color cycling option works only with 8-bit displays
  1280. + # (colormap-cycling)
  1281. + # Tools such as fuzzy-select and bucket fill find regions based on a
  1282. + #  seed-fill algorithm.  The seed fill starts at the intially selected
  1283. + #  pixel and progresses in all directions until the difference of pixel
  1284. + #  intensity from the original is greater than a specified threshold
  1285. + #  ==> This value represents the default threshold
  1286. + (default-threshold 15)
  1287. + # There is always a tradeoff between memory usage and speed.  In most
  1288. + #  cases, the GIMP opts for speed over memory.  However, if memory is
  1289. + #  a big issue, set stingy-memory-use
  1290. + # (stingy-memory-use)
  1291. + # When zooming into and out of images, this option enables the
  1292. + #  automatic resizing of windows
  1293. + # (allow-resize-windows)
  1294. + # Context-dependent cursors are cool.  They are enabled by default.
  1295. + #  However, they require overhead that you may want to do without.
  1296. + #  Uncomment this line to disable them.
  1297. + # (no-cursor-updating)
  1298. + # Layer preview sizes:
  1299. + #  none:    no previews in layers dialog/layer selector
  1300. + #  small:   32x32
  1301. + #  medium:  64x64
  1302. + #  large:   128x128
  1303. + #  #:       #x#
  1304. + (preview-size small)
  1305. + # Tooltips
  1306. + #  Comment this out to disable the tooltips in the toolbox
  1307. + # (dont-show-tool-tips)
  1308. + # Controlling ruler visibility
  1309. + #  The default behavior is for rulers to be ON
  1310. + #  This can also be toggled with the View->Show Rulers command or shift+control+r
  1311. + # (dont-show-rulers)
  1312. + # Ruler units
  1313. + #  The units of rulers can be one of: (pixels inches centimeters)
  1314. + #  The default is pixels
  1315. + (ruler-units pixels)
  1316. + # Disable auto saving
  1317. + #  Auto saving is not yet implemented! Nothing will be auto-saved, no matter
  1318. + #  how you set this here.  
  1319. + #  Just uncomment the line below...
  1320. + # (dont-auto-save)
  1321. + # Disable confirmation before closing an image without saving
  1322. + #  Just uncomment the next line
  1323. + # (dont-confirm-on-close)
  1324. + # Setting the level of interpolation
  1325. + #  Uncommenting this line will enable cubic interpolation.
  1326. + #  By default, GIMP uses linear interpolation, which is faster, but has poorer quality
  1327. + # (cubic-interpolation)
  1328. + # Set the gamma correction values for the display
  1329. + #  1.0 corresponds to no gamma correction.  For most displays,
  1330. + #  gamma correction should be set to between 2.0 and 2.6
  1331. + #  Run the utility "gamma_correct" to determine appropriate values
  1332. + #  for your display.
  1333. + #
  1334. + # One important item to keep in mind:  Many images that you might
  1335. + #  get from outside sources will in all likelihood already be
  1336. + #  gamma-corrected.  In these cases, the image will look washed-out
  1337. + #  if the gimp has gamma-correction turned on.  If you are going
  1338. + #  to work with images of this sort, turn gamma correction off
  1339. + #  by removing this line, or setting the values to 1.0.
  1340. + #  gamma-correction 1.0
  1341. + #  gamma-correction 2.0
  1342. + #                 ___
  1343. + (gamma-correction 1.0)
  1344. + # Set the manner in which transparency is displayed in images
  1345. + #  Transparency type can be one of:
  1346. + #    0: Light Checks
  1347. + #    1: Mid-Tone Checks
  1348. + #    2: Dark Checks
  1349. + #    3: White Only
  1350. + #    4: Gray Only
  1351. + #    5: Black Only
  1352. + #  Check size can be one of:
  1353. + #    0: Small
  1354. + #    1: Medium
  1355. + #    2: Large
  1356. + (transparency-type 1)
  1357. + (transparency-size 2)
  1358. + # gfig pattern directory
  1359. + (gfig-path "${gimp_dir}/gfig;${gimp_data_dir}/gfig")
  1360. + # [end of file]
  1361. diff -crN gimp-1.0.0.orig/gimprc_user.os2 gimp-1.0.0/gimprc_user.os2
  1362. *** gimp-1.0.0.orig/gimprc_user.os2    Thu Jan  1 00:00:00 1970
  1363. --- gimp-1.0.0/gimprc_user.os2    Sat Jul 11 16:18:12 1998
  1364. ***************
  1365. *** 0 ****
  1366. --- 1,17 ----
  1367. + # This is your personal gimprc file.  Any variable defined in this file
  1368. + # takes precedence over the value defined in the system-wide gimprc:
  1369. + # ${x11root}/XFree86/lib/X11/gimp/data/gimprc
  1370. + # Take a look at that file if you want to see some of the options that
  1371. + # can be set here.
  1372. + # Most values can be set automatically within the GIMP, if you press
  1373. + # the "save" button after changing some options in the Preferences
  1374. + # dialog box.  You can also edit this file by hand, and the GIMP will
  1375. + # always try to do the right thing when saving new options after you
  1376. + # have edited this file.
  1377. + (show-tips yes)
  1378. + # Install a GIMP colormap by default -- only for 8-bit displays
  1379. + # (install-colormap)
  1380. diff -crN gimp-1.0.0.orig/Imakefile gimp-1.0.0/Imakefile
  1381. *** gimp-1.0.0.orig/Imakefile    Thu Jan  1 00:00:00 1970
  1382. --- gimp-1.0.0/Imakefile    Sat Jul 11 16:17:04 1998
  1383. ***************
  1384. *** 0 ****
  1385. --- 1,29 ----
  1386. + /*
  1387. +     Written for XFree86/OS2
  1388. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1389. +  */
  1390. + #include "gimp.cf"
  1391. + #define IHaveSubdirs
  1392. + #define PassCDebugFlags
  1393. + SUBDIRS = libgimp plug-ins app data
  1394. + MakeSubdirs($(SUBDIRS))
  1395. + DependSubdirs($(SUBDIRS))
  1396. + gimpdata_DATA = gtkrc gimp_logo.ppm gimp_splash.ppm \
  1397. +         gimp_tips.txt ps-menurc gtkrc.forest2
  1398. + #ifndef OS2Architecture
  1399. + gimpdata_SCRIPTS = user_install
  1400. + #else
  1401. + gimpdata_SCRIPTS = user_install.cmd
  1402. + #endif
  1403. + InstallNamedProg($(gimpdata_SCRIPTS),$(gimpdata_SCRIPTS),$(GIMPDATADIR))
  1404. + InstallNamedNonExec(gimprc.os2,gimprc,$(GIMPDATADIR))
  1405. + InstallNamedNonExec(gimprc_user.os2,gimprc_user,$(GIMPDATADIR))
  1406. + InstallMultiple($(gimpdata_DATA),$(GIMPDATADIR))
  1407. diff -crN gimp-1.0.0.orig/libgimp/gimp.c gimp-1.0.0/libgimp/gimp.c
  1408. *** gimp-1.0.0.orig/libgimp/gimp.c    Thu May 28 17:03:46 1998
  1409. --- gimp-1.0.0/libgimp/gimp.c    Fri Jul 10 19:16:32 1998
  1410. ***************
  1411. *** 30,35 ****
  1412. --- 30,38 ----
  1413.   #include <sys/time.h>
  1414.   #include <sys/param.h>
  1415.   #include <unistd.h>
  1416. + #ifdef __EMX__
  1417. + #include <fcntl.h>
  1418. + #endif
  1419.   
  1420.   #ifdef HAVE_SYS_SELECT_H
  1421.   #include <sys/select.h>
  1422. ***************
  1423. *** 71,77 ****
  1424. --- 74,88 ----
  1425.   
  1426.   static GHashTable *temp_proc_ht = NULL;
  1427.   
  1428. + #ifndef __EMX__
  1429.   extern GPlugInInfo PLUG_IN_INFO;
  1430. + #else
  1431. + static GPlugInInfo PLUG_IN_INFO;
  1432. + void set_gimp_PLUG_IN_INFO(const GPlugInInfo *p)
  1433. + {
  1434. +   PLUG_IN_INFO = *p;
  1435. + }
  1436. + #endif
  1437.   
  1438.   
  1439.   int
  1440. ***************
  1441. *** 97,102 ****
  1442. --- 108,117 ----
  1443.   
  1444.     _readfd = atoi (argv[2]);
  1445.     _writefd = atoi (argv[3]);
  1446. + #ifdef __EMX__
  1447. +   setmode(_readfd, O_BINARY);
  1448. +   setmode(_writefd, O_BINARY);
  1449. + #endif
  1450.   
  1451.     gp_init ();
  1452.     wire_set_writer (gimp_write);
  1453. diff -crN gimp-1.0.0.orig/libgimp/gimp.h gimp-1.0.0/libgimp/gimp.h
  1454. *** gimp-1.0.0.orig/libgimp/gimp.h    Thu May 28 17:03:46 1998
  1455. --- gimp-1.0.0/libgimp/gimp.h    Fri Jul 10 19:12:20 1998
  1456. ***************
  1457. *** 161,167 ****
  1458. --- 161,171 ----
  1459.   };
  1460.   
  1461.   
  1462. + #ifndef __EMX__
  1463.   #define MAIN() int main (int argc, char *argv[]) { return gimp_main (argc, argv); }
  1464. + #else
  1465. + #define MAIN() int main (int argc, char *argv[]) { set_gimp_PLUG_IN_INFO(&PLUG_IN_INFO); return gimp_main (argc, argv); }
  1466. + #endif
  1467.   
  1468.   
  1469.   /* The main procedure that should be called with the
  1470. diff -crN gimp-1.0.0.orig/libgimp/gimpos2.def gimp-1.0.0/libgimp/gimpos2.def
  1471. *** gimp-1.0.0.orig/libgimp/gimpos2.def    Thu Jan  1 00:00:00 1970
  1472. --- gimp-1.0.0/libgimp/gimpos2.def    Wed Aug  5 00:02:44 1998
  1473. ***************
  1474. *** 0 ****
  1475. --- 1,253 ----
  1476. + LIBRARY gimp
  1477. + DESCRIPTION "gimp.dll for XFree86/OS2 version 1.0.0"
  1478. + CODE PRELOAD
  1479. + DATA MULTIPLE NONSHARED
  1480. + STACKSIZE 65536
  1481. + EXPORTS
  1482. + ; From gimp.obj
  1483. +   "set_gimp_PLUG_IN_INFO" @1
  1484. +   "gimp_main" @2
  1485. +   "gimp_quit" @3
  1486. +   "gimp_set_data" @4
  1487. +   "gimp_run_procedure" @5
  1488. +   "gimp_destroy_params" @6
  1489. +   "gimp_get_data" @7
  1490. +   "gimp_progress_init" @8
  1491. +   "gimp_progress_update" @9
  1492. +   "gimp_message" @10
  1493. +   "gimp_query_database" @11
  1494. +   "gimp_query_procedure" @12
  1495. +   "gimp_query_images" @13
  1496. +   "gimp_install_procedure" @14
  1497. +   "gimp_install_temp_proc" @15
  1498. +   "gimp_uninstall_temp_proc" @16
  1499. +   "gimp_register_magic_load_handler" @17
  1500. +   "gimp_register_load_handler" @18
  1501. +   "gimp_register_save_handler" @19
  1502. +   "gimp_run_procedure2" @20
  1503. +   "gimp_gamma" @21
  1504. +   "gimp_install_cmap" @22
  1505. +   "gimp_use_xshm" @23
  1506. +   "gimp_color_cube" @24
  1507. +   "gimp_gtkrc" @25
  1508. +   "gimp_extension_process" @26
  1509. +   "gimp_extension_ack" @27
  1510. +   "_readfd" @28
  1511. +   "_writefd" @29
  1512. +   "_shm_ID" @30
  1513. +   "_shm_addr" @31
  1514. + ; From gimpchannel.obj
  1515. +   "gimp_channel_new" @32
  1516. +   "gimp_channel_copy" @33
  1517. +   "gimp_channel_delete" @34
  1518. +   "gimp_channel_width" @35
  1519. +   "gimp_channel_height" @36
  1520. +   "gimp_channel_get_image_id" @37
  1521. +   "gimp_channel_get_layer_id" @38
  1522. +   "gimp_channel_get_color" @39
  1523. +   "gimp_channel_get_name" @40
  1524. +   "gimp_channel_get_opacity" @41
  1525. +   "gimp_channel_get_visible" @42
  1526. +   "gimp_channel_set_color" @43
  1527. +   "gimp_channel_set_name" @44
  1528. +   "gimp_channel_set_opacity" @45
  1529. +   "gimp_channel_set_visible" @46
  1530. +   "gimp_channel_get_show_masked" @47
  1531. +   "gimp_channel_set_show_masked" @48
  1532. + ; From gimpdisplay.obj
  1533. +   "gimp_display_new" @49
  1534. +   "gimp_display_delete" @50
  1535. +   "gimp_displays_flush" @51
  1536. + ; From gimpdrawable.obj
  1537. +   "gimp_drawable_get" @52
  1538. +   "gimp_drawable_width" @53
  1539. +   "gimp_drawable_height" @54
  1540. +   "gimp_drawable_bpp" @55
  1541. +   "gimp_drawable_detach" @56
  1542. +   "gimp_drawable_flush" @57
  1543. +   "gimp_drawable_delete" @58
  1544. +   "gimp_drawable_layer" @59
  1545. +   "gimp_drawable_update" @60
  1546. +   "gimp_drawable_merge_shadow" @61
  1547. +   "gimp_drawable_image_id" @62
  1548. +   "gimp_drawable_name" @63
  1549. +   "gimp_drawable_type" @64
  1550. +   "gimp_drawable_visible" @65
  1551. +   "gimp_drawable_channel" @66
  1552. +   "gimp_drawable_color" @67
  1553. +   "gimp_drawable_gray" @68
  1554. +   "gimp_drawable_has_alpha" @69
  1555. +   "gimp_drawable_indexed" @70
  1556. +   "gimp_drawable_layer_mask" @71
  1557. +   "gimp_drawable_mask_bounds" @72
  1558. +   "gimp_drawable_offsets" @73
  1559. +   "gimp_drawable_fill" @74
  1560. +   "gimp_drawable_set_name" @75
  1561. +   "gimp_drawable_set_visible" @76
  1562. +   "gimp_drawable_get_tile" @77
  1563. +   "gimp_drawable_get_tile2" @78
  1564. + ; From gimpgradient.obj
  1565. +   "gimp_gradients_get_list" @79
  1566. +   "gimp_gradients_get_active" @80
  1567. +   "gimp_gradients_set_active" @81
  1568. +   "gimp_gradients_sample_uniform" @82
  1569. +   "gimp_gradients_sample_custom" @83
  1570. + ; From gimpimage.obj
  1571. +   "gimp_image_new" @84
  1572. +   "gimp_image_delete" @85
  1573. +   "gimp_image_width" @86
  1574. +   "gimp_image_height" @87
  1575. +   "gimp_image_base_type" @88
  1576. +   "gimp_image_floating_selection" @89
  1577. +   "gimp_image_add_channel" @90
  1578. +   "gimp_image_add_layer" @91
  1579. +   "gimp_image_add_layer_mask" @92
  1580. +   "gimp_image_disable_undo" @93
  1581. +   "gimp_image_enable_undo" @94
  1582. +   "gimp_image_clean_all" @95
  1583. +   "gimp_image_flatten" @96
  1584. +   "gimp_image_lower_channel" @97
  1585. +   "gimp_image_lower_layer" @98
  1586. +   "gimp_image_merge_visible_layers" @99
  1587. +   "gimp_image_pick_correlate_layer" @100
  1588. +   "gimp_image_raise_channel" @101
  1589. +   "gimp_image_raise_layer" @102
  1590. +   "gimp_image_remove_channel" @103
  1591. +   "gimp_image_remove_layer" @104
  1592. +   "gimp_image_remove_layer_mask" @105
  1593. +   "gimp_image_resize" @106
  1594. +   "gimp_image_get_active_channel" @107
  1595. +   "gimp_image_get_active_layer" @108
  1596. +   "gimp_image_get_channels" @109
  1597. +   "gimp_image_get_cmap" @110
  1598. +   "gimp_image_get_component_active" @111
  1599. +   "gimp_image_get_component_visible" @112
  1600. +   "gimp_image_get_filename" @113
  1601. +   "gimp_image_get_layers" @114
  1602. +   "gimp_image_get_selection" @115
  1603. +   "gimp_image_set_active_channel" @116
  1604. +   "gimp_image_set_active_layer" @117
  1605. +   "gimp_image_set_cmap" @118
  1606. +   "gimp_image_set_component_active" @119
  1607. +   "gimp_image_set_component_visible" @120
  1608. +   "gimp_image_set_filename" @121
  1609. + ; From gimplayer.obj
  1610. +   "gimp_layer_new" @122
  1611. +   "gimp_layer_copy" @123
  1612. +   "gimp_layer_delete" @124
  1613. +   "gimp_layer_width" @125
  1614. +   "gimp_layer_height" @126
  1615. +   "gimp_layer_bpp" @127
  1616. +   "gimp_layer_type" @128
  1617. +   "gimp_layer_add_alpha" @129
  1618. +   "gimp_layer_create_mask" @130
  1619. +   "gimp_layer_resize" @131
  1620. +   "gimp_layer_scale" @132
  1621. +   "gimp_layer_translate" @133
  1622. +   "gimp_layer_is_floating_selection" @134
  1623. +   "gimp_layer_get_image_id" @135
  1624. +   "gimp_layer_get_mask_id" @136
  1625. +   "gimp_layer_get_apply_mask" @137
  1626. +   "gimp_layer_get_edit_mask" @138
  1627. +   "gimp_layer_get_mode" @139
  1628. +   "gimp_layer_get_name" @140
  1629. +   "gimp_layer_get_opacity" @141
  1630. +   "gimp_layer_get_preserve_transparency" @142
  1631. +   "gimp_layer_get_show_mask" @143
  1632. +   "gimp_layer_get_visible" @144
  1633. +   "gimp_layer_set_apply_mask" @145
  1634. +   "gimp_layer_set_edit_mask" @146
  1635. +   "gimp_layer_set_mode" @147
  1636. +   "gimp_layer_set_name" @148
  1637. +   "gimp_layer_set_offsets" @149
  1638. +   "gimp_layer_set_opacity" @150
  1639. +   "gimp_layer_set_preserve_transparency" @151
  1640. +   "gimp_layer_set_show_mask" @152
  1641. +   "gimp_layer_set_visible" @153
  1642. + ; From gimpmenu.obj
  1643. +   "gimp_image_menu_new" @154
  1644. +   "gimp_layer_menu_new" @155
  1645. +   "gimp_channel_menu_new" @156
  1646. +   "gimp_drawable_menu_new" @157
  1647. + ; From gimppalette.obj
  1648. +   "gimp_palette_get_background" @158
  1649. +   "gimp_palette_get_foreground" @159
  1650. +   "gimp_palette_set_background" @160
  1651. +   "gimp_palette_set_foreground" @161
  1652. +   "gimp_palette_set_default_colors" @162
  1653. +   "gimp_palette_swap_colors" @163
  1654. + ; From gimppixelrgn.obj
  1655. +   "gimp_pixel_rgn_init" @164
  1656. +   "gimp_pixel_rgn_resize" @165
  1657. +   "gimp_pixel_rgn_get_pixel" @166
  1658. +   "gimp_pixel_rgn_get_row" @167
  1659. +   "gimp_pixel_rgn_get_col" @168
  1660. +   "gimp_pixel_rgn_get_rect" @169
  1661. +   "gimp_pixel_rgn_set_pixel" @170
  1662. +   "gimp_pixel_rgn_set_row" @171
  1663. +   "gimp_pixel_rgn_set_col" @172
  1664. +   "gimp_pixel_rgn_set_rect" @173
  1665. +   "gimp_pixel_rgns_register" @174
  1666. +   "gimp_pixel_rgns_process" @175
  1667. + ; From gimpprotocol.obj
  1668. +   "gp_init" @176
  1669. +   "gp_quit_write" @177
  1670. +   "gp_config_write" @178
  1671. +   "gp_tile_req_write" @179
  1672. +   "gp_tile_ack_write" @180
  1673. +   "gp_tile_data_write" @181
  1674. +   "gp_proc_run_write" @182
  1675. +   "gp_proc_return_write" @183
  1676. +   "gp_temp_proc_run_write" @184
  1677. +   "gp_temp_proc_return_write" @185
  1678. +   "gp_proc_install_write" @186
  1679. +   "gp_proc_uninstall_write" @187
  1680. +   "gp_extension_ack_write" @188
  1681. +   "_gp_params_destroy" @189
  1682. + ; From gimptile.obj
  1683. +   "gimp_tile_ref" @190
  1684. +   "gimp_tile_ref_zero" @191
  1685. +   "gimp_tile_unref" @192
  1686. +   "gimp_tile_flush" @193
  1687. +   "gimp_tile_cache_size" @194
  1688. +   "gimp_tile_cache_ntiles" @195
  1689. +   "gimp_tile_width" @196
  1690. +   "gimp_tile_height" @197
  1691. +   "_gimp_tile_width" @198
  1692. +   "_gimp_tile_height" @199
  1693. + ; From gimpwire.obj
  1694. +   "wire_register" @200
  1695. +   "wire_set_reader" @201
  1696. +   "wire_set_writer" @202
  1697. +   "wire_set_flusher" @203
  1698. +   "wire_read" @204
  1699. +   "wire_write" @205
  1700. +   "wire_flush" @206
  1701. +   "wire_error" @207
  1702. +   "wire_clear_error" @208
  1703. +   "wire_read_msg" @209
  1704. +   "wire_read_int32" @210
  1705. +   "wire_write_msg" @211
  1706. +   "wire_write_int32" @212
  1707. +   "wire_destroy" @213
  1708. +   "wire_read_int8" @214
  1709. +   "wire_read_int16" @215
  1710. +   "wire_read_double" @216
  1711. +   "wire_read_string" @217
  1712. +   "wire_write_int8" @218
  1713. +   "wire_write_int16" @219
  1714. +   "wire_write_double" @220
  1715. +   "wire_write_string" @221
  1716. diff -crN gimp-1.0.0.orig/libgimp/gimpos2.rsp gimp-1.0.0/libgimp/gimpos2.rsp
  1717. *** gimp-1.0.0.orig/libgimp/gimpos2.rsp    Thu Jan  1 00:00:00 1970
  1718. --- gimp-1.0.0/libgimp/gimpos2.rsp    Thu Jul  9 15:11:16 1998
  1719. ***************
  1720. *** 0 ****
  1721. --- 1,6 ----
  1722. + gimp.obj            gimpchannel.obj     gimpdisplay.obj     gimpdrawable.obj+
  1723. + gimpgradient.obj    gimpimage.obj       gimplayer.obj       gimpmenu.obj+
  1724. + gimppalette.obj     gimppixelrgn.obj    gimpprotocol.obj    gimptile.obj+
  1725. + gimpwire.obj /NOL /NOD /BAT
  1726. + gimp.dll
  1727. diff -crN gimp-1.0.0.orig/libgimp/Imakefile gimp-1.0.0/libgimp/Imakefile
  1728. *** gimp-1.0.0.orig/libgimp/Imakefile    Thu Jan  1 00:00:00 1970
  1729. --- gimp-1.0.0/libgimp/Imakefile    Sat Sep 12 23:25:56 1998
  1730. ***************
  1731. *** 0 ****
  1732. --- 1,46 ----
  1733. + /*
  1734. +     Written for XFree86/OS2
  1735. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1736. +  */
  1737. + #define DoNormalLib (!HasSharedLibraries || ForceNormalLib)
  1738. + #define DoSharedLib HasSharedLibraries
  1739. + #define LibName gimp
  1740. + #define IncSubdir libgimp
  1741. + #ifdef OS2Architecture
  1742. + REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ gtk gdk glib Xext X11 shm
  1743. + #endif
  1744. + DEFINES = -DHAVE_CONFIG_H
  1745. + INCLUDES = -I.. -I.
  1746. + HEADERS = gimp.h gimpenums.h gimpmenu.h gimpui.h
  1747. + OBJS1 =    gimpprotocol.o    \
  1748. +     gimpwire.o
  1749. + OBJS2 =    gimp.o          \
  1750. +     gimpchannel.o   \
  1751. +     gimpdisplay.o   \
  1752. +     gimpdrawable.o  \
  1753. +     gimpgradient.o  \
  1754. +     gimpimage.o     \
  1755. +     gimplayer.o     \
  1756. +     gimppalette.o   \
  1757. +     gimppixelrgn.o  \
  1758. +     gimpprotocol.o  \
  1759. +     gimptile.o      \
  1760. +     gimpwire.o
  1761. + OBJS3 = gimpmenu.o
  1762. + OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
  1763. + #include <Library.tmpl>
  1764. + #ifdef OS2Architecture
  1765. + clean::
  1766. +     rm -rf exports
  1767. + #endif
  1768. diff -crN gimp-1.0.0.orig/plug-ins/aa/Imakefile gimp-1.0.0/plug-ins/aa/Imakefile
  1769. *** gimp-1.0.0.orig/plug-ins/aa/Imakefile    Thu Jan  1 00:00:00 1970
  1770. --- gimp-1.0.0/plug-ins/aa/Imakefile    Sat Jul 11 15:52:48 1998
  1771. ***************
  1772. *** 0 ****
  1773. --- 1,11 ----
  1774. + /*
  1775. +     Written for XFree86/OS2
  1776. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1777. +  */
  1778. + #include "../plug-ins.tmpl"
  1779. + ADD_LIBS = -laa
  1780. + SimpleProgramTarget(aa)
  1781. diff -crN gimp-1.0.0.orig/plug-ins/AlienMap/Imakefile gimp-1.0.0/plug-ins/AlienMap/Imakefile
  1782. *** gimp-1.0.0.orig/plug-ins/AlienMap/Imakefile    Thu Jan  1 00:00:00 1970
  1783. --- gimp-1.0.0/plug-ins/AlienMap/Imakefile    Thu Jul  9 17:06:02 1998
  1784. ***************
  1785. *** 0 ****
  1786. --- 1,9 ----
  1787. + /*
  1788. +     Written for XFree86/OS2
  1789. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1790. +  */
  1791. + #include "../plug-ins.tmpl"
  1792. + SimpleProgramTarget(AlienMap)
  1793. diff -crN gimp-1.0.0.orig/plug-ins/align_layers/Imakefile gimp-1.0.0/plug-ins/align_layers/Imakefile
  1794. *** gimp-1.0.0.orig/plug-ins/align_layers/Imakefile    Thu Jan  1 00:00:00 1970
  1795. --- gimp-1.0.0/plug-ins/align_layers/Imakefile    Thu Jul  9 17:07:02 1998
  1796. ***************
  1797. *** 0 ****
  1798. --- 1,9 ----
  1799. + /*
  1800. +     Written for XFree86/OS2
  1801. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1802. +  */
  1803. + #include "../plug-ins.tmpl"
  1804. + SimpleProgramTarget(align_layers)
  1805. diff -crN gimp-1.0.0.orig/plug-ins/animationplay/Imakefile gimp-1.0.0/plug-ins/animationplay/Imakefile
  1806. *** gimp-1.0.0.orig/plug-ins/animationplay/Imakefile    Thu Jan  1 00:00:00 1970
  1807. --- gimp-1.0.0/plug-ins/animationplay/Imakefile    Thu Jul  9 16:58:56 1998
  1808. ***************
  1809. *** 0 ****
  1810. --- 1,9 ----
  1811. + /*
  1812. +     Written for XFree86/OS2
  1813. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1814. +  */
  1815. + #include "../plug-ins.tmpl"
  1816. + SimpleProgramTarget(animationplay)
  1817. diff -crN gimp-1.0.0.orig/plug-ins/animoptimize/Imakefile gimp-1.0.0/plug-ins/animoptimize/Imakefile
  1818. *** gimp-1.0.0.orig/plug-ins/animoptimize/Imakefile    Thu Jan  1 00:00:00 1970
  1819. --- gimp-1.0.0/plug-ins/animoptimize/Imakefile    Thu Jul  9 17:07:24 1998
  1820. ***************
  1821. *** 0 ****
  1822. --- 1,9 ----
  1823. + /*
  1824. +     Written for XFree86/OS2
  1825. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1826. +  */
  1827. + #include "../plug-ins.tmpl"
  1828. + SimpleProgramTarget(animoptimize)
  1829. diff -crN gimp-1.0.0.orig/plug-ins/apply_lens/Imakefile gimp-1.0.0/plug-ins/apply_lens/Imakefile
  1830. *** gimp-1.0.0.orig/plug-ins/apply_lens/Imakefile    Thu Jan  1 00:00:00 1970
  1831. --- gimp-1.0.0/plug-ins/apply_lens/Imakefile    Thu Jul  9 17:07:52 1998
  1832. ***************
  1833. *** 0 ****
  1834. --- 1,9 ----
  1835. + /*
  1836. +     Written for XFree86/OS2
  1837. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1838. +  */
  1839. + #include "../plug-ins.tmpl"
  1840. + SimpleProgramTarget(apply_lens)
  1841. diff -crN gimp-1.0.0.orig/plug-ins/autocrop/Imakefile gimp-1.0.0/plug-ins/autocrop/Imakefile
  1842. *** gimp-1.0.0.orig/plug-ins/autocrop/Imakefile    Thu Jan  1 00:00:00 1970
  1843. --- gimp-1.0.0/plug-ins/autocrop/Imakefile    Thu Jul  9 17:08:48 1998
  1844. ***************
  1845. *** 0 ****
  1846. --- 1,9 ----
  1847. + /*
  1848. +     Written for XFree86/OS2
  1849. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1850. +  */
  1851. + #include "../plug-ins.tmpl"
  1852. + SimpleProgramTarget(autocrop)
  1853. diff -crN gimp-1.0.0.orig/plug-ins/autostretch_hsv/Imakefile gimp-1.0.0/plug-ins/autostretch_hsv/Imakefile
  1854. *** gimp-1.0.0.orig/plug-ins/autostretch_hsv/Imakefile    Thu Jan  1 00:00:00 1970
  1855. --- gimp-1.0.0/plug-ins/autostretch_hsv/Imakefile    Thu Jul  9 17:09:26 1998
  1856. ***************
  1857. *** 0 ****
  1858. --- 1,9 ----
  1859. + /*
  1860. +     Written for XFree86/OS2
  1861. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1862. +  */
  1863. + #include "../plug-ins.tmpl"
  1864. + SimpleProgramTarget(autostretch_hsv)
  1865. diff -crN gimp-1.0.0.orig/plug-ins/blinds/Imakefile gimp-1.0.0/plug-ins/blinds/Imakefile
  1866. *** gimp-1.0.0.orig/plug-ins/blinds/Imakefile    Thu Jan  1 00:00:00 1970
  1867. --- gimp-1.0.0/plug-ins/blinds/Imakefile    Thu Jul  9 17:09:58 1998
  1868. ***************
  1869. *** 0 ****
  1870. --- 1,9 ----
  1871. + /*
  1872. +     Written for XFree86/OS2
  1873. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1874. +  */
  1875. + #include "../plug-ins.tmpl"
  1876. + SimpleProgramTarget(blinds)
  1877. diff -crN gimp-1.0.0.orig/plug-ins/blur/Imakefile gimp-1.0.0/plug-ins/blur/Imakefile
  1878. *** gimp-1.0.0.orig/plug-ins/blur/Imakefile    Thu Jan  1 00:00:00 1970
  1879. --- gimp-1.0.0/plug-ins/blur/Imakefile    Sat Jul 11 15:53:34 1998
  1880. ***************
  1881. *** 0 ****
  1882. --- 1,11 ----
  1883. + /*
  1884. +     Written for XFree86/OS2
  1885. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1886. +  */
  1887. + #include "../plug-ins.tmpl"
  1888. + ADD_LIBS = -L../gpc -lgpc
  1889. + SimpleProgramTarget(blur)
  1890. diff -crN gimp-1.0.0.orig/plug-ins/bmp/Imakefile gimp-1.0.0/plug-ins/bmp/Imakefile
  1891. *** gimp-1.0.0.orig/plug-ins/bmp/Imakefile    Thu Jan  1 00:00:00 1970
  1892. --- gimp-1.0.0/plug-ins/bmp/Imakefile    Thu Jul  9 18:42:34 1998
  1893. ***************
  1894. *** 0 ****
  1895. --- 1,13 ----
  1896. + /*
  1897. +     Written for XFree86/OS2
  1898. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1899. +  */
  1900. + #include "../plug-ins.tmpl"
  1901. + SRCS = bmp.c bmpread.c bmpwrite.c
  1902. + OBJS = bmp.o bmpread.o bmpwrite.o
  1903. + ComplexProgramTarget(bmp)
  1904. diff -crN gimp-1.0.0.orig/plug-ins/bumpmap/Imakefile gimp-1.0.0/plug-ins/bumpmap/Imakefile
  1905. *** gimp-1.0.0.orig/plug-ins/bumpmap/Imakefile    Thu Jan  1 00:00:00 1970
  1906. --- gimp-1.0.0/plug-ins/bumpmap/Imakefile    Thu Jul  9 18:44:46 1998
  1907. ***************
  1908. *** 0 ****
  1909. --- 1,9 ----
  1910. + /*
  1911. +     Written for XFree86/OS2
  1912. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  1913. +  */
  1914. + #include "../plug-ins.tmpl"
  1915. + SimpleProgramTarget(bumpmap)
  1916. diff -crN gimp-1.0.0.orig/plug-ins/bz2/bz2.c gimp-1.0.0/plug-ins/bz2/bz2.c
  1917. *** gimp-1.0.0.orig/plug-ins/bz2/bz2.c    Sat May 30 15:32:26 1998
  1918. --- gimp-1.0.0/plug-ins/bz2/bz2.c    Fri Jul 17 01:48:52 1998
  1919. ***************
  1920. *** 42,47 ****
  1921. --- 42,51 ----
  1922.   #include <errno.h>
  1923.   #include "gtk/gtk.h"
  1924.   #include "libgimp/gimp.h"
  1925. + #ifdef __EMX__
  1926. + #include <fcntl.h>
  1927. + #include <process.h>
  1928. + #endif
  1929.   
  1930.   
  1931.   static void   query      (void);
  1932. ***************
  1933. *** 242,247 ****
  1934. --- 246,252 ----
  1935.   /*     return -1; */
  1936.   /*   } */
  1937.   
  1938. + #ifndef __EMX__
  1939.     /* fork off a bzip2 process */
  1940.     if ((pid = fork()) < 0)
  1941.       {
  1942. ***************
  1943. *** 266,271 ****
  1944. --- 271,316 ----
  1945.         _exit(127);
  1946.       }
  1947.     else
  1948. + #else /* __EMX__ */
  1949. +   if (!(f = fopen(filename,"w"))){
  1950. +     g_message("bz2: fopen failed: %s\n", g_strerror(errno));
  1951. +     return -1;
  1952. +   }
  1953. +   {
  1954. +     int tfd, flag;
  1955. +     /* save fileno(stdout) */
  1956. +     tfd = dup(fileno(stdout));
  1957. +     if (tfd < 0)
  1958. +       {
  1959. +     g_message("bz2: dup failed: %s\n", g_strerror(errno));
  1960. +     return -1;
  1961. +       }
  1962. +     /* make stdout for this process be the output file */
  1963. +     if (dup2(fileno(f),fileno(stdout)) == -1)
  1964. +       {
  1965. +     g_message ("bz2: dup2 failed: %s\n", g_strerror(errno));
  1966. +     close(tfd);
  1967. +     return -1;
  1968. +       }
  1969. +     flag = fcntl(tfd, F_GETFD);
  1970. +     fcntl(tfd, F_SETFD, flag | FD_CLOEXEC);
  1971. +     pid = spawnlp (P_NOWAIT, "bzip2", "bzip2", "-cf", tmpname, NULL);
  1972. +     fclose(f);
  1973. +     /* restore fileno(stdout) */
  1974. +     if (dup2(tfd,fileno(stdout)) == -1)
  1975. +       {
  1976. +     g_message ("bz2: dup2 failed: %s\n", g_strerror(errno));
  1977. +     close(tfd);
  1978. +     return -1;
  1979. +       }
  1980. +     close(tfd);
  1981. +     if (pid == -1)
  1982. +       {
  1983. +     g_message ("bz2: spawn failed: %s\n", g_strerror(errno));
  1984. +     return -1;
  1985. +       }
  1986. +   }
  1987. + #endif
  1988.       {
  1989.         waitpid (pid, &status, 0);
  1990.   
  1991. ***************
  1992. *** 302,307 ****
  1993. --- 347,353 ----
  1994.   
  1995.     tmpname = params[1].data.d_string;
  1996.   
  1997. + #ifndef __EMX__
  1998.     /* fork off a g(un)zip and wait for it */
  1999.     if ((pid = fork()) < 0)
  2000.       {
  2001. ***************
  2002. *** 326,331 ****
  2003. --- 372,418 ----
  2004.         _exit(127);
  2005.       }
  2006.     else  /* parent process */
  2007. + #else /* __EMX__ */
  2008. +   {
  2009. +     FILE *f;
  2010. +     int tfd, flag;
  2011. +     if (!(f = fopen(tmpname,"w"))){
  2012. +       g_message("bz2: fopen failed: %s\n", g_strerror(errno));
  2013. +       return -1;
  2014. +     }
  2015. +     /* save fileno(stdout) */
  2016. +     tfd = dup(fileno(stdout));
  2017. +     if (tfd < 0)
  2018. +       {
  2019. +     g_message("bz2: dup failed: %s\n", g_strerror(errno));
  2020. +     return -1;
  2021. +       }
  2022. +     /* make stdout for this process be the output file */
  2023. +     if (dup2(fileno(f),fileno(stdout)) == -1)
  2024. +       {
  2025. +     g_message ("bz2: dup2 failed: %s\n", g_strerror(errno));
  2026. +     close(tfd);
  2027. +     return -1;
  2028. +       }
  2029. +     flag = fcntl(tfd, F_GETFD);
  2030. +     fcntl(tfd, F_SETFD, flag | FD_CLOEXEC);
  2031. +     pid = spawnlp (P_NOWAIT, "bzip2", "bzip2", "-cfd", filename, NULL);
  2032. +     fclose(f);
  2033. +     /* restore fileno(stdout) */
  2034. +     if (dup2(tfd,fileno(stdout)) == -1)
  2035. +       {
  2036. +     g_message ("bz2: dup2 failed: %s\n", g_strerror(errno));
  2037. +     close(tfd);
  2038. +     return -1;
  2039. +       }
  2040. +     close(tfd);
  2041. +     if (pid == -1)
  2042. +       {
  2043. +     g_message ("bz2: spawn failed: %s\n", g_strerror(errno));
  2044. +     return -1;
  2045. +       }
  2046. +   }
  2047. + #endif
  2048.       {
  2049.         waitpid (pid, &status, 0);
  2050.   
  2051. diff -crN gimp-1.0.0.orig/plug-ins/bz2/Imakefile gimp-1.0.0/plug-ins/bz2/Imakefile
  2052. *** gimp-1.0.0.orig/plug-ins/bz2/Imakefile    Thu Jan  1 00:00:00 1970
  2053. --- gimp-1.0.0/plug-ins/bz2/Imakefile    Thu Jul  9 18:46:30 1998
  2054. ***************
  2055. *** 0 ****
  2056. --- 1,9 ----
  2057. + /*
  2058. +     Written for XFree86/OS2
  2059. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2060. +  */
  2061. + #include "../plug-ins.tmpl"
  2062. + SimpleProgramTarget(bz2)
  2063. diff -crN gimp-1.0.0.orig/plug-ins/c_astretch/Imakefile gimp-1.0.0/plug-ins/c_astretch/Imakefile
  2064. *** gimp-1.0.0.orig/plug-ins/c_astretch/Imakefile    Thu Jan  1 00:00:00 1970
  2065. --- gimp-1.0.0/plug-ins/c_astretch/Imakefile    Thu Jul  9 18:48:02 1998
  2066. ***************
  2067. *** 0 ****
  2068. --- 1,9 ----
  2069. + /*
  2070. +     Written for XFree86/OS2
  2071. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2072. +  */
  2073. + #include "../plug-ins.tmpl"
  2074. + SimpleProgramTarget(c_astretch)
  2075. diff -crN gimp-1.0.0.orig/plug-ins/CEL/CEL.c gimp-1.0.0/plug-ins/CEL/CEL.c
  2076. *** gimp-1.0.0.orig/plug-ins/CEL/CEL.c    Wed Jun  3 07:34:58 1998
  2077. --- gimp-1.0.0/plug-ins/CEL/CEL.c    Sat Jul 11 10:41:14 1998
  2078. ***************
  2079. *** 55,63 ****
  2080. --- 55,67 ----
  2081.   
  2082.   /* Let GIMP library handle initialisation (and inquisitive users) */
  2083.   
  2084. + #if 0
  2085.   int main(int argc, char *argv[]) {
  2086.     return gimp_main(argc, argv);
  2087.   }
  2088. + #else
  2089. + MAIN()
  2090. + #endif
  2091.   
  2092.   /* GIMP queries plug-in for parameters etc. */
  2093.   
  2094. diff -crN gimp-1.0.0.orig/plug-ins/CEL/Imakefile gimp-1.0.0/plug-ins/CEL/Imakefile
  2095. *** gimp-1.0.0.orig/plug-ins/CEL/Imakefile    Thu Jan  1 00:00:00 1970
  2096. --- gimp-1.0.0/plug-ins/CEL/Imakefile    Thu Jul  9 18:48:42 1998
  2097. ***************
  2098. *** 0 ****
  2099. --- 1,9 ----
  2100. + /*
  2101. +     Written for XFree86/OS2
  2102. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2103. +  */
  2104. + #include "../plug-ins.tmpl"
  2105. + SimpleProgramTarget(CEL)
  2106. diff -crN gimp-1.0.0.orig/plug-ins/checkerboard/Imakefile gimp-1.0.0/plug-ins/checkerboard/Imakefile
  2107. *** gimp-1.0.0.orig/plug-ins/checkerboard/Imakefile    Thu Jan  1 00:00:00 1970
  2108. --- gimp-1.0.0/plug-ins/checkerboard/Imakefile    Thu Jul  9 18:49:48 1998
  2109. ***************
  2110. *** 0 ****
  2111. --- 1,9 ----
  2112. + /*
  2113. +     Written for XFree86/OS2
  2114. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2115. +  */
  2116. + #include "../plug-ins.tmpl"
  2117. + SimpleProgramTarget(checkerboard)
  2118. diff -crN gimp-1.0.0.orig/plug-ins/CML_explorer/Imakefile gimp-1.0.0/plug-ins/CML_explorer/Imakefile
  2119. *** gimp-1.0.0.orig/plug-ins/CML_explorer/Imakefile    Thu Jan  1 00:00:00 1970
  2120. --- gimp-1.0.0/plug-ins/CML_explorer/Imakefile    Thu Jul  9 18:40:24 1998
  2121. ***************
  2122. *** 0 ****
  2123. --- 1,9 ----
  2124. + /*
  2125. +     Written for XFree86/OS2
  2126. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2127. +  */
  2128. + #include "../plug-ins.tmpl"
  2129. + SimpleProgramTarget(CML_explorer)
  2130. diff -crN gimp-1.0.0.orig/plug-ins/colorify/Imakefile gimp-1.0.0/plug-ins/colorify/Imakefile
  2131. *** gimp-1.0.0.orig/plug-ins/colorify/Imakefile    Thu Jan  1 00:00:00 1970
  2132. --- gimp-1.0.0/plug-ins/colorify/Imakefile    Thu Jul  9 18:50:56 1998
  2133. ***************
  2134. *** 0 ****
  2135. --- 1,9 ----
  2136. + /*
  2137. +     Written for XFree86/OS2
  2138. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2139. +  */
  2140. + #include "../plug-ins.tmpl"
  2141. + SimpleProgramTarget(colorify)
  2142. diff -crN gimp-1.0.0.orig/plug-ins/compose/Imakefile gimp-1.0.0/plug-ins/compose/Imakefile
  2143. *** gimp-1.0.0.orig/plug-ins/compose/Imakefile    Thu Jan  1 00:00:00 1970
  2144. --- gimp-1.0.0/plug-ins/compose/Imakefile    Thu Jul  9 18:53:04 1998
  2145. ***************
  2146. *** 0 ****
  2147. --- 1,9 ----
  2148. + /*
  2149. +     Written for XFree86/OS2
  2150. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2151. +  */
  2152. + #include "../plug-ins.tmpl"
  2153. + SimpleProgramTarget(compose)
  2154. diff -crN gimp-1.0.0.orig/plug-ins/convmatrix/Imakefile gimp-1.0.0/plug-ins/convmatrix/Imakefile
  2155. *** gimp-1.0.0.orig/plug-ins/convmatrix/Imakefile    Thu Jan  1 00:00:00 1970
  2156. --- gimp-1.0.0/plug-ins/convmatrix/Imakefile    Thu Jul  9 18:54:06 1998
  2157. ***************
  2158. *** 0 ****
  2159. --- 1,9 ----
  2160. + /*
  2161. +     Written for XFree86/OS2
  2162. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2163. +  */
  2164. + #include "../plug-ins.tmpl"
  2165. + SimpleProgramTarget(convmatrix)
  2166. diff -crN gimp-1.0.0.orig/plug-ins/cubism/Imakefile gimp-1.0.0/plug-ins/cubism/Imakefile
  2167. *** gimp-1.0.0.orig/plug-ins/cubism/Imakefile    Thu Jan  1 00:00:00 1970
  2168. --- gimp-1.0.0/plug-ins/cubism/Imakefile    Thu Jul  9 18:55:12 1998
  2169. ***************
  2170. *** 0 ****
  2171. --- 1,9 ----
  2172. + /*
  2173. +     Written for XFree86/OS2
  2174. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2175. +  */
  2176. + #include "../plug-ins.tmpl"
  2177. + SimpleProgramTarget(cubism)
  2178. diff -crN gimp-1.0.0.orig/plug-ins/dbbrowser/Imakefile gimp-1.0.0/plug-ins/dbbrowser/Imakefile
  2179. *** gimp-1.0.0.orig/plug-ins/dbbrowser/Imakefile    Thu Jan  1 00:00:00 1970
  2180. --- gimp-1.0.0/plug-ins/dbbrowser/Imakefile    Thu Jul  9 18:07:36 1998
  2181. ***************
  2182. *** 0 ****
  2183. --- 1,13 ----
  2184. + /*
  2185. +     Written for XFree86/OS2
  2186. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2187. +  */
  2188. + #include "../plug-ins.tmpl"
  2189. + SRCS = dbbrowser.c dbbrowser_utils.c
  2190. + OBJS = dbbrowser.o dbbrowser_utils.o
  2191. + ComplexProgramTarget(dbbrowser)
  2192. diff -crN gimp-1.0.0.orig/plug-ins/decompose/Imakefile gimp-1.0.0/plug-ins/decompose/Imakefile
  2193. *** gimp-1.0.0.orig/plug-ins/decompose/Imakefile    Thu Jan  1 00:00:00 1970
  2194. --- gimp-1.0.0/plug-ins/decompose/Imakefile    Thu Jul  9 18:55:58 1998
  2195. ***************
  2196. *** 0 ****
  2197. --- 1,9 ----
  2198. + /*
  2199. +     Written for XFree86/OS2
  2200. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2201. +  */
  2202. + #include "../plug-ins.tmpl"
  2203. + SimpleProgramTarget(decompose)
  2204. diff -crN gimp-1.0.0.orig/plug-ins/deinterlace/Imakefile gimp-1.0.0/plug-ins/deinterlace/Imakefile
  2205. *** gimp-1.0.0.orig/plug-ins/deinterlace/Imakefile    Thu Jan  1 00:00:00 1970
  2206. --- gimp-1.0.0/plug-ins/deinterlace/Imakefile    Sat Jul 11 15:54:26 1998
  2207. ***************
  2208. *** 0 ****
  2209. --- 1,11 ----
  2210. + /*
  2211. +     Written for XFree86/OS2
  2212. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2213. +  */
  2214. + #include "../plug-ins.tmpl"
  2215. + ADD_LIBS = -L../megawidget -lmegawidget
  2216. + SimpleProgramTarget(deinterlace)
  2217. diff -crN gimp-1.0.0.orig/plug-ins/depthmerge/Imakefile gimp-1.0.0/plug-ins/depthmerge/Imakefile
  2218. *** gimp-1.0.0.orig/plug-ins/depthmerge/Imakefile    Thu Jan  1 00:00:00 1970
  2219. --- gimp-1.0.0/plug-ins/depthmerge/Imakefile    Thu Jul  9 18:58:10 1998
  2220. ***************
  2221. *** 0 ****
  2222. --- 1,9 ----
  2223. + /*
  2224. +     Written for XFree86/OS2
  2225. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2226. +  */
  2227. + #include "../plug-ins.tmpl"
  2228. + SimpleProgramTarget(depthmerge)
  2229. diff -crN gimp-1.0.0.orig/plug-ins/despeckle/despeckle.c gimp-1.0.0/plug-ins/despeckle/despeckle.c
  2230. *** gimp-1.0.0.orig/plug-ins/despeckle/despeckle.c    Tue Apr 28 11:50:16 1998
  2231. --- gimp-1.0.0/plug-ins/despeckle/despeckle.c    Sat Jul 11 10:42:46 1998
  2232. ***************
  2233. *** 237,248 ****
  2234. --- 237,252 ----
  2235.    * 'main()' - Main entry - just call gimp_main()...
  2236.    */
  2237.   
  2238. + #if 0
  2239.   int
  2240.   main(int  argc,        /* I - Number of command-line args */
  2241.        char *argv[])    /* I - Command-line args */
  2242.   {
  2243.     return (gimp_main(argc, argv));
  2244.   }
  2245. + #else
  2246. + MAIN()
  2247. + #endif
  2248.   
  2249.   
  2250.   /*
  2251. diff -crN gimp-1.0.0.orig/plug-ins/despeckle/Imakefile gimp-1.0.0/plug-ins/despeckle/Imakefile
  2252. *** gimp-1.0.0.orig/plug-ins/despeckle/Imakefile    Thu Jan  1 00:00:00 1970
  2253. --- gimp-1.0.0/plug-ins/despeckle/Imakefile    Thu Jul  9 19:02:54 1998
  2254. ***************
  2255. *** 0 ****
  2256. --- 1,9 ----
  2257. + /*
  2258. +     Written for XFree86/OS2
  2259. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2260. +  */
  2261. + #include "../plug-ins.tmpl"
  2262. + SimpleProgramTarget(despeckle)
  2263. diff -crN gimp-1.0.0.orig/plug-ins/destripe/destripe.c gimp-1.0.0/plug-ins/destripe/destripe.c
  2264. *** gimp-1.0.0.orig/plug-ins/destripe/destripe.c    Mon Apr 13 13:41:42 1998
  2265. --- gimp-1.0.0/plug-ins/destripe/destripe.c    Sat Jul 11 10:44:04 1998
  2266. ***************
  2267. *** 120,131 ****
  2268. --- 120,135 ----
  2269.    * 'main()' - Main entry - just call gimp_main()...
  2270.    */
  2271.   
  2272. + #if 0
  2273.   int
  2274.   main(int  argc,        /* I - Number of command-line args */
  2275.        char *argv[])    /* I - Command-line args */
  2276.   {
  2277.     return (gimp_main(argc, argv));
  2278.   }
  2279. + #else
  2280. + MAIN()
  2281. + #endif
  2282.   
  2283.   
  2284.   /*
  2285. diff -crN gimp-1.0.0.orig/plug-ins/destripe/Imakefile gimp-1.0.0/plug-ins/destripe/Imakefile
  2286. *** gimp-1.0.0.orig/plug-ins/destripe/Imakefile    Thu Jan  1 00:00:00 1970
  2287. --- gimp-1.0.0/plug-ins/destripe/Imakefile    Thu Jul  9 19:03:42 1998
  2288. ***************
  2289. *** 0 ****
  2290. --- 1,9 ----
  2291. + /*
  2292. +     Written for XFree86/OS2
  2293. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2294. +  */
  2295. + #include "../plug-ins.tmpl"
  2296. + SimpleProgramTarget(destripe)
  2297. diff -crN gimp-1.0.0.orig/plug-ins/diffraction/Imakefile gimp-1.0.0/plug-ins/diffraction/Imakefile
  2298. *** gimp-1.0.0.orig/plug-ins/diffraction/Imakefile    Thu Jan  1 00:00:00 1970
  2299. --- gimp-1.0.0/plug-ins/diffraction/Imakefile    Thu Jul  9 19:04:24 1998
  2300. ***************
  2301. *** 0 ****
  2302. --- 1,9 ----
  2303. + /*
  2304. +     Written for XFree86/OS2
  2305. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2306. +  */
  2307. + #include "../plug-ins.tmpl"
  2308. + SimpleProgramTarget(diffraction)
  2309. diff -crN gimp-1.0.0.orig/plug-ins/displace/Imakefile gimp-1.0.0/plug-ins/displace/Imakefile
  2310. *** gimp-1.0.0.orig/plug-ins/displace/Imakefile    Thu Jan  1 00:00:00 1970
  2311. --- gimp-1.0.0/plug-ins/displace/Imakefile    Thu Jul  9 19:05:06 1998
  2312. ***************
  2313. *** 0 ****
  2314. --- 1,9 ----
  2315. + /*
  2316. +     Written for XFree86/OS2
  2317. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2318. +  */
  2319. + #include "../plug-ins.tmpl"
  2320. + SimpleProgramTarget(displace)
  2321. diff -crN gimp-1.0.0.orig/plug-ins/edge/Imakefile gimp-1.0.0/plug-ins/edge/Imakefile
  2322. *** gimp-1.0.0.orig/plug-ins/edge/Imakefile    Thu Jan  1 00:00:00 1970
  2323. --- gimp-1.0.0/plug-ins/edge/Imakefile    Thu Jul  9 19:05:54 1998
  2324. ***************
  2325. *** 0 ****
  2326. --- 1,9 ----
  2327. + /*
  2328. +     Written for XFree86/OS2
  2329. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2330. +  */
  2331. + #include "../plug-ins.tmpl"
  2332. + SimpleProgramTarget(edge)
  2333. diff -crN gimp-1.0.0.orig/plug-ins/emboss/Imakefile gimp-1.0.0/plug-ins/emboss/Imakefile
  2334. *** gimp-1.0.0.orig/plug-ins/emboss/Imakefile    Thu Jan  1 00:00:00 1970
  2335. --- gimp-1.0.0/plug-ins/emboss/Imakefile    Sat Jul 11 15:55:14 1998
  2336. ***************
  2337. *** 0 ****
  2338. --- 1,11 ----
  2339. + /*
  2340. +     Written for XFree86/OS2
  2341. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2342. +  */
  2343. + #include "../plug-ins.tmpl"
  2344. + ADD_LIBS = -L../megawidget -lmegawidget
  2345. + SimpleProgramTarget(emboss)
  2346. diff -crN gimp-1.0.0.orig/plug-ins/engrave/Imakefile gimp-1.0.0/plug-ins/engrave/Imakefile
  2347. *** gimp-1.0.0.orig/plug-ins/engrave/Imakefile    Thu Jan  1 00:00:00 1970
  2348. --- gimp-1.0.0/plug-ins/engrave/Imakefile    Thu Jul  9 19:07:58 1998
  2349. ***************
  2350. *** 0 ****
  2351. --- 1,9 ----
  2352. + /*
  2353. +     Written for XFree86/OS2
  2354. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2355. +  */
  2356. + #include "../plug-ins.tmpl"
  2357. + SimpleProgramTarget(engrave)
  2358. diff -crN gimp-1.0.0.orig/plug-ins/exchange/Imakefile gimp-1.0.0/plug-ins/exchange/Imakefile
  2359. *** gimp-1.0.0.orig/plug-ins/exchange/Imakefile    Thu Jan  1 00:00:00 1970
  2360. --- gimp-1.0.0/plug-ins/exchange/Imakefile    Thu Jul  9 19:08:44 1998
  2361. ***************
  2362. *** 0 ****
  2363. --- 1,9 ----
  2364. + /*
  2365. +     Written for XFree86/OS2
  2366. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2367. +  */
  2368. + #include "../plug-ins.tmpl"
  2369. + SimpleProgramTarget(exchange)
  2370. diff -crN gimp-1.0.0.orig/plug-ins/faxg3/Imakefile gimp-1.0.0/plug-ins/faxg3/Imakefile
  2371. *** gimp-1.0.0.orig/plug-ins/faxg3/Imakefile    Thu Jan  1 00:00:00 1970
  2372. --- gimp-1.0.0/plug-ins/faxg3/Imakefile    Thu Jul  9 19:12:14 1998
  2373. ***************
  2374. *** 0 ****
  2375. --- 1,12 ----
  2376. + /*
  2377. +     Written for XFree86/OS2
  2378. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2379. +  */
  2380. + #include "../plug-ins.tmpl"
  2381. + SRCS = faxg3.c g3.c run_tbl.c
  2382. + OBJS = faxg3.o g3.o run_tbl.o
  2383. + ComplexProgramTarget(faxg3)
  2384. diff -crN gimp-1.0.0.orig/plug-ins/film/Imakefile gimp-1.0.0/plug-ins/film/Imakefile
  2385. *** gimp-1.0.0.orig/plug-ins/film/Imakefile    Thu Jan  1 00:00:00 1970
  2386. --- gimp-1.0.0/plug-ins/film/Imakefile    Thu Jul  9 19:10:38 1998
  2387. ***************
  2388. *** 0 ****
  2389. --- 1,9 ----
  2390. + /*
  2391. +     Written for XFree86/OS2
  2392. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2393. +  */
  2394. + #include "../plug-ins.tmpl"
  2395. + SimpleProgramTarget(film)
  2396. diff -crN gimp-1.0.0.orig/plug-ins/fits/Imakefile gimp-1.0.0/plug-ins/fits/Imakefile
  2397. *** gimp-1.0.0.orig/plug-ins/fits/Imakefile    Thu Jan  1 00:00:00 1970
  2398. --- gimp-1.0.0/plug-ins/fits/Imakefile    Thu Jul  9 19:11:50 1998
  2399. ***************
  2400. *** 0 ****
  2401. --- 1,12 ----
  2402. + /*
  2403. +     Written for XFree86/OS2
  2404. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2405. +  */
  2406. + #include "../plug-ins.tmpl"
  2407. + SRCS = fits.c fitsrw.c
  2408. + OBJS = fits.o fitsrw.o
  2409. + ComplexProgramTarget(fits)
  2410. diff -crN gimp-1.0.0.orig/plug-ins/flame/Imakefile gimp-1.0.0/plug-ins/flame/Imakefile
  2411. *** gimp-1.0.0.orig/plug-ins/flame/Imakefile    Thu Jan  1 00:00:00 1970
  2412. --- gimp-1.0.0/plug-ins/flame/Imakefile    Sat Jul 11 15:56:12 1998
  2413. ***************
  2414. *** 0 ****
  2415. --- 1,14 ----
  2416. + /*
  2417. +     Written for XFree86/OS2
  2418. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2419. +  */
  2420. + #include "../plug-ins.tmpl"
  2421. + ADD_LIBS = -L../megawidget -lmegawidget
  2422. + SRCS = cmap.c flame.c libifs.c rect.c
  2423. + OBJS = cmap.o flame.o libifs.o rect.o
  2424. + ComplexProgramTarget(flame)
  2425. diff -crN gimp-1.0.0.orig/plug-ins/flarefx/Imakefile gimp-1.0.0/plug-ins/flarefx/Imakefile
  2426. *** gimp-1.0.0.orig/plug-ins/flarefx/Imakefile    Thu Jan  1 00:00:00 1970
  2427. --- gimp-1.0.0/plug-ins/flarefx/Imakefile    Thu Jul  9 19:16:00 1998
  2428. ***************
  2429. *** 0 ****
  2430. --- 1,9 ----
  2431. + /*
  2432. +     Written for XFree86/OS2
  2433. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2434. +  */
  2435. + #include "../plug-ins.tmpl"
  2436. + SimpleProgramTarget(flarefx)
  2437. diff -crN gimp-1.0.0.orig/plug-ins/fractaltrace/Imakefile gimp-1.0.0/plug-ins/fractaltrace/Imakefile
  2438. *** gimp-1.0.0.orig/plug-ins/fractaltrace/Imakefile    Thu Jan  1 00:00:00 1970
  2439. --- gimp-1.0.0/plug-ins/fractaltrace/Imakefile    Thu Jul  9 19:16:48 1998
  2440. ***************
  2441. *** 0 ****
  2442. --- 1,9 ----
  2443. + /*
  2444. +     Written for XFree86/OS2
  2445. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2446. +  */
  2447. + #include "../plug-ins.tmpl"
  2448. + SimpleProgramTarget(fractaltrace)
  2449. diff -crN gimp-1.0.0.orig/plug-ins/gauss_iir/Imakefile gimp-1.0.0/plug-ins/gauss_iir/Imakefile
  2450. *** gimp-1.0.0.orig/plug-ins/gauss_iir/Imakefile    Thu Jan  1 00:00:00 1970
  2451. --- gimp-1.0.0/plug-ins/gauss_iir/Imakefile    Thu Jul  9 19:43:46 1998
  2452. ***************
  2453. *** 0 ****
  2454. --- 1,9 ----
  2455. + /*
  2456. +     Written for XFree86/OS2
  2457. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2458. +  */
  2459. + #include "../plug-ins.tmpl"
  2460. + SimpleProgramTarget(gauss_iir)
  2461. diff -crN gimp-1.0.0.orig/plug-ins/gauss_rle/Imakefile gimp-1.0.0/plug-ins/gauss_rle/Imakefile
  2462. *** gimp-1.0.0.orig/plug-ins/gauss_rle/Imakefile    Thu Jan  1 00:00:00 1970
  2463. --- gimp-1.0.0/plug-ins/gauss_rle/Imakefile    Thu Jul  9 19:44:32 1998
  2464. ***************
  2465. *** 0 ****
  2466. --- 1,9 ----
  2467. + /*
  2468. +     Written for XFree86/OS2
  2469. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2470. +  */
  2471. + #include "../plug-ins.tmpl"
  2472. + SimpleProgramTarget(gauss_rle)
  2473. diff -crN gimp-1.0.0.orig/plug-ins/gbr/Imakefile gimp-1.0.0/plug-ins/gbr/Imakefile
  2474. *** gimp-1.0.0.orig/plug-ins/gbr/Imakefile    Thu Jan  1 00:00:00 1970
  2475. --- gimp-1.0.0/plug-ins/gbr/Imakefile    Thu Jul  9 19:45:12 1998
  2476. ***************
  2477. *** 0 ****
  2478. --- 1,9 ----
  2479. + /*
  2480. +     Written for XFree86/OS2
  2481. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2482. +  */
  2483. + #include "../plug-ins.tmpl"
  2484. + SimpleProgramTarget(gbr)
  2485. diff -crN gimp-1.0.0.orig/plug-ins/gee/Imakefile gimp-1.0.0/plug-ins/gee/Imakefile
  2486. *** gimp-1.0.0.orig/plug-ins/gee/Imakefile    Thu Jan  1 00:00:00 1970
  2487. --- gimp-1.0.0/plug-ins/gee/Imakefile    Thu Jul  9 19:45:52 1998
  2488. ***************
  2489. *** 0 ****
  2490. --- 1,9 ----
  2491. + /*
  2492. +     Written for XFree86/OS2
  2493. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2494. +  */
  2495. + #include "../plug-ins.tmpl"
  2496. + SimpleProgramTarget(gee)
  2497. diff -crN gimp-1.0.0.orig/plug-ins/gfig/gfig-examples/Imakefile gimp-1.0.0/plug-ins/gfig/gfig-examples/Imakefile
  2498. *** gimp-1.0.0.orig/plug-ins/gfig/gfig-examples/Imakefile    Thu Jan  1 00:00:00 1970
  2499. --- gimp-1.0.0/plug-ins/gfig/gfig-examples/Imakefile    Thu Jul  9 20:18:24 1998
  2500. ***************
  2501. *** 0 ****
  2502. --- 1,21 ----
  2503. + /*
  2504. +     Written for XFree86/OS2
  2505. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2506. +  */
  2507. + #include "../../../gimp.cf"
  2508. + gfigdata_DATA = \
  2509. +         A_star                  \
  2510. +         curves                  \
  2511. +         polys                   \
  2512. +         ring                    \
  2513. +         ring+star               \
  2514. +         simily                  \
  2515. +         spirals_and_stars       \
  2516. +         sprial                  \
  2517. +         star2                   \
  2518. +         stars
  2519. + InstallMultiple($(gfigdata_DATA),$(GIMPDATADIR)/gfig)
  2520. diff -crN gimp-1.0.0.orig/plug-ins/gfig/gfig.c gimp-1.0.0/plug-ins/gfig/gfig.c
  2521. *** gimp-1.0.0.orig/plug-ins/gfig/gfig.c    Fri Apr 24 10:18:40 1998
  2522. --- gimp-1.0.0/plug-ins/gfig/gfig.c    Sat Jul 11 14:29:14 1998
  2523. ***************
  2524. *** 839,851 ****
  2525. --- 839,859 ----
  2526.   
  2527.     /* Search through all directories in the  path */
  2528.   
  2529. + #ifndef __EMX__
  2530.     token = strtok (path_string, ":");
  2531. + #else
  2532. +   token = strtok (path_string, ";");
  2533. + #endif
  2534.   
  2535.     while (token)
  2536.       {
  2537.         if (*token == '\0')
  2538.       {
  2539. + #ifndef __EMX__
  2540.         token = strtok (NULL, ":");
  2541. + #else
  2542. +       token = strtok (NULL, ";");
  2543. + #endif
  2544.         continue;
  2545.       }
  2546.   
  2547. ***************
  2548. *** 880,886 ****
  2549. --- 888,898 ----
  2550.         create_warn_dialog(buf);
  2551.         g_free (path);
  2552.       }
  2553. + #ifndef __EMX__
  2554.         token = strtok (NULL, ":");
  2555. + #else
  2556. +       token = strtok (NULL, ";");
  2557. + #endif
  2558.       }
  2559.     g_free (path_string);
  2560.   }
  2561. diff -crN gimp-1.0.0.orig/plug-ins/gfig/Imakefile gimp-1.0.0/plug-ins/gfig/Imakefile
  2562. *** gimp-1.0.0.orig/plug-ins/gfig/Imakefile    Thu Jan  1 00:00:00 1970
  2563. --- gimp-1.0.0/plug-ins/gfig/Imakefile    Thu Jul  9 20:16:28 1998
  2564. ***************
  2565. *** 0 ****
  2566. --- 1,15 ----
  2567. + /*
  2568. +     Written for XFree86/OS2
  2569. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2570. +  */
  2571. + #include "../plug-ins.tmpl"
  2572. + SimpleProgramTarget(gfig)
  2573. + #define IHaveSubdirs
  2574. + #define PassCDebugFlags
  2575. + SUBDIRS = gfig-examples
  2576. + MakeSubdirs($(SUBDIRS))
  2577. diff -crN gimp-1.0.0.orig/plug-ins/gfli/Imakefile gimp-1.0.0/plug-ins/gfli/Imakefile
  2578. *** gimp-1.0.0.orig/plug-ins/gfli/Imakefile    Thu Jan  1 00:00:00 1970
  2579. --- gimp-1.0.0/plug-ins/gfli/Imakefile    Thu Jul  9 20:21:00 1998
  2580. ***************
  2581. *** 0 ****
  2582. --- 1,12 ----
  2583. + /*
  2584. +     Written for XFree86/OS2
  2585. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2586. +  */
  2587. + #include "../plug-ins.tmpl"
  2588. + SRCS = fli.c gfli.c
  2589. + OBJS = fli.o gfli.o
  2590. + ComplexProgramTarget(gfli)
  2591. diff -crN gimp-1.0.0.orig/plug-ins/gicon/Imakefile gimp-1.0.0/plug-ins/gicon/Imakefile
  2592. *** gimp-1.0.0.orig/plug-ins/gicon/Imakefile    Thu Jan  1 00:00:00 1970
  2593. --- gimp-1.0.0/plug-ins/gicon/Imakefile    Thu Jul  9 20:21:52 1998
  2594. ***************
  2595. *** 0 ****
  2596. --- 1,9 ----
  2597. + /*
  2598. +     Written for XFree86/OS2
  2599. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2600. +  */
  2601. + #include "../plug-ins.tmpl"
  2602. + SimpleProgramTarget(gicon)
  2603. diff -crN gimp-1.0.0.orig/plug-ins/gif/Imakefile gimp-1.0.0/plug-ins/gif/Imakefile
  2604. *** gimp-1.0.0.orig/plug-ins/gif/Imakefile    Thu Jan  1 00:00:00 1970
  2605. --- gimp-1.0.0/plug-ins/gif/Imakefile    Thu Jul  9 20:23:02 1998
  2606. ***************
  2607. *** 0 ****
  2608. --- 1,9 ----
  2609. + /*
  2610. +     Written for XFree86/OS2
  2611. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2612. +  */
  2613. + #include "../plug-ins.tmpl"
  2614. + SimpleProgramTarget(gif)
  2615. diff -crN gimp-1.0.0.orig/plug-ins/glasstile/Imakefile gimp-1.0.0/plug-ins/glasstile/Imakefile
  2616. *** gimp-1.0.0.orig/plug-ins/glasstile/Imakefile    Thu Jan  1 00:00:00 1970
  2617. --- gimp-1.0.0/plug-ins/glasstile/Imakefile    Thu Jul  9 20:23:56 1998
  2618. ***************
  2619. *** 0 ****
  2620. --- 1,9 ----
  2621. + /*
  2622. +     Written for XFree86/OS2
  2623. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2624. +  */
  2625. + #include "../plug-ins.tmpl"
  2626. + SimpleProgramTarget(glasstile)
  2627. diff -crN gimp-1.0.0.orig/plug-ins/gpc/gpcos2.def gimp-1.0.0/plug-ins/gpc/gpcos2.def
  2628. *** gimp-1.0.0.orig/plug-ins/gpc/gpcos2.def    Thu Jan  1 00:00:00 1970
  2629. --- gimp-1.0.0/plug-ins/gpc/gpcos2.def    Sun Jul 26 01:16:40 1998
  2630. ***************
  2631. *** 0 ****
  2632. --- 1,16 ----
  2633. + LIBRARY gpc
  2634. + DESCRIPTION "GIMP/2 gpc.dll for XFree86/OS2 version 1.0.0"
  2635. + CODE PRELOAD
  2636. + DATA MULTIPLE NONSHARED
  2637. + STACKSIZE 32768
  2638. + EXPORTS
  2639. +     gpc_close_callback @ 1
  2640. +     gpc_cancel_callback @ 2
  2641. +     gpc_scale_update @ 3
  2642. +     gpc_text_update @ 4
  2643. +     gpc_setup_tooltips @ 5
  2644. +     gpc_set_tooltip @ 6
  2645. +     gpc_add_action_button @ 7
  2646. +     gpc_add_radio_button @ 8
  2647. +     gpc_add_label @ 9
  2648. +     gpc_add_hscale @ 10
  2649. diff -crN gimp-1.0.0.orig/plug-ins/gpc/gpcos2.rsp gimp-1.0.0/plug-ins/gpc/gpcos2.rsp
  2650. *** gimp-1.0.0.orig/plug-ins/gpc/gpcos2.rsp    Thu Jan  1 00:00:00 1970
  2651. --- gimp-1.0.0/plug-ins/gpc/gpcos2.rsp    Thu Jul  9 17:26:30 1998
  2652. ***************
  2653. *** 0 ****
  2654. --- 1,3 ----
  2655. + gpc.obj /NOL /NOD /BAT
  2656. + gpc.dll
  2657. diff -crN gimp-1.0.0.orig/plug-ins/gpc/Imakefile gimp-1.0.0/plug-ins/gpc/Imakefile
  2658. *** gimp-1.0.0.orig/plug-ins/gpc/Imakefile    Thu Jan  1 00:00:00 1970
  2659. --- gimp-1.0.0/plug-ins/gpc/Imakefile    Thu Aug 13 14:55:48 1998
  2660. ***************
  2661. *** 0 ****
  2662. --- 1,30 ----
  2663. + /*
  2664. +     Written for XFree86/OS2
  2665. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2666. +  */
  2667. + #define DoNormalLib (!HasSharedLibraries || ForceNormalLib)
  2668. + #define DoSharedLib HasSharedLibraries
  2669. + #define LibName gpc
  2670. + #define IncSubdir plug-ins/gpc
  2671. + #ifdef OS2Architecture
  2672. + REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ gtk gdk glib Xext X11 shm
  2673. + #endif
  2674. + DEFINES = -DHAVE_CONFIG_H
  2675. + INCLUDES = -I../.. -I.
  2676. + HEADERS = gpc.h
  2677. + OBJS =    gpc.o
  2678. + #include <Library.tmpl>
  2679. + InstallManPage(gpc,$(LIBMANDIR))
  2680. + #ifdef OS2Architecture
  2681. + clean::
  2682. +     rm -rf exports
  2683. + #endif
  2684. diff -crN gimp-1.0.0.orig/plug-ins/gqbist/Imakefile gimp-1.0.0/plug-ins/gqbist/Imakefile
  2685. *** gimp-1.0.0.orig/plug-ins/gqbist/Imakefile    Thu Jan  1 00:00:00 1970
  2686. --- gimp-1.0.0/plug-ins/gqbist/Imakefile    Thu Jul  9 20:24:50 1998
  2687. ***************
  2688. *** 0 ****
  2689. --- 1,9 ----
  2690. + /*
  2691. +     Written for XFree86/OS2
  2692. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2693. +  */
  2694. + #include "../plug-ins.tmpl"
  2695. + SimpleProgramTarget(gqbist)
  2696. diff -crN gimp-1.0.0.orig/plug-ins/gradmap/Imakefile gimp-1.0.0/plug-ins/gradmap/Imakefile
  2697. *** gimp-1.0.0.orig/plug-ins/gradmap/Imakefile    Thu Jan  1 00:00:00 1970
  2698. --- gimp-1.0.0/plug-ins/gradmap/Imakefile    Thu Jul  9 20:27:16 1998
  2699. ***************
  2700. *** 0 ****
  2701. --- 1,9 ----
  2702. + /*
  2703. +     Written for XFree86/OS2
  2704. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2705. +  */
  2706. + #include "../plug-ins.tmpl"
  2707. + SimpleProgramTarget(gradmap)
  2708. diff -crN gimp-1.0.0.orig/plug-ins/grid/Imakefile gimp-1.0.0/plug-ins/grid/Imakefile
  2709. *** gimp-1.0.0.orig/plug-ins/grid/Imakefile    Thu Jan  1 00:00:00 1970
  2710. --- gimp-1.0.0/plug-ins/grid/Imakefile    Thu Jul  9 20:27:46 1998
  2711. ***************
  2712. *** 0 ****
  2713. --- 1,9 ----
  2714. + /*
  2715. +     Written for XFree86/OS2
  2716. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2717. +  */
  2718. + #include "../plug-ins.tmpl"
  2719. + SimpleProgramTarget(grid)
  2720. diff -crN gimp-1.0.0.orig/plug-ins/gtm/Imakefile gimp-1.0.0/plug-ins/gtm/Imakefile
  2721. *** gimp-1.0.0.orig/plug-ins/gtm/Imakefile    Thu Jan  1 00:00:00 1970
  2722. --- gimp-1.0.0/plug-ins/gtm/Imakefile    Thu Jul  9 20:28:16 1998
  2723. ***************
  2724. *** 0 ****
  2725. --- 1,9 ----
  2726. + /*
  2727. +     Written for XFree86/OS2
  2728. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2729. +  */
  2730. + #include "../plug-ins.tmpl"
  2731. + SimpleProgramTarget(gtm)
  2732. diff -crN gimp-1.0.0.orig/plug-ins/gz/gz.c gimp-1.0.0/plug-ins/gz/gz.c
  2733. *** gimp-1.0.0.orig/plug-ins/gz/gz.c    Sat May 30 15:32:28 1998
  2734. --- gimp-1.0.0/plug-ins/gz/gz.c    Sat Jul 11 15:31:34 1998
  2735. ***************
  2736. *** 67,72 ****
  2737. --- 67,76 ----
  2738.   #include <errno.h>
  2739.   #include "gtk/gtk.h"
  2740.   #include "libgimp/gimp.h"
  2741. + #ifdef __EMX__
  2742. + #include <fcntl.h>
  2743. + #include <process.h>
  2744. + #endif
  2745.   
  2746.   /* Author 1: Josh MacDonald (url.c) */
  2747.   /* Author 2: Daniel Risacher (gz.c) */
  2748. ***************
  2749. *** 278,283 ****
  2750. --- 282,288 ----
  2751.   /*     return -1; */
  2752.   /*   } */
  2753.   
  2754. + #ifndef __EMX__
  2755.     /* fork off a gzip process */
  2756.     if ((pid = fork()) < 0)
  2757.       {
  2758. ***************
  2759. *** 302,307 ****
  2760. --- 307,352 ----
  2761.         _exit(127);
  2762.       }
  2763.     else
  2764. + #else /* __EMX__ */
  2765. +   if (!(f = fopen(filename,"w"))){
  2766. +     g_message("gz: fopen failed: %s\n", g_strerror(errno));
  2767. +     return -1;
  2768. +   }
  2769. +   {
  2770. +     int tfd, flag;
  2771. +     /* save fileno(stdout) */
  2772. +     tfd = dup(fileno(stdout));
  2773. +     if (tfd < 0)
  2774. +       {
  2775. +         g_message("gz: dup failed: %s\n", g_strerror(errno));
  2776. +         return -1;
  2777. +       }
  2778. +     /* make stdout for this process be the output file */
  2779. +     if (dup2(fileno(f),fileno(stdout)) == -1)
  2780. +       {
  2781. +         g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
  2782. +     close(tfd);
  2783. +         return -1;
  2784. +       }
  2785. +     flag = fcntl(tfd, F_GETFD);
  2786. +     fcntl(tfd, F_SETFD, flag | FD_CLOEXEC);
  2787. +     pid = spawnlp (P_NOWAIT, "gzip", "gzip", "-cf", tmpname, NULL);
  2788. +     fclose(f);
  2789. +     /* restore fileno(stdout) */
  2790. +     if (dup2(tfd,fileno(stdout)) == -1)
  2791. +       {
  2792. +         g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
  2793. +     close(tfd);
  2794. +         return -1;
  2795. +       }
  2796. +     close(tfd);
  2797. +     if (pid == -1)
  2798. +       {
  2799. +         g_message ("gz: spawn failed: %s\n", g_strerror(errno));
  2800. +         return -1;
  2801. +       }
  2802. +   }
  2803. + #endif
  2804.       {
  2805.         waitpid (pid, &status, 0);
  2806.   
  2807. ***************
  2808. *** 341,346 ****
  2809. --- 386,392 ----
  2810.   
  2811.     tmpname = params[1].data.d_string;
  2812.   
  2813. + #ifndef __EMX__
  2814.     /* fork off a g(un)zip and wait for it */
  2815.     if ((pid = fork()) < 0)
  2816.       {
  2817. ***************
  2818. *** 365,370 ****
  2819. --- 411,457 ----
  2820.         _exit(127);
  2821.       }
  2822.     else  /* parent process */
  2823. + #else /* __EMX__ */
  2824. +   {
  2825. +     FILE *f;
  2826. +     int tfd, flag;
  2827. +     if (!(f = fopen(tmpname,"w"))){
  2828. +       g_message("gz: fopen failed: %s\n", g_strerror(errno));
  2829. +       return -1;
  2830. +     }
  2831. +     /* save fileno(stdout) */
  2832. +     tfd = dup(fileno(stdout));
  2833. +     if (tfd < 0)
  2834. +       {
  2835. +         g_message("gz: dup failed: %s\n", g_strerror(errno));
  2836. +         return -1;
  2837. +       }
  2838. +     /* make stdout for this process be the output file */
  2839. +     if (dup2(fileno(f),fileno(stdout)) == -1)
  2840. +       {
  2841. +         g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
  2842. +     close(tfd);
  2843. +         return -1;
  2844. +       }
  2845. +     flag = fcntl(tfd, F_GETFD);
  2846. +     fcntl(tfd, F_SETFD, flag | FD_CLOEXEC);
  2847. +     pid = spawnlp (P_NOWAIT, "gzip", "gzip", "-cfd", filename, NULL);
  2848. +     fclose(f);
  2849. +     /* restore fileno(stdout) */
  2850. +     if (dup2(tfd,fileno(stdout)) == -1)
  2851. +       {
  2852. +         g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
  2853. +     close(tfd);
  2854. +         return -1;
  2855. +       }
  2856. +     close(tfd);
  2857. +     if (pid == -1)
  2858. +       {
  2859. +         g_message ("gz: spawn failed: %s\n", g_strerror(errno));
  2860. +         return -1;
  2861. +       }
  2862. +   }
  2863. + #endif
  2864.       {
  2865.         waitpid (pid, &status, 0);
  2866.   
  2867. diff -crN gimp-1.0.0.orig/plug-ins/gz/Imakefile gimp-1.0.0/plug-ins/gz/Imakefile
  2868. *** gimp-1.0.0.orig/plug-ins/gz/Imakefile    Thu Jan  1 00:00:00 1970
  2869. --- gimp-1.0.0/plug-ins/gz/Imakefile    Thu Jul  9 20:28:46 1998
  2870. ***************
  2871. *** 0 ****
  2872. --- 1,9 ----
  2873. + /*
  2874. +     Written for XFree86/OS2
  2875. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2876. +  */
  2877. + #include "../plug-ins.tmpl"
  2878. + SimpleProgramTarget(gz)
  2879. diff -crN gimp-1.0.0.orig/plug-ins/header/Imakefile gimp-1.0.0/plug-ins/header/Imakefile
  2880. *** gimp-1.0.0.orig/plug-ins/header/Imakefile    Thu Jan  1 00:00:00 1970
  2881. --- gimp-1.0.0/plug-ins/header/Imakefile    Thu Jul  9 20:30:04 1998
  2882. ***************
  2883. *** 0 ****
  2884. --- 1,9 ----
  2885. + /*
  2886. +     Written for XFree86/OS2
  2887. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2888. +  */
  2889. + #include "../plug-ins.tmpl"
  2890. + SimpleProgramTarget(header)
  2891. diff -crN gimp-1.0.0.orig/plug-ins/hot/Imakefile gimp-1.0.0/plug-ins/hot/Imakefile
  2892. *** gimp-1.0.0.orig/plug-ins/hot/Imakefile    Thu Jan  1 00:00:00 1970
  2893. --- gimp-1.0.0/plug-ins/hot/Imakefile    Sat Jul 11 15:57:36 1998
  2894. ***************
  2895. *** 0 ****
  2896. --- 1,11 ----
  2897. + /*
  2898. +     Written for XFree86/OS2
  2899. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2900. +  */
  2901. + #include "../plug-ins.tmpl"
  2902. + ADD_LIBS = -L../megawidget -lmegawidget
  2903. + SimpleProgramTarget(hot)
  2904. diff -crN gimp-1.0.0.orig/plug-ins/hrz/hrz.c gimp-1.0.0/plug-ins/hrz/hrz.c
  2905. *** gimp-1.0.0.orig/plug-ins/hrz/hrz.c    Mon Apr 13 13:42:20 1998
  2906. --- gimp-1.0.0/plug-ins/hrz/hrz.c    Mon Jul 13 18:29:46 1998
  2907. ***************
  2908. *** 43,49 ****
  2909. --- 43,51 ----
  2910.   #include <string.h>
  2911.   #include <math.h>
  2912.   #include <unistd.h>
  2913. + #ifndef __EMX__
  2914.   #include <sys/mman.h>
  2915. + #endif
  2916.   #include "gtk/gtk.h"
  2917.   #include "libgimp/gimp.h"
  2918.   
  2919. ***************
  2920. *** 292,303 ****
  2921. --- 294,319 ----
  2922.         fprintf(stderr, "hrz filter: file is not HRZ type\n");
  2923.         return -1;
  2924.       }
  2925. + #ifndef __EMX__
  2926.     mapped = mmap(NULL, 256*240*3, PROT_READ, MAP_PRIVATE, filedes, 0);
  2927.     if(mapped == (void *)(-1))
  2928.       {
  2929.         fprintf(stderr, "hrz filter: could not map file\n");
  2930.         return -1;
  2931.       }
  2932. + #else
  2933. +   mapped = g_malloc(256*240*3);
  2934. +   if(mapped == NULL)
  2935. +     {
  2936. +       fprintf(stderr, "hrz filter: could not allocate memory\n");
  2937. +       return -1;
  2938. +     }
  2939. +   if (read(filedes, mapped, 256*240*3) != 256*240*3)
  2940. +     {
  2941. +       fprintf(stderr, "hrz filter: file read error\n");
  2942. +       return -1;
  2943. +     }
  2944. + #endif
  2945.     close (filedes);  /* not needed anymore, data is memory mapped */
  2946.   
  2947.     /* Create new image of proper size; associate filename */
  2948. ***************
  2949. *** 315,322 ****
  2950. --- 331,342 ----
  2951.   
  2952.     do_hrz_load(mapped, &pixel_rgn);
  2953.   
  2954. + #ifndef __EMX__
  2955.     /* close the file */
  2956.     munmap(mapped, 256*240*3);
  2957. + #else
  2958. +   g_free(mapped);
  2959. + #endif
  2960.   
  2961.     /* Tell the GIMP to display the image.
  2962.      */
  2963. diff -crN gimp-1.0.0.orig/plug-ins/hrz/Imakefile gimp-1.0.0/plug-ins/hrz/Imakefile
  2964. *** gimp-1.0.0.orig/plug-ins/hrz/Imakefile    Thu Jan  1 00:00:00 1970
  2965. --- gimp-1.0.0/plug-ins/hrz/Imakefile    Mon Jul 13 18:23:34 1998
  2966. ***************
  2967. *** 0 ****
  2968. --- 1,9 ----
  2969. + /*
  2970. +     Written for XFree86/OS2
  2971. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2972. +  */
  2973. + #include "../plug-ins.tmpl"
  2974. + SimpleProgramTarget(hrz)
  2975. diff -crN gimp-1.0.0.orig/plug-ins/ifscompose/Imakefile gimp-1.0.0/plug-ins/ifscompose/Imakefile
  2976. *** gimp-1.0.0.orig/plug-ins/ifscompose/Imakefile    Thu Jan  1 00:00:00 1970
  2977. --- gimp-1.0.0/plug-ins/ifscompose/Imakefile    Thu Jul  9 20:44:10 1998
  2978. ***************
  2979. *** 0 ****
  2980. --- 1,12 ----
  2981. + /*
  2982. +     Written for XFree86/OS2
  2983. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2984. +  */
  2985. + #include "../plug-ins.tmpl"
  2986. + SRCS = ifscompose.c ifscompose_utils.c
  2987. + OBJS = ifscompose.o ifscompose_utils.o
  2988. + ComplexProgramTarget(ifscompose)
  2989. diff -crN gimp-1.0.0.orig/plug-ins/illusion/Imakefile gimp-1.0.0/plug-ins/illusion/Imakefile
  2990. *** gimp-1.0.0.orig/plug-ins/illusion/Imakefile    Thu Jan  1 00:00:00 1970
  2991. --- gimp-1.0.0/plug-ins/illusion/Imakefile    Thu Jul  9 20:45:04 1998
  2992. ***************
  2993. *** 0 ****
  2994. --- 1,9 ----
  2995. + /*
  2996. +     Written for XFree86/OS2
  2997. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  2998. +  */
  2999. + #include "../plug-ins.tmpl"
  3000. + SimpleProgramTarget(illusion)
  3001. diff -crN gimp-1.0.0.orig/plug-ins/Imakefile gimp-1.0.0/plug-ins/Imakefile
  3002. *** gimp-1.0.0.orig/plug-ins/Imakefile    Thu Jan  1 00:00:00 1970
  3003. --- gimp-1.0.0/plug-ins/Imakefile    Mon Jul 13 18:35:52 1998
  3004. ***************
  3005. *** 0 ****
  3006. --- 1,140 ----
  3007. + /*
  3008. +     Written for XFree86/OS2
  3009. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3010. +  */
  3011. + #define IHaveSubdirs
  3012. + #define PassCDebugFlags
  3013. + SUBDIRS =             \
  3014. +     libgck            \
  3015. +     megawidget        \
  3016. +     gpc            \
  3017. +     MapObject        \
  3018. +     AlienMap        \
  3019. +     dbbrowser        \
  3020. +     script-fu        \
  3021. +     struc            \
  3022. +     webbrowser        \
  3023. +     aa            \
  3024. +     tiff            \
  3025. +     jpeg            \
  3026. +     png            \
  3027. +     mpeg            \
  3028. +     xd            \
  3029. +     xpm            \
  3030. +     CML_explorer        \
  3031. +     align_layers        \
  3032. +     animoptimize        \
  3033. +     apply_lens        \
  3034. +     autocrop        \
  3035. +     animationplay        \
  3036. +     autostretch_hsv        \
  3037. +     blinds            \
  3038. +     blur            \
  3039. +     bmp            \
  3040. +     bumpmap            \
  3041. +     bz2            \
  3042. +     c_astretch        \
  3043. +     CEL            \
  3044. +     checkerboard        \
  3045. +     colorify        \
  3046. +     compose            \
  3047. +     convmatrix        \
  3048. +     cubism            \
  3049. +     decompose        \
  3050. +     deinterlace        \
  3051. +     depthmerge        \
  3052. +     despeckle        \
  3053. +     destripe        \
  3054. +     diffraction        \
  3055. +     displace        \
  3056. +     edge            \
  3057. +     emboss            \
  3058. +     engrave            \
  3059. +     exchange        \
  3060. +     faxg3            \
  3061. +     film            \
  3062. +     fits            \
  3063. +     flame            \
  3064. +     flarefx            \
  3065. +     fractaltrace        \
  3066. +     gauss_iir        \
  3067. +     gauss_rle        \
  3068. +     gbr            \
  3069. +     gee            \
  3070. +     gfig            \
  3071. +     gfli            \
  3072. +     gicon            \
  3073. +     gif            \
  3074. +     glasstile        \
  3075. +     gqbist            \
  3076. +     gradmap            \
  3077. +     grid            \
  3078. +     gtm            \
  3079. +     gz            \
  3080. +     header            \
  3081. +     hot            \
  3082. +     hrz            \
  3083. +     ifscompose        \
  3084. +     illusion        \
  3085. +     iwarp            \
  3086. +     laplace            \
  3087. +     mail            \
  3088. +     max_rgb            \
  3089. +     maze            \
  3090. +     mblur            \
  3091. +     mosaic            \
  3092. +     nlfilt            \
  3093. +     noisify            \
  3094. +     normalize        \
  3095. +     nova            \
  3096. +     oilify            \
  3097. +     pagecurl        \
  3098. +     palette            \
  3099. +     papertile        \
  3100. +     pat            \
  3101. +     pcx            \
  3102. +     pix            \
  3103. +     pixelize        \
  3104. +     plasma            \
  3105. +     pnm            \
  3106. +     polar            \
  3107. +     print            \
  3108. +     ps            \
  3109. +     psd            \
  3110. +     randomize        \
  3111. +     ripple            \
  3112. +     rotate            \
  3113. +     rotators        \
  3114. +     scatter_hsv        \
  3115. +     screenshot        \
  3116. +     semiflatten        \
  3117. +     sgi            \
  3118. +     sharpen            \
  3119. +     shift            \
  3120. +     sinus            \
  3121. +     smooth_palette        \
  3122. +     snoise            \
  3123. +     snp            \
  3124. +     sobel            \
  3125. +     sparkle            \
  3126. +     spread            \
  3127. +     sunras            \
  3128. +     tga            \
  3129. +     threshold_alpha        \
  3130. +     tile            \
  3131. +     tileit            \
  3132. +     tiler            \
  3133. +     url            \
  3134. +     video            \
  3135. +     vinvert            \
  3136. +     vpropagate        \
  3137. +     waves            \
  3138. +     whirlpinch        \
  3139. +     xwd            \
  3140. +     zealouscrop
  3141. + MakeSubdirs($(SUBDIRS))
  3142. + DependSubdirs($(SUBDIRS))
  3143. diff -crN gimp-1.0.0.orig/plug-ins/iwarp/Imakefile gimp-1.0.0/plug-ins/iwarp/Imakefile
  3144. *** gimp-1.0.0.orig/plug-ins/iwarp/Imakefile    Thu Jan  1 00:00:00 1970
  3145. --- gimp-1.0.0/plug-ins/iwarp/Imakefile    Thu Jul  9 20:45:44 1998
  3146. ***************
  3147. *** 0 ****
  3148. --- 1,9 ----
  3149. + /*
  3150. +     Written for XFree86/OS2
  3151. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3152. +  */
  3153. + #include "../plug-ins.tmpl"
  3154. + SimpleProgramTarget(iwarp)
  3155. diff -crN gimp-1.0.0.orig/plug-ins/jpeg/Imakefile gimp-1.0.0/plug-ins/jpeg/Imakefile
  3156. *** gimp-1.0.0.orig/plug-ins/jpeg/Imakefile    Thu Jan  1 00:00:00 1970
  3157. --- gimp-1.0.0/plug-ins/jpeg/Imakefile    Sat Jul 11 15:58:22 1998
  3158. ***************
  3159. *** 0 ****
  3160. --- 1,11 ----
  3161. + /*
  3162. +     Written for XFree86/OS2
  3163. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3164. +  */
  3165. + #include "../plug-ins.tmpl"
  3166. + ADD_LIBS = -ljpeg
  3167. + SimpleProgramTarget(jpeg)
  3168. diff -crN gimp-1.0.0.orig/plug-ins/laplace/Imakefile gimp-1.0.0/plug-ins/laplace/Imakefile
  3169. *** gimp-1.0.0.orig/plug-ins/laplace/Imakefile    Thu Jan  1 00:00:00 1970
  3170. --- gimp-1.0.0/plug-ins/laplace/Imakefile    Thu Jul  9 20:46:52 1998
  3171. ***************
  3172. *** 0 ****
  3173. --- 1,9 ----
  3174. + /*
  3175. +     Written for XFree86/OS2
  3176. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3177. +  */
  3178. + #include "../plug-ins.tmpl"
  3179. + SimpleProgramTarget(laplace)
  3180. diff -crN gimp-1.0.0.orig/plug-ins/libgck/gck/gckos2.def gimp-1.0.0/plug-ins/libgck/gck/gckos2.def
  3181. *** gimp-1.0.0.orig/plug-ins/libgck/gck/gckos2.def    Thu Jan  1 00:00:00 1970
  3182. --- gimp-1.0.0/plug-ins/libgck/gck/gckos2.def    Sun Jul 26 01:17:58 1998
  3183. ***************
  3184. *** 0 ****
  3185. --- 1,169 ----
  3186. + LIBRARY gck
  3187. + DESCRIPTION "GIMP/2 gck.dll for XFree86/OS2 version 1.0.0"
  3188. + CODE PRELOAD
  3189. + DATA MULTIPLE NONSHARED
  3190. + STACKSIZE 32768
  3191. + EXPORTS
  3192. + ; From gckcolor.obj
  3193. +   "gck_rgb_white" @1
  3194. +   "gck_rgb_black" @2
  3195. +   "gck_rgb_zero" @3
  3196. +   "gck_rgb_full" @4
  3197. +   "gck_allocate_color_cube" @5
  3198. +   "gck_create_8bit_rgb" @6
  3199. +   "gck_visualinfo_new" @7
  3200. +   "gck_visualinfo_destroy" @8
  3201. +   "gck_visualinfo_get_dither" @9
  3202. +   "gck_visualinfo_set_dither" @10
  3203. +   "gck_gc_set_foreground" @11
  3204. +   "gck_rgb_to_gdkcolor" @12
  3205. +   "gck_gc_set_background" @13
  3206. +   "gck_rgb_to_color8" @14
  3207. +   "gck_rgb_to_image8_fs_dither" @15
  3208. +   "gck_rgb_to_image8" @16
  3209. +   "gck_rgb_to_color16" @17
  3210. +   "gck_rgb_to_image16_fs_dither" @18
  3211. +   "gck_rgb_to_image16" @19
  3212. +   "gck_rgb_to_color24" @20
  3213. +   "gck_rgb_to_image24" @21
  3214. +   "gck_rgb_to_color32" @22
  3215. +   "gck_rgb_to_image32" @23
  3216. +   "gck_rgb_to_gdkimage" @24
  3217. +   "gck_bilinear" @25
  3218. +   "gck_bilinear_8" @26
  3219. +   "gck_bilinear_16" @27
  3220. +   "gck_bilinear_32" @28
  3221. +   "gck_bilinear_rgb" @29
  3222. +   "gck_bilinear_rgba" @30
  3223. +   "gck_rgb_add" @31
  3224. +   "gck_rgb_sub" @32
  3225. +   "gck_rgb_mul" @33
  3226. +   "gck_rgb_dist" @34
  3227. +   "gck_rgb_max" @35
  3228. +   "gck_rgb_min" @36
  3229. +   "gck_rgb_clamp" @37
  3230. +   "gck_rgb_set" @38
  3231. +   "gck_rgb_gamma" @39
  3232. +   "gck_rgba_add" @40
  3233. +   "gck_rgba_sub" @41
  3234. +   "gck_rgba_mul" @42
  3235. +   "gck_rgba_dist" @43
  3236. +   "gck_rgba_max" @44
  3237. +   "gck_rgba_min" @45
  3238. +   "gck_rgba_clamp" @46
  3239. +   "gck_rgba_set" @47
  3240. +   "gck_rgba_gamma" @48
  3241. +   "gck_rgb_to_hsv" @49
  3242. +   "gck_hsv_to_rgb" @50
  3243. +   "gck_rgb_to_hsl" @51
  3244. +   "_gck_value" @52
  3245. +   "gck_hsl_to_rgb" @53
  3246. +   "gck_rgb_to_hwb" @54
  3247. +   "gck_hwb_to_rgb" @55
  3248. +   "gck_render_sub_pixel" @56
  3249. +   "gck_adaptive_supersample_area" @57
  3250. +   "gck_named_colors" @58
  3251. + ; From gcklistbox.obj
  3252. +   "gck_listbox_disable_signals" @59
  3253. +   "gck_listbox_enable_signals" @60
  3254. +   "gck_listbox_get" @61
  3255. +   "gck_listbox_prepend_item" @62
  3256. +   "gck_listbox_insert_item" @63
  3257. +   "gck_listbox_prepend_items" @64
  3258. +   "gck_listbox_append_item" @65
  3259. +   "gck_listbox_append_items" @66
  3260. +   "gck_listbox_insert_items" @67
  3261. +   "gck_listbox_get_current_selection" @68
  3262. +   "gck_listbox_set_current_selection" @69
  3263. +   "gck_listbox_item_find_by_position" @70
  3264. +   "gck_listbox_item_find_by_label" @71
  3265. +   "gck_listbox_item_find_by_user_data" @72
  3266. +   "gck_listbox_delete_item_by_position" @73
  3267. +   "gck_listbox_unselect_all" @74
  3268. +   "gck_listbox_delete_item_by_label" @75
  3269. +   "gck_listbox_delete_items_by_label" @76
  3270. +   "gck_listbox_delete_item_by_user_data" @77
  3271. +   "gck_listbox_delete_items_by_user_data" @78
  3272. +   "gck_listbox_clear_items" @79
  3273. +   "gck_listbox_select_item_by_position" @80
  3274. +   "gck_listbox_select_item_by_label" @81
  3275. +   "gck_listbox_select_item_by_user_data" @82
  3276. +   "gck_listbox_unselect_item_by_position" @83
  3277. +   "gck_listbox_unselect_item_by_label" @84
  3278. +   "gck_listbox_unselect_item_by_user_data" @85
  3279. +   "gck_listbox_select_all" @86
  3280. +   "_gck_listbox_signalhandler" @87
  3281. +   "_gck_listbox_eventhandler" @88
  3282. +   "gck_listbox_new" @89
  3283. +   "gck_listbox_destroy" @90
  3284. + ; From gckmath.obj
  3285. +   "gck_deg_to_rad" @91
  3286. +   "gck_rad_to_deg" @92
  3287. +   "gck_mat_to_deg" @93
  3288. +   "gck_clip_line" @94
  3289. + ; From gckui.obj
  3290. +   "gck_cursor_set" @95
  3291. +   "gck_auto_show" @96
  3292. +   "gck_application_window_new" @97
  3293. +   "gck_application_window_destroy" @98
  3294. +   "gck_dialog_window_new" @99
  3295. +   "gck_vbox_new" @100
  3296. +   "gck_hbox_new" @101
  3297. +   "gck_frame_new" @102
  3298. +   "gck_pushbutton_new" @103
  3299. +   "gck_dialog_window_destroy" @104
  3300. +   "gck_vseparator_new" @105
  3301. +   "gck_hseparator_new" @106
  3302. +   "gck_label_new" @107
  3303. +   "gck_label_aligned_new" @108
  3304. +   "gck_drawing_area_new" @109
  3305. +   "gck_pixmap_new" @110
  3306. +   "gck_hscale_new" @111
  3307. +   "gck_vscale_new" @112
  3308. +   "gck_entryfield_text_new" @113
  3309. +   "gck_entryfield_new" @114
  3310. +   "gck_pushbutton_pixmap_new" @115
  3311. +   "gck_togglebutton_pixmap_new" @116
  3312. +   "gck_checkbutton_new" @117
  3313. +   "gck_radiobutton_new" @118
  3314. +   "gck_radiobutton_pixmap_new" @119
  3315. +   "gck_option_menu_new" @120
  3316. +   "gck_menu_bar_new" @121
  3317. +   "gck_menu_new" @122
  3318. +   "gck_image_menu_new" @123
  3319. +   "_GckAutoShowFlag" @124
  3320. + ; From gckvector.obj
  3321. +   "gck_vector2_zero" @125
  3322. +   "gck_vector2_unit_x" @126
  3323. +   "gck_vector2_unit_y" @127
  3324. +   "gck_vector3_zero" @128
  3325. +   "gck_vector3_unit_x" @129
  3326. +   "gck_vector3_unit_y" @130
  3327. +   "gck_vector3_unit_z" @131
  3328. +   "gck_vector2_inner_product" @132
  3329. +   "gck_vector2_cross_product" @133
  3330. +   "gck_vector2_length" @134
  3331. +   "gck_vector2_normalize" @135
  3332. +   "gck_vector2_mul" @136
  3333. +   "gck_vector2_sub" @137
  3334. +   "gck_vector2_set" @138
  3335. +   "gck_vector2_add" @139
  3336. +   "gck_vector2_neg" @140
  3337. +   "gck_vector2_rotate" @141
  3338. +   "gck_vector3_inner_product" @142
  3339. +   "gck_vector3_cross_product" @143
  3340. +   "gck_vector3_length" @144
  3341. +   "gck_vector3_normalize" @145
  3342. +   "gck_vector3_mul" @146
  3343. +   "gck_vector3_sub" @147
  3344. +   "gck_vector3_set" @148
  3345. +   "gck_vector3_add" @149
  3346. +   "gck_vector3_neg" @150
  3347. +   "gck_vector3_rotate" @151
  3348. +   "gck_2d_to_3d" @152
  3349. +   "gck_3d_to_2d" @153
  3350. diff -crN gimp-1.0.0.orig/plug-ins/libgck/gck/gckos2.rsp gimp-1.0.0/plug-ins/libgck/gck/gckos2.rsp
  3351. *** gimp-1.0.0.orig/plug-ins/libgck/gck/gckos2.rsp    Thu Jan  1 00:00:00 1970
  3352. --- gimp-1.0.0/plug-ins/libgck/gck/gckos2.rsp    Thu Jul  9 17:48:06 1998
  3353. ***************
  3354. *** 0 ****
  3355. --- 1,4 ----
  3356. + gckcolor.obj gcklistbox.obj gckmath.obj gckui.obj gckvector.obj+
  3357. + /NOL /NOD /BAT
  3358. + gck.dll
  3359. diff -crN gimp-1.0.0.orig/plug-ins/libgck/gck/Imakefile gimp-1.0.0/plug-ins/libgck/gck/Imakefile
  3360. *** gimp-1.0.0.orig/plug-ins/libgck/gck/Imakefile    Thu Jan  1 00:00:00 1970
  3361. --- gimp-1.0.0/plug-ins/libgck/gck/Imakefile    Thu Aug 13 14:56:12 1998
  3362. ***************
  3363. *** 0 ****
  3364. --- 1,40 ----
  3365. + /*
  3366. +     Written for XFree86/OS2
  3367. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3368. +  */
  3369. + #define DoNormalLib (!HasSharedLibraries || ForceNormalLib)
  3370. + #define DoSharedLib HasSharedLibraries
  3371. + #define LibName gck
  3372. + #define IncSubdir gck
  3373. + #ifdef OS2Architecture
  3374. + REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ gtk gdk glib Xext X11 shm
  3375. + #endif
  3376. + DEFINES = -DHAVE_CONFIG_H
  3377. + INCLUDES = -I../../.. -I.. -I.
  3378. + HEADERS =    gck.h           \
  3379. +              gckcolor.h      \
  3380. +              gckcommon.h     \
  3381. +              gckimage.h      \
  3382. +              gcklistbox.h    \
  3383. +              gckmath.h       \
  3384. +              gcktypes.h      \
  3385. +              gckui.h         \
  3386. +              gckvector.h
  3387. + OBJS =    gckcolor.o      \
  3388. +         gcklistbox.o    \
  3389. +         gckmath.o       \
  3390. +         gckui.o         \
  3391. +         gckvector.o
  3392. + #include <Library.tmpl>
  3393. + #ifdef OS2Architecture
  3394. + clean::
  3395. +     rm -rf exports
  3396. + #endif
  3397. diff -crN gimp-1.0.0.orig/plug-ins/libgck/Imakefile gimp-1.0.0/plug-ins/libgck/Imakefile
  3398. *** gimp-1.0.0.orig/plug-ins/libgck/Imakefile    Thu Jan  1 00:00:00 1970
  3399. --- gimp-1.0.0/plug-ins/libgck/Imakefile    Thu Jul  9 17:39:04 1998
  3400. ***************
  3401. *** 0 ****
  3402. --- 1,13 ----
  3403. + /*
  3404. +     Written for XFree86/OS2
  3405. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3406. +  */
  3407. + #define IHaveSubdirs
  3408. + #define PassCDebugFlags
  3409. + SUBDIRS = gck
  3410. + MakeSubdirs($(SUBDIRS))
  3411. + DependSubdirs($(SUBDIRS))
  3412. diff -crN gimp-1.0.0.orig/plug-ins/mail/Imakefile gimp-1.0.0/plug-ins/mail/Imakefile
  3413. *** gimp-1.0.0.orig/plug-ins/mail/Imakefile    Thu Jan  1 00:00:00 1970
  3414. --- gimp-1.0.0/plug-ins/mail/Imakefile    Sat Jul 11 15:49:48 1998
  3415. ***************
  3416. *** 0 ****
  3417. --- 1,11 ----
  3418. + /*
  3419. +     Written for XFree86/OS2
  3420. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3421. +  */
  3422. + #include "../plug-ins.tmpl"
  3423. + ADD_DEFS = -DMAILER=\""sendmail"\"
  3424. + SimpleProgramTarget(mail)
  3425. diff -crN gimp-1.0.0.orig/plug-ins/mail/mail.c gimp-1.0.0/plug-ins/mail/mail.c
  3426. *** gimp-1.0.0.orig/plug-ins/mail/mail.c    Sun May 31 14:49:12 1998
  3427. --- gimp-1.0.0/plug-ins/mail/mail.c    Sat Sep 12 22:35:40 1998
  3428. ***************
  3429. *** 109,114 ****
  3430. --- 109,118 ----
  3431.   #include <errno.h>
  3432.   #include "gtk/gtk.h"
  3433.   #include "libgimp/gimp.h"
  3434. + #ifdef __EMX__
  3435. + #include <fcntl.h>
  3436. + #include <process.h>
  3437. + #endif
  3438.   
  3439.   
  3440.   static void query (void);
  3441. ***************
  3442. *** 307,313 ****
  3443. --- 311,321 ----
  3444.     strcat (mailcmdline, mail_info.receipt);
  3445.   
  3446.     /* create a pipe to sendmail */
  3447. + #ifndef __EMX__
  3448.     mailpipe = popen (mailcmdline, "w");
  3449. + #else
  3450. +   mailpipe = popen (mailcmdline, "wb");
  3451. + #endif
  3452.     create_headers (mailpipe);
  3453.     
  3454.     /* This is necessary to make the comments and headers work correctly. Not real sure why */
  3455. ***************
  3456. *** 332,337 ****
  3457. --- 340,346 ----
  3458.       }
  3459.   
  3460.     if( mail_info.encapsulation == ENCAPSULATION_UUENCODE ) {
  3461. + #ifndef __EMX__
  3462.         /* fork off a uuencode process */
  3463.         if ((pid = fork ()) < 0)
  3464.         {
  3465. ***************
  3466. *** 355,360 ****
  3467. --- 364,401 ----
  3468.             _exit (127);
  3469.         }
  3470.         else
  3471. + #else /* __EMX__ */
  3472. +       int tfd, flag;
  3473. +       /* save fileno(stdout) */
  3474. +       tfd = dup (fileno (stdout));
  3475. +       if (tfd == -1)
  3476. +     {
  3477. +       g_message ("mail: dup failed: %s\n", g_strerror (errno));
  3478. +       return -1;
  3479. +     }
  3480. +       if (dup2 (fileno (mailpipe), fileno (stdout)) == -1)
  3481. +     {
  3482. +       g_message ("mail: dup2 failed: %s\n", g_strerror (errno));
  3483. +       close(tfd);
  3484. +       return -1;
  3485. +     }
  3486. +       flag = fcntl(tfd, F_GETFD);
  3487. +       fcntl(tfd, F_SETFD, flag | FD_CLOEXEC);
  3488. +       pid = spawnlp (P_NOWAIT, UUENCODE, UUENCODE, tmpname, filename, NULL);
  3489. +       /* restore fileno(stdout) */
  3490. +       if (dup2 (tfd, fileno (stdout)) == -1)
  3491. +     {
  3492. +       g_message ("mail: dup2 failed: %s\n", g_strerror (errno));
  3493. +       close(tfd);
  3494. +       return -1;
  3495. +     }
  3496. +       close(tfd);
  3497. +       if (pid == -1)
  3498. +     {
  3499. +       g_message ("mail: spawn failed: %s\n", g_strerror (errno));
  3500. +       return -1;
  3501. +     }
  3502. + #endif
  3503.         {
  3504.             waitpid (pid, &status, 0);
  3505.             
  3506. diff -crN gimp-1.0.0.orig/plug-ins/MapObject/Imakefile gimp-1.0.0/plug-ins/MapObject/Imakefile
  3507. *** gimp-1.0.0.orig/plug-ins/MapObject/Imakefile    Thu Jan  1 00:00:00 1970
  3508. --- gimp-1.0.0/plug-ins/MapObject/Imakefile    Tue Jul 28 14:12:08 1998
  3509. ***************
  3510. *** 0 ****
  3511. --- 1,30 ----
  3512. + /*
  3513. +     Written for XFree86/OS2
  3514. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3515. +  */
  3516. + #include "../plug-ins.tmpl"
  3517. + ADD_INCS = -I../libgck
  3518. + ADD_LIBS = -L../libgck/gck -lgck
  3519. + SRCS = \
  3520. +     arcball.c \
  3521. +     mapobject_apply.c \
  3522. +     mapobject_image.c \
  3523. +     mapobject_main.c \
  3524. +     mapobject_preview.c \
  3525. +     mapobject_shade.c \
  3526. +     mapobject_ui.c
  3527. + OBJS = \
  3528. +     arcball.o \
  3529. +     mapobject_apply.o \
  3530. +     mapobject_image.o \
  3531. +     mapobject_main.o \
  3532. +     mapobject_preview.o \
  3533. +     mapobject_shade.o \
  3534. +     mapobject_ui.o
  3535. + ComplexProgramTarget(MapObject)
  3536. diff -crN gimp-1.0.0.orig/plug-ins/MapObject/mapobject_main.c gimp-1.0.0/plug-ins/MapObject/mapobject_main.c
  3537. *** gimp-1.0.0.orig/plug-ins/MapObject/mapobject_main.c    Mon Apr 13 13:41:14 1998
  3538. --- gimp-1.0.0/plug-ins/MapObject/mapobject_main.c    Thu Jul  9 23:10:04 1998
  3539. ***************
  3540. *** 78,85 ****
  3541.     mapvals.material.highlight = 27.0;
  3542.   }
  3543.   
  3544. - MAIN()
  3545.   static void query(void)
  3546.   {
  3547.   
  3548. --- 78,83 ----
  3549. ***************
  3550. *** 281,284 ****
  3551. --- 279,284 ----
  3552.     gtk_main();
  3553.     gdk_flush();
  3554.   }
  3555. + MAIN()
  3556.   
  3557. diff -crN gimp-1.0.0.orig/plug-ins/max_rgb/Imakefile gimp-1.0.0/plug-ins/max_rgb/Imakefile
  3558. *** gimp-1.0.0.orig/plug-ins/max_rgb/Imakefile    Thu Jan  1 00:00:00 1970
  3559. --- gimp-1.0.0/plug-ins/max_rgb/Imakefile    Thu Jul  9 20:50:22 1998
  3560. ***************
  3561. *** 0 ****
  3562. --- 1,9 ----
  3563. + /*
  3564. +     Written for XFree86/OS2
  3565. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3566. +  */
  3567. + #include "../plug-ins.tmpl"
  3568. + SimpleProgramTarget(max_rgb)
  3569. diff -crN gimp-1.0.0.orig/plug-ins/maze/Imakefile gimp-1.0.0/plug-ins/maze/Imakefile
  3570. *** gimp-1.0.0.orig/plug-ins/maze/Imakefile    Thu Jan  1 00:00:00 1970
  3571. --- gimp-1.0.0/plug-ins/maze/Imakefile    Thu Jul  9 20:52:18 1998
  3572. ***************
  3573. *** 0 ****
  3574. --- 1,12 ----
  3575. + /*
  3576. +     Written for XFree86/OS2
  3577. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3578. +  */
  3579. + #include "../plug-ins.tmpl"
  3580. + SRCS = maze.c maze_face.c algorithms.c handy.c
  3581. + OBJS = maze.o maze_face.o algorithms.o handy.o
  3582. + ComplexProgramTarget(maze)
  3583. diff -crN gimp-1.0.0.orig/plug-ins/mblur/Imakefile gimp-1.0.0/plug-ins/mblur/Imakefile
  3584. *** gimp-1.0.0.orig/plug-ins/mblur/Imakefile    Thu Jan  1 00:00:00 1970
  3585. --- gimp-1.0.0/plug-ins/mblur/Imakefile    Thu Jul  9 20:53:08 1998
  3586. ***************
  3587. *** 0 ****
  3588. --- 1,9 ----
  3589. + /*
  3590. +     Written for XFree86/OS2
  3591. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3592. +  */
  3593. + #include "../plug-ins.tmpl"
  3594. + SimpleProgramTarget(mblur)
  3595. diff -crN gimp-1.0.0.orig/plug-ins/megawidget/Imakefile gimp-1.0.0/plug-ins/megawidget/Imakefile
  3596. *** gimp-1.0.0.orig/plug-ins/megawidget/Imakefile    Thu Jan  1 00:00:00 1970
  3597. --- gimp-1.0.0/plug-ins/megawidget/Imakefile    Thu Aug 13 14:55:16 1998
  3598. ***************
  3599. *** 0 ****
  3600. --- 1,33 ----
  3601. + /*
  3602. +     Written for XFree86/OS2
  3603. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3604. +  */
  3605. + #define DoNormalLib (!HasSharedLibraries || ForceNormalLib)
  3606. + #define DoSharedLib HasSharedLibraries
  3607. + #define LibName megawidget
  3608. + #define IncSubdir plug-ins/megawidget
  3609. + #ifdef OS2Architecture
  3610. + REQUIREDLIBS = ..\\..\\libgimp\\ gimp $(X11ROOT)\\XFree86\\lib\\ gtk gdk glib Xext X11 shm
  3611. + #endif
  3612. + DEFINES = -DHAVE_CONFIG_H
  3613. + INCLUDES = -I../.. -I.
  3614. + HEADERS = megawidget.h
  3615. + OBJS =    megawidget.o
  3616. + #include <Library.tmpl>
  3617. + #ifdef OS2Architecture
  3618. + /* os2 does not allow dll filename length > 8.3 */
  3619. + install::
  3620. +     mv $(X11ROOT)/XFree86/lib/megawidget.dll $(X11ROOT)/XFree86/lib/megawidg.dll
  3621. + clean::
  3622. +     rm -rf exports
  3623. + #endif
  3624. diff -crN gimp-1.0.0.orig/plug-ins/megawidget/megawidgetos2.def gimp-1.0.0/plug-ins/megawidget/megawidgetos2.def
  3625. *** gimp-1.0.0.orig/plug-ins/megawidget/megawidgetos2.def    Thu Jan  1 00:00:00 1970
  3626. --- gimp-1.0.0/plug-ins/megawidget/megawidgetos2.def    Sun Jul 26 01:02:38 1998
  3627. ***************
  3628. *** 0 ****
  3629. --- 1,21 ----
  3630. + LIBRARY megawidg
  3631. + DESCRIPTION "GIMP/2 megawidg.dll for XFree86/OS2 version 1.0.0"
  3632. + CODE PRELOAD
  3633. + DATA MULTIPLE NONSHARED
  3634. + STACKSIZE 32768
  3635. + EXPORTS
  3636. + ; From megawidget.obj
  3637. +   "mw_app_new" @1
  3638. +   "mw_fscale_entry_new" @2
  3639. +   "mw_iscale_entry_new" @3
  3640. +   "mw_radio_group_new" @4
  3641. +   "mw_radio_new" @5
  3642. +   "mw_radio_result" @6
  3643. +   "mw_value_radio_group_new" @7
  3644. +   "mw_toggle_button_new" @8
  3645. +   "mw_color_select_button_create" @9
  3646. +   "mw_ientry_new" @10
  3647. +   "mw_fentry_new" @11
  3648. +   "mw_preview_build_virgin" @12
  3649. +   "mw_preview_build" @13
  3650. +   "mw_preview_new" @14
  3651. diff -crN gimp-1.0.0.orig/plug-ins/megawidget/megawidgetos2.rsp gimp-1.0.0/plug-ins/megawidget/megawidgetos2.rsp
  3652. *** gimp-1.0.0.orig/plug-ins/megawidget/megawidgetos2.rsp    Thu Jan  1 00:00:00 1970
  3653. --- gimp-1.0.0/plug-ins/megawidget/megawidgetos2.rsp    Thu Jul  9 17:57:06 1998
  3654. ***************
  3655. *** 0 ****
  3656. --- 1,3 ----
  3657. + megawidget.obj /NOL /NOD /BAT
  3658. + megawidget.dll
  3659. diff -crN gimp-1.0.0.orig/plug-ins/mosaic/Imakefile gimp-1.0.0/plug-ins/mosaic/Imakefile
  3660. *** gimp-1.0.0.orig/plug-ins/mosaic/Imakefile    Thu Jan  1 00:00:00 1970
  3661. --- gimp-1.0.0/plug-ins/mosaic/Imakefile    Thu Jul  9 20:54:36 1998
  3662. ***************
  3663. *** 0 ****
  3664. --- 1,9 ----
  3665. + /*
  3666. +     Written for XFree86/OS2
  3667. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3668. +  */
  3669. + #include "../plug-ins.tmpl"
  3670. + SimpleProgramTarget(mosaic)
  3671. diff -crN gimp-1.0.0.orig/plug-ins/mpeg/Imakefile gimp-1.0.0/plug-ins/mpeg/Imakefile
  3672. *** gimp-1.0.0.orig/plug-ins/mpeg/Imakefile    Thu Jan  1 00:00:00 1970
  3673. --- gimp-1.0.0/plug-ins/mpeg/Imakefile    Sat Jul 11 16:00:32 1998
  3674. ***************
  3675. *** 0 ****
  3676. --- 1,11 ----
  3677. + /*
  3678. +     Written for XFree86/OS2
  3679. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3680. +  */
  3681. + #include "../plug-ins.tmpl"
  3682. + ADD_LIBS = -lmpeg
  3683. + SimpleProgramTarget(mpeg)
  3684. diff -crN gimp-1.0.0.orig/plug-ins/nlfilt/Imakefile gimp-1.0.0/plug-ins/nlfilt/Imakefile
  3685. *** gimp-1.0.0.orig/plug-ins/nlfilt/Imakefile    Thu Jan  1 00:00:00 1970
  3686. --- gimp-1.0.0/plug-ins/nlfilt/Imakefile    Sat Jul 11 16:01:16 1998
  3687. ***************
  3688. *** 0 ****
  3689. --- 1,11 ----
  3690. + /*
  3691. +     Written for XFree86/OS2
  3692. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3693. +  */
  3694. + #include "../plug-ins.tmpl"
  3695. + ADD_LIBS = -L../megawidget -lmegawidget
  3696. + SimpleProgramTarget(nlfilt)
  3697. diff -crN gimp-1.0.0.orig/plug-ins/noisify/Imakefile gimp-1.0.0/plug-ins/noisify/Imakefile
  3698. *** gimp-1.0.0.orig/plug-ins/noisify/Imakefile    Thu Jan  1 00:00:00 1970
  3699. --- gimp-1.0.0/plug-ins/noisify/Imakefile    Thu Jul  9 20:57:06 1998
  3700. ***************
  3701. *** 0 ****
  3702. --- 1,9 ----
  3703. + /*
  3704. +     Written for XFree86/OS2
  3705. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3706. +  */
  3707. + #include "../plug-ins.tmpl"
  3708. + SimpleProgramTarget(noisify)
  3709. diff -crN gimp-1.0.0.orig/plug-ins/normalize/Imakefile gimp-1.0.0/plug-ins/normalize/Imakefile
  3710. *** gimp-1.0.0.orig/plug-ins/normalize/Imakefile    Thu Jan  1 00:00:00 1970
  3711. --- gimp-1.0.0/plug-ins/normalize/Imakefile    Thu Jul  9 20:57:38 1998
  3712. ***************
  3713. *** 0 ****
  3714. --- 1,9 ----
  3715. + /*
  3716. +     Written for XFree86/OS2
  3717. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3718. +  */
  3719. + #include "../plug-ins.tmpl"
  3720. + SimpleProgramTarget(normalize)
  3721. diff -crN gimp-1.0.0.orig/plug-ins/nova/Imakefile gimp-1.0.0/plug-ins/nova/Imakefile
  3722. *** gimp-1.0.0.orig/plug-ins/nova/Imakefile    Thu Jan  1 00:00:00 1970
  3723. --- gimp-1.0.0/plug-ins/nova/Imakefile    Thu Jul  9 20:59:32 1998
  3724. ***************
  3725. *** 0 ****
  3726. --- 1,9 ----
  3727. + /*
  3728. +     Written for XFree86/OS2
  3729. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3730. +  */
  3731. + #include "../plug-ins.tmpl"
  3732. + SimpleProgramTarget(nova)
  3733. diff -crN gimp-1.0.0.orig/plug-ins/oilify/Imakefile gimp-1.0.0/plug-ins/oilify/Imakefile
  3734. *** gimp-1.0.0.orig/plug-ins/oilify/Imakefile    Thu Jan  1 00:00:00 1970
  3735. --- gimp-1.0.0/plug-ins/oilify/Imakefile    Thu Jul  9 21:00:10 1998
  3736. ***************
  3737. *** 0 ****
  3738. --- 1,9 ----
  3739. + /*
  3740. +     Written for XFree86/OS2
  3741. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3742. +  */
  3743. + #include "../plug-ins.tmpl"
  3744. + SimpleProgramTarget(oilify)
  3745. diff -crN gimp-1.0.0.orig/plug-ins/pagecurl/Imakefile gimp-1.0.0/plug-ins/pagecurl/Imakefile
  3746. *** gimp-1.0.0.orig/plug-ins/pagecurl/Imakefile    Thu Jan  1 00:00:00 1970
  3747. --- gimp-1.0.0/plug-ins/pagecurl/Imakefile    Thu Jul  9 21:00:46 1998
  3748. ***************
  3749. *** 0 ****
  3750. --- 1,9 ----
  3751. + /*
  3752. +     Written for XFree86/OS2
  3753. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3754. +  */
  3755. + #include "../plug-ins.tmpl"
  3756. + SimpleProgramTarget(pagecurl)
  3757. diff -crN gimp-1.0.0.orig/plug-ins/palette/Imakefile gimp-1.0.0/plug-ins/palette/Imakefile
  3758. *** gimp-1.0.0.orig/plug-ins/palette/Imakefile    Thu Jan  1 00:00:00 1970
  3759. --- gimp-1.0.0/plug-ins/palette/Imakefile    Thu Jul  9 21:01:20 1998
  3760. ***************
  3761. *** 0 ****
  3762. --- 1,9 ----
  3763. + /*
  3764. +     Written for XFree86/OS2
  3765. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3766. +  */
  3767. + #include "../plug-ins.tmpl"
  3768. + SimpleProgramTarget(palette)
  3769. diff -crN gimp-1.0.0.orig/plug-ins/papertile/Imakefile gimp-1.0.0/plug-ins/papertile/Imakefile
  3770. *** gimp-1.0.0.orig/plug-ins/papertile/Imakefile    Thu Jan  1 00:00:00 1970
  3771. --- gimp-1.0.0/plug-ins/papertile/Imakefile    Thu Jul  9 21:01:56 1998
  3772. ***************
  3773. *** 0 ****
  3774. --- 1,9 ----
  3775. + /*
  3776. +     Written for XFree86/OS2
  3777. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3778. +  */
  3779. + #include "../plug-ins.tmpl"
  3780. + SimpleProgramTarget(papertile)
  3781. diff -crN gimp-1.0.0.orig/plug-ins/pat/Imakefile gimp-1.0.0/plug-ins/pat/Imakefile
  3782. *** gimp-1.0.0.orig/plug-ins/pat/Imakefile    Thu Jan  1 00:00:00 1970
  3783. --- gimp-1.0.0/plug-ins/pat/Imakefile    Thu Jul  9 21:02:30 1998
  3784. ***************
  3785. *** 0 ****
  3786. --- 1,9 ----
  3787. + /*
  3788. +     Written for XFree86/OS2
  3789. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3790. +  */
  3791. + #include "../plug-ins.tmpl"
  3792. + SimpleProgramTarget(pat)
  3793. diff -crN gimp-1.0.0.orig/plug-ins/pcx/Imakefile gimp-1.0.0/plug-ins/pcx/Imakefile
  3794. *** gimp-1.0.0.orig/plug-ins/pcx/Imakefile    Thu Jan  1 00:00:00 1970
  3795. --- gimp-1.0.0/plug-ins/pcx/Imakefile    Thu Jul  9 21:03:04 1998
  3796. ***************
  3797. *** 0 ****
  3798. --- 1,9 ----
  3799. + /*
  3800. +     Written for XFree86/OS2
  3801. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3802. +  */
  3803. + #include "../plug-ins.tmpl"
  3804. + SimpleProgramTarget(pcx)
  3805. diff -crN gimp-1.0.0.orig/plug-ins/pix/Imakefile gimp-1.0.0/plug-ins/pix/Imakefile
  3806. *** gimp-1.0.0.orig/plug-ins/pix/Imakefile    Thu Jan  1 00:00:00 1970
  3807. --- gimp-1.0.0/plug-ins/pix/Imakefile    Thu Jul  9 21:03:46 1998
  3808. ***************
  3809. *** 0 ****
  3810. --- 1,9 ----
  3811. + /*
  3812. +     Written for XFree86/OS2
  3813. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3814. +  */
  3815. + #include "../plug-ins.tmpl"
  3816. + SimpleProgramTarget(pix)
  3817. diff -crN gimp-1.0.0.orig/plug-ins/pixelize/Imakefile gimp-1.0.0/plug-ins/pixelize/Imakefile
  3818. *** gimp-1.0.0.orig/plug-ins/pixelize/Imakefile    Thu Jan  1 00:00:00 1970
  3819. --- gimp-1.0.0/plug-ins/pixelize/Imakefile    Thu Jul  9 21:04:16 1998
  3820. ***************
  3821. *** 0 ****
  3822. --- 1,9 ----
  3823. + /*
  3824. +     Written for XFree86/OS2
  3825. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3826. +  */
  3827. + #include "../plug-ins.tmpl"
  3828. + SimpleProgramTarget(pixelize)
  3829. diff -crN gimp-1.0.0.orig/plug-ins/plasma/Imakefile gimp-1.0.0/plug-ins/plasma/Imakefile
  3830. *** gimp-1.0.0.orig/plug-ins/plasma/Imakefile    Thu Jan  1 00:00:00 1970
  3831. --- gimp-1.0.0/plug-ins/plasma/Imakefile    Thu Jul  9 21:04:50 1998
  3832. ***************
  3833. *** 0 ****
  3834. --- 1,9 ----
  3835. + /*
  3836. +     Written for XFree86/OS2
  3837. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3838. +  */
  3839. + #include "../plug-ins.tmpl"
  3840. + SimpleProgramTarget(plasma)
  3841. diff -crN gimp-1.0.0.orig/plug-ins/plug-ins.def gimp-1.0.0/plug-ins/plug-ins.def
  3842. *** gimp-1.0.0.orig/plug-ins/plug-ins.def    Thu Jan  1 00:00:00 1970
  3843. --- gimp-1.0.0/plug-ins/plug-ins.def    Wed Aug  5 00:05:48 1998
  3844. ***************
  3845. *** 0 ****
  3846. --- 1,2 ----
  3847. + NAME WINDOWCOMPAT
  3848. + STACKSIZE 524288
  3849. diff -crN gimp-1.0.0.orig/plug-ins/plug-ins.tmpl gimp-1.0.0/plug-ins/plug-ins.tmpl
  3850. *** gimp-1.0.0.orig/plug-ins/plug-ins.tmpl    Thu Jan  1 00:00:00 1970
  3851. --- gimp-1.0.0/plug-ins/plug-ins.tmpl    Thu Jul 30 00:30:22 1998
  3852. ***************
  3853. *** 0 ****
  3854. --- 1,24 ----
  3855. + /*
  3856. +     Written for XFree86/OS2
  3857. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3858. +  */
  3859. + #include "../gimp.cf"
  3860. + INCLUDES = -I../.. -I. $(ADD_INCS)
  3861. + #if BuildOMFEXE
  3862. + DEFINES = -DHAVE_CONFIG_H -Zomf $(ADD_DEFS)
  3863. + LOCAL_LDFLAGS = -Zomf ../plug-ins.def
  3864. + #else
  3865. + DEFINES = -DHAVE_CONFIG_H $(ADD_DEFS)
  3866. + #endif
  3867. + #ifdef OS2Architecture
  3868. + LOCAL_LIBRARIES = $(ADD_LIBS) -L../../libgimp -lgimp -lgtk -lgdk -lglib -lXext -lX11 -lshm -lm
  3869. + #else
  3870. + LOCAL_LIBRARIES = $(ADD_LIBS) -L../../libgimp -lgimp -lgtk -lgdk -lglib -lXext -lX11 -lm
  3871. + #endif
  3872. + BINDIR = $(GIMPPLUGINSDIR)
  3873. diff -crN gimp-1.0.0.orig/plug-ins/png/Imakefile gimp-1.0.0/plug-ins/png/Imakefile
  3874. *** gimp-1.0.0.orig/plug-ins/png/Imakefile    Thu Jan  1 00:00:00 1970
  3875. --- gimp-1.0.0/plug-ins/png/Imakefile    Sat Jul 11 16:02:06 1998
  3876. ***************
  3877. *** 0 ****
  3878. --- 1,11 ----
  3879. + /*
  3880. +     Written for XFree86/OS2
  3881. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3882. +  */
  3883. + #include "../plug-ins.tmpl"
  3884. + ADD_LIBS = -lpng
  3885. + SimpleProgramTarget(png)
  3886. diff -crN gimp-1.0.0.orig/plug-ins/png/png.c gimp-1.0.0/plug-ins/png/png.c
  3887. *** gimp-1.0.0.orig/plug-ins/png/png.c    Sun May 31 14:49:16 1998
  3888. --- gimp-1.0.0/plug-ins/png/png.c    Sat Jul 11 10:45:02 1998
  3889. ***************
  3890. *** 205,216 ****
  3891. --- 205,220 ----
  3892.    * 'main()' - Main entry - just call gimp_main()...
  3893.    */
  3894.   
  3895. + #if 0
  3896.   int
  3897.   main(int  argc,        /* I - Number of command-line args */
  3898.        char *argv[])    /* I - Command-line args */
  3899.   {
  3900.     return (gimp_main(argc, argv));
  3901.   }
  3902. + #else
  3903. + MAIN()
  3904. + #endif
  3905.   
  3906.   
  3907.   /*
  3908. diff -crN gimp-1.0.0.orig/plug-ins/pnm/Imakefile gimp-1.0.0/plug-ins/pnm/Imakefile
  3909. *** gimp-1.0.0.orig/plug-ins/pnm/Imakefile    Thu Jan  1 00:00:00 1970
  3910. --- gimp-1.0.0/plug-ins/pnm/Imakefile    Thu Jul  9 21:05:22 1998
  3911. ***************
  3912. *** 0 ****
  3913. --- 1,9 ----
  3914. + /*
  3915. +     Written for XFree86/OS2
  3916. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3917. +  */
  3918. + #include "../plug-ins.tmpl"
  3919. + SimpleProgramTarget(pnm)
  3920. diff -crN gimp-1.0.0.orig/plug-ins/polar/Imakefile gimp-1.0.0/plug-ins/polar/Imakefile
  3921. *** gimp-1.0.0.orig/plug-ins/polar/Imakefile    Thu Jan  1 00:00:00 1970
  3922. --- gimp-1.0.0/plug-ins/polar/Imakefile    Thu Jul  9 21:06:30 1998
  3923. ***************
  3924. *** 0 ****
  3925. --- 1,9 ----
  3926. + /*
  3927. +     Written for XFree86/OS2
  3928. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3929. +  */
  3930. + #include "../plug-ins.tmpl"
  3931. + SimpleProgramTarget(polar)
  3932. diff -crN gimp-1.0.0.orig/plug-ins/print/Imakefile gimp-1.0.0/plug-ins/print/Imakefile
  3933. *** gimp-1.0.0.orig/plug-ins/print/Imakefile    Thu Jan  1 00:00:00 1970
  3934. --- gimp-1.0.0/plug-ins/print/Imakefile    Sat Jul 11 15:50:50 1998
  3935. ***************
  3936. *** 0 ****
  3937. --- 1,14 ----
  3938. + /*
  3939. +     Written for XFree86/OS2
  3940. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  3941. +  */
  3942. + #include "../plug-ins.tmpl"
  3943. + ADD_DEFS = -Dstrcasecmp=stricmp -Dstrncasecmp=strnicmp
  3944. + SRCS = print-escp2.c print-pcl.c print-ps.c print-util.c print.c
  3945. + OBJS = print-escp2.o print-pcl.o print-ps.o print-util.o print.o
  3946. + ComplexProgramTarget(print)
  3947. diff -crN gimp-1.0.0.orig/plug-ins/print/print-ps.c gimp-1.0.0/plug-ins/print/print-ps.c
  3948. *** gimp-1.0.0.orig/plug-ins/print/print-ps.c    Sun May 17 15:16:46 1998
  3949. --- gimp-1.0.0/plug-ins/print/print-ps.c    Sun Sep 13 23:34:20 1998
  3950. ***************
  3951. *** 512,517 ****
  3952. --- 512,520 ----
  3953.     printf("left = %d, top = %d\n", left, top);
  3954.   #endif /* DEBUG */
  3955.   
  3956. + #ifdef __EMX__
  3957. +   _fsetmode(prn, "t");
  3958. + #endif
  3959.     fputs("%!PS-Adobe-3.0\n", prn);
  3960.     fputs("%%Creator: " PLUG_IN_NAME " plug-in V" PLUG_IN_VERSION " for GIMP.\n", prn);
  3961.     fprintf(prn, "%%%%CreationDate: %s", ctime(&curtime));
  3962. diff -crN gimp-1.0.0.orig/plug-ins/print/print.c gimp-1.0.0/plug-ins/print/print.c
  3963. *** gimp-1.0.0.orig/plug-ins/print/print.c    Sun May 17 15:16:50 1998
  3964. --- gimp-1.0.0/plug-ins/print/print.c    Sun Sep 13 23:33:58 1998
  3965. ***************
  3966. *** 134,139 ****
  3967. --- 134,144 ----
  3968.   #include "print.h"
  3969.   #include <math.h>
  3970.   #include <signal.h>
  3971. + #ifdef __EMX__
  3972. + #define INCL_DOSDEVICES
  3973. + #define INCL_DOSERRORS
  3974. + #include <os2.h>
  3975. + #endif
  3976.   
  3977.   
  3978.   /*
  3979. ***************
  3980. *** 369,380 ****
  3981. --- 374,389 ----
  3982.    * 'main()' - Main entry - just call gimp_main()...
  3983.    */
  3984.   
  3985. + #if 0
  3986.   int
  3987.   main(int  argc,        /* I - Number of command-line args */
  3988.        char *argv[])    /* I - Command-line args */
  3989.   {
  3990.     return (gimp_main(argc, argv));
  3991.   }
  3992. + #else
  3993. + MAIN()
  3994. + #endif
  3995.   
  3996.   
  3997.   /*
  3998. ***************
  3999. *** 423,428 ****
  4000. --- 432,451 ----
  4001.   }
  4002.   
  4003.   
  4004. + #ifdef __EMX__
  4005. + static char *
  4006. + get_tmp_filename()
  4007. + {
  4008. +   char *tmp_path, filename[80];
  4009. +   tmp_path = getenv("TMP");
  4010. +   if (tmp_path == NULL)
  4011. +     tmp_path = "";
  4012. +   sprintf(filename, "gimp_print_tmp.%d", getpid());
  4013. +   return g_strconcat(tmp_path, "\\", filename, NULL);
  4014. + }
  4015. + #endif
  4016.   /*
  4017.    * 'run()' - Run the plug-in...
  4018.    */
  4019. ***************
  4020. *** 447,452 ****
  4021. --- 470,478 ----
  4022.     guchar    *cmap;        /* Colormap (indexed images only) */
  4023.     int        ncolors;    /* Number of colors in colormap */
  4024.     GParam    *values;    /* Return values */
  4025. + #ifdef __EMX__
  4026. +   char        *tmpfile;    /* temp filename */
  4027. + #endif
  4028.   
  4029.   
  4030.    /*
  4031. ***************
  4032. *** 585,591 ****
  4033. --- 611,622 ----
  4034.       */
  4035.   
  4036.       if (plist_current > 0)
  4037. + #ifndef __EMX__
  4038.         prn = popen(vars.output_to, "w");
  4039. + #else
  4040. +       /* OS/2 PRINT command doesn't support print from stdin, use temp file */
  4041. +       prn = (tmpfile = get_tmp_filename()) ? fopen(tmpfile, "w") : NULL;
  4042. + #endif
  4043.       else
  4044.         prn = fopen(vars.output_to, "w");
  4045.   
  4046. ***************
  4047. *** 637,643 ****
  4048. --- 668,687 ----
  4049.                           vars.left, vars.top, 1, prn, drawable, lut, cmap);
  4050.   
  4051.         if (plist_current > 0)
  4052. + #ifndef __EMX__
  4053.           pclose(prn);
  4054. + #else
  4055. +     { /* PRINT temp file */
  4056. +       char *s;
  4057. +           fclose(prn);
  4058. +       s = g_strconcat(vars.output_to, tmpfile, NULL);
  4059. +       if (system(s) != 0)
  4060. +         values[0].data.d_status = STATUS_EXECUTION_ERROR;
  4061. +       g_free(s);
  4062. +       remove(tmpfile);
  4063. +       g_free(tmpfile);
  4064. +     }
  4065. + #endif
  4066.         else
  4067.           fclose(prn);
  4068.       }
  4069. ***************
  4070. *** 1956,1962 ****
  4071. --- 2000,2010 ----
  4072.     else
  4073.       sprintf(line, "%s/.gimp/printrc", getenv("HOME"));
  4074.   
  4075. + #ifndef __EMX__
  4076.     if ((fp = fopen(line, "r")) != NULL)
  4077. + #else
  4078. +   if ((fp = fopen(line, "rt")) != NULL)
  4079. + #endif
  4080.     {
  4081.      /*
  4082.       * File exists - read the contents and update the printer list...
  4083. ***************
  4084. *** 2076,2082 ****
  4085. --- 2124,2134 ----
  4086.     else
  4087.       sprintf(filename, "%s/.gimp/printrc", getenv("HOME"));
  4088.   
  4089. + #ifndef __EMX__
  4090.     if ((fp = fopen(filename, "w")) != NULL)
  4091. + #else
  4092. +   if ((fp = fopen(filename, "wt")) != NULL)
  4093. + #endif
  4094.     {
  4095.      /*
  4096.       * Write the contents of the printer list...
  4097. ***************
  4098. *** 2119,2124 ****
  4099. --- 2171,2179 ----
  4100.       line[129],
  4101.       name[17],
  4102.       defname[17];
  4103. + #ifdef __EMX__
  4104. +   BYTE  pnum;
  4105. + #endif
  4106.   
  4107.   
  4108.     defname[0] = '\0';
  4109. ***************
  4110. *** 2170,2175 ****
  4111. --- 2225,2244 ----
  4112.       pclose(pfile);
  4113.     };
  4114.   #endif /* LPSTAT_COMMAND */
  4115. + #ifdef __EMX__
  4116. +   if (DosDevConfig(&pnum, DEVINFO_PRINTER) == NO_ERROR)
  4117. +     {
  4118. +       for (i = 1; i <= pnum; i++)
  4119. +     {
  4120. +       sprintf(plist[plist_count].name, "LPT%d:", i);
  4121. +       sprintf(plist[plist_count].command, "PRINT /D:LPT%d /B ", i);
  4122. +           strcpy(plist[plist_count].driver, "ps2");
  4123. +           plist[plist_count].output_type = OUTPUT_COLOR;
  4124. +           plist_count ++;
  4125. +     }
  4126. +     }
  4127. + #endif
  4128.   
  4129.     if (plist_count > 2)
  4130.       qsort(plist + 1, plist_count - 1, sizeof(plist_t),
  4131. diff -crN gimp-1.0.0.orig/plug-ins/ps/Imakefile gimp-1.0.0/plug-ins/ps/Imakefile
  4132. *** gimp-1.0.0.orig/plug-ins/ps/Imakefile    Thu Jan  1 00:00:00 1970
  4133. --- gimp-1.0.0/plug-ins/ps/Imakefile    Thu Jul  9 21:24:46 1998
  4134. ***************
  4135. *** 0 ****
  4136. --- 1,9 ----
  4137. + /*
  4138. +     Written for XFree86/OS2
  4139. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4140. +  */
  4141. + #include "../plug-ins.tmpl"
  4142. + SimpleProgramTarget(ps)
  4143. diff -crN gimp-1.0.0.orig/plug-ins/ps/ps.c gimp-1.0.0/plug-ins/ps/ps.c
  4144. *** gimp-1.0.0.orig/plug-ins/ps/ps.c    Sat May 30 15:32:32 1998
  4145. --- gimp-1.0.0/plug-ins/ps/ps.c    Sun Sep 13 08:06:18 1998
  4146. ***************
  4147. *** 971,977 ****
  4148. --- 971,981 ----
  4149.    /* ghostscript with a real outputfile. When ghostscript has finished,  */
  4150.    /* open the outputfile and return its filepointer. But be sure         */
  4151.    /* to close and remove the file within ps_close().                     */
  4152. + #ifndef __EMX__
  4153.    fd_popen = popen (cmd, "r");
  4154. + #else
  4155. +  fd_popen = popen (cmd, "rt");
  4156. + #endif
  4157.    g_free (cmd);
  4158.   
  4159.    return (fd_popen);
  4160. ***************
  4161. *** 1008,1013 ****
  4162. --- 1012,1020 ----
  4163.    for (;;)
  4164.    {
  4165.      if (thrd == EOF) return (-1);
  4166. + #ifdef __EMX__
  4167. +    if (thrd == '\r') thrd = getc (ifp);
  4168. + #endif
  4169.      if ((thrd == '\n') && (frst == 'P') && (scnd >= '1') && (scnd <= '6'))
  4170.        break;
  4171.      frst = scnd;
  4172. diff -crN gimp-1.0.0.orig/plug-ins/psd/Imakefile gimp-1.0.0/plug-ins/psd/Imakefile
  4173. *** gimp-1.0.0.orig/plug-ins/psd/Imakefile    Thu Jan  1 00:00:00 1970
  4174. --- gimp-1.0.0/plug-ins/psd/Imakefile    Thu Jul  9 21:25:30 1998
  4175. ***************
  4176. *** 0 ****
  4177. --- 1,9 ----
  4178. + /*
  4179. +     Written for XFree86/OS2
  4180. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4181. +  */
  4182. + #include "../plug-ins.tmpl"
  4183. + SimpleProgramTarget(psd)
  4184. diff -crN gimp-1.0.0.orig/plug-ins/randomize/Imakefile gimp-1.0.0/plug-ins/randomize/Imakefile
  4185. *** gimp-1.0.0.orig/plug-ins/randomize/Imakefile    Thu Jan  1 00:00:00 1970
  4186. --- gimp-1.0.0/plug-ins/randomize/Imakefile    Sat Jul 11 16:03:02 1998
  4187. ***************
  4188. *** 0 ****
  4189. --- 1,11 ----
  4190. + /*
  4191. +     Written for XFree86/OS2
  4192. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4193. +  */
  4194. + #include "../plug-ins.tmpl"
  4195. + ADD_LIBS = -L../gpc -lgpc
  4196. + SimpleProgramTarget(randomize)
  4197. diff -crN gimp-1.0.0.orig/plug-ins/ripple/Imakefile gimp-1.0.0/plug-ins/ripple/Imakefile
  4198. *** gimp-1.0.0.orig/plug-ins/ripple/Imakefile    Thu Jan  1 00:00:00 1970
  4199. --- gimp-1.0.0/plug-ins/ripple/Imakefile    Thu Jul  9 21:39:44 1998
  4200. ***************
  4201. *** 0 ****
  4202. --- 1,9 ----
  4203. + /*
  4204. +     Written for XFree86/OS2
  4205. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4206. +  */
  4207. + #include "../plug-ins.tmpl"
  4208. + SimpleProgramTarget(ripple)
  4209. diff -crN gimp-1.0.0.orig/plug-ins/rotate/Imakefile gimp-1.0.0/plug-ins/rotate/Imakefile
  4210. *** gimp-1.0.0.orig/plug-ins/rotate/Imakefile    Thu Jan  1 00:00:00 1970
  4211. --- gimp-1.0.0/plug-ins/rotate/Imakefile    Thu Jul  9 21:40:20 1998
  4212. ***************
  4213. *** 0 ****
  4214. --- 1,9 ----
  4215. + /*
  4216. +     Written for XFree86/OS2
  4217. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4218. +  */
  4219. + #include "../plug-ins.tmpl"
  4220. + SimpleProgramTarget(rotate)
  4221. diff -crN gimp-1.0.0.orig/plug-ins/rotators/Imakefile gimp-1.0.0/plug-ins/rotators/Imakefile
  4222. *** gimp-1.0.0.orig/plug-ins/rotators/Imakefile    Thu Jan  1 00:00:00 1970
  4223. --- gimp-1.0.0/plug-ins/rotators/Imakefile    Thu Jul  9 21:40:50 1998
  4224. ***************
  4225. *** 0 ****
  4226. --- 1,9 ----
  4227. + /*
  4228. +     Written for XFree86/OS2
  4229. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4230. +  */
  4231. + #include "../plug-ins.tmpl"
  4232. + SimpleProgramTarget(rotators)
  4233. diff -crN gimp-1.0.0.orig/plug-ins/scatter_hsv/Imakefile gimp-1.0.0/plug-ins/scatter_hsv/Imakefile
  4234. *** gimp-1.0.0.orig/plug-ins/scatter_hsv/Imakefile    Thu Jan  1 00:00:00 1970
  4235. --- gimp-1.0.0/plug-ins/scatter_hsv/Imakefile    Thu Jul  9 21:41:20 1998
  4236. ***************
  4237. *** 0 ****
  4238. --- 1,9 ----
  4239. + /*
  4240. +     Written for XFree86/OS2
  4241. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4242. +  */
  4243. + #include "../plug-ins.tmpl"
  4244. + SimpleProgramTarget(scatter_hsv)
  4245. diff -crN gimp-1.0.0.orig/plug-ins/screenshot/Imakefile gimp-1.0.0/plug-ins/screenshot/Imakefile
  4246. *** gimp-1.0.0.orig/plug-ins/screenshot/Imakefile    Thu Jan  1 00:00:00 1970
  4247. --- gimp-1.0.0/plug-ins/screenshot/Imakefile    Thu Jul  9 21:41:56 1998
  4248. ***************
  4249. *** 0 ****
  4250. --- 1,9 ----
  4251. + /*
  4252. +     Written for XFree86/OS2
  4253. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4254. +  */
  4255. + #include "../plug-ins.tmpl"
  4256. + SimpleProgramTarget(screenshot)
  4257. diff -crN gimp-1.0.0.orig/plug-ins/screenshot/screenshot.c gimp-1.0.0/plug-ins/screenshot/screenshot.c
  4258. *** gimp-1.0.0.orig/plug-ins/screenshot/screenshot.c    Fri May 29 01:09:16 1998
  4259. --- gimp-1.0.0/plug-ins/screenshot/screenshot.c    Sat Jul 11 10:18:46 1998
  4260. ***************
  4261. *** 46,51 ****
  4262. --- 46,54 ----
  4263.   #include <unistd.h>
  4264.   #include "gtk/gtk.h"
  4265.   #include "libgimp/gimp.h"
  4266. + #ifdef __EMX__
  4267. + #include <process.h>
  4268. + #endif
  4269.   
  4270.   /* Defines */
  4271.   #define PLUG_IN_NAME        "extension_screenshot"
  4272. ***************
  4273. *** 270,275 ****
  4274. --- 273,279 ----
  4275.       }
  4276.     xwdargv[i] = NULL;
  4277.     
  4278. + #ifndef __EMX__
  4279.     /* fork off a xwd process */
  4280.     if ((pid = fork ()) < 0)
  4281.       {
  4282. ***************
  4283. *** 284,289 ****
  4284. --- 288,301 ----
  4285.         return;
  4286.       }
  4287.     else
  4288. + #else /* __EMX__ */
  4289. +   pid = spawnvp (P_NOWAIT, XWD, xwdargv);
  4290. +   if (pid == -1)
  4291. +     {
  4292. +       g_message ("screenshot: spawn failed: %s\n", g_strerror (errno));
  4293. +       return;
  4294. +     }
  4295. + #endif
  4296.       {
  4297.         waitpid (pid, &status, 0);
  4298.             
  4299. diff -crN gimp-1.0.0.orig/plug-ins/script-fu/Imakefile gimp-1.0.0/plug-ins/script-fu/Imakefile
  4300. *** gimp-1.0.0.orig/plug-ins/script-fu/Imakefile    Thu Jan  1 00:00:00 1970
  4301. --- gimp-1.0.0/plug-ins/script-fu/Imakefile    Sat Jul 11 16:03:54 1998
  4302. ***************
  4303. *** 0 ****
  4304. --- 1,42 ----
  4305. + /*
  4306. +     Written for XFree86/OS2
  4307. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4308. +  */
  4309. + #include "../plug-ins.tmpl"
  4310. + ADD_LIBS = ../dbbrowser/dbbrowser_utils.o
  4311. + SRCS = \
  4312. +         interp_md5.c            \
  4313. +         interp_regex.c          \
  4314. +         interp_slib.c           \
  4315. +         interp_sliba.c          \
  4316. +         interp_trace.c          \
  4317. +         script-fu.c             \
  4318. +         script-fu-console.c     \
  4319. +         script-fu-scripts.c     \
  4320. +         script-fu-server.c      \
  4321. +         regex.c
  4322. + OBJS = \
  4323. +         interp_md5.o            \
  4324. +         interp_regex.o          \
  4325. +         interp_slib.o           \
  4326. +         interp_sliba.o          \
  4327. +         interp_trace.o          \
  4328. +         script-fu.o             \
  4329. +         script-fu-console.o     \
  4330. +         script-fu-scripts.o     \
  4331. +         script-fu-server.o      \
  4332. +         regex.o
  4333. + ComplexProgramTarget(script-fu)
  4334. + #define IHaveSubdirs
  4335. + #define PassCDebugFlags
  4336. + SUBDIRS = scripts
  4337. + MakeSubdirs($(SUBDIRS))
  4338. diff -crN gimp-1.0.0.orig/plug-ins/script-fu/script-fu-console.c gimp-1.0.0/plug-ins/script-fu/script-fu-console.c
  4339. *** gimp-1.0.0.orig/plug-ins/script-fu/script-fu-console.c    Thu May 28 17:03:54 1998
  4340. --- gimp-1.0.0/plug-ins/script-fu/script-fu-console.c    Sun Sep 13 08:18:38 1998
  4341. ***************
  4342. *** 531,537 ****
  4343. --- 531,541 ----
  4344.       {
  4345.         gimp_message ("Unable to open SIOD output pipe");
  4346.       }
  4347. + #ifndef __EMX__
  4348.         else if ((siod_output = fdopen (siod_output_pipe [1], "w")) == NULL)
  4349. + #else
  4350. +       else if ((siod_output = fdopen (siod_output_pipe [1], "wt")) == NULL)
  4351. + #endif
  4352.       {
  4353.         gimp_message ("Unable to open a stream on the SIOD output pipe");
  4354.         siod_output = stdout;
  4355. diff -crN gimp-1.0.0.orig/plug-ins/script-fu/script-fu-scripts.c gimp-1.0.0/plug-ins/script-fu/script-fu-scripts.c
  4356. *** gimp-1.0.0.orig/plug-ins/script-fu/script-fu-scripts.c    Thu May 28 17:03:56 1998
  4357. --- gimp-1.0.0/plug-ins/script-fu/script-fu-scripts.c    Sat Jul 11 14:24:26 1998
  4358. ***************
  4359. *** 196,202 ****
  4360. --- 196,206 ----
  4361.   
  4362.         next_token = local_path;
  4363.   
  4364. + #ifndef __EMX__
  4365.         token = strtok (next_token, ":");
  4366. + #else
  4367. +       token = strtok (next_token, ";");
  4368. + #endif
  4369.   
  4370.         while (token)
  4371.       {
  4372. ***************
  4373. *** 257,263 ****
  4374. --- 261,271 ----
  4375.   
  4376.         g_free (path);
  4377.   
  4378. + #ifndef __EMX__
  4379.         token = strtok (NULL, ":");
  4380. + #else
  4381. +       token = strtok (NULL, ";");
  4382. + #endif
  4383.       } /* while */
  4384.   
  4385.         g_free(local_path);
  4386. diff -crN gimp-1.0.0.orig/plug-ins/script-fu/scripts/Imakefile gimp-1.0.0/plug-ins/script-fu/scripts/Imakefile
  4387. *** gimp-1.0.0.orig/plug-ins/script-fu/scripts/Imakefile    Thu Jan  1 00:00:00 1970
  4388. --- gimp-1.0.0/plug-ins/script-fu/scripts/Imakefile    Thu Jul  9 18:26:02 1998
  4389. ***************
  4390. *** 0 ****
  4391. --- 1,111 ----
  4392. + /*
  4393. +     Written for XFree86/OS2
  4394. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4395. +  */
  4396. + #include "../../../gimp.cf"
  4397. + DATA1 = \
  4398. +     3d-outline.scm                \
  4399. +     3dTruchet.scm                \
  4400. +     add-bevel.scm                \
  4401. +     addborder.scm                \
  4402. +     alien-glow-arrow.scm            \
  4403. +     alien-glow-bar.scm            \
  4404. +     alien-glow-bullet.scm            \
  4405. +     alien-glow-button.scm            \
  4406. +     alien-glow-logo.scm            \
  4407. +     asc2img.scm                \
  4408. +     basic1-logo.scm                \
  4409. +     basic2-logo.scm                \
  4410. +     beavis.jpg                \
  4411. +     beveled-button.scm            \
  4412. +     beveled-pattern-arrow.scm        \
  4413. +     beveled-pattern-bullet.scm        \
  4414. +     beveled-pattern-button.scm        \
  4415. +     beveled-pattern-heading.scm        \
  4416. +     beveled-pattern-hrule.scm        \
  4417. +     blend-anim.scm                \
  4418. +     blended-logo.scm            \
  4419. +     bovinated-logo.scm            \
  4420. +     camo.scm                \
  4421. +     carve-it.scm                \
  4422. +     carved-logo.scm                \
  4423. +     chalk.scm                \
  4424. +     chip-away.scm                \
  4425. +     chrome-it.scm                \
  4426. +     chrome-logo.scm                \
  4427. +     circuit.scm                \
  4428. +     clothify.scm                \
  4429. +     coffee.scm                \
  4430. +     color-cycling.scm            \
  4431. +     comic-logo.scm                \
  4432. +     coolmetal-logo.scm            \
  4433. +     copy-visible.scm            \
  4434. +     crystal-logo.scm
  4435. + DATA2 = \
  4436. +     distress_selection.scm            \
  4437. +     drop-shadow.scm                \
  4438. +     egg.scm                    \
  4439. +     erase-rows.scm                \
  4440. +     fade-outline.scm            \
  4441. +     flatland.scm                \
  4442. +     font-map.scm                \
  4443. +     frosty-logo.scm                \
  4444. +     fuzzyborder.scm                \
  4445. +     gimp-headers.scm            \
  4446. +     gimp-labels.scm                \
  4447. +     glossy.scm                \
  4448. +     glowing-logo.scm            \
  4449. +     gradient-bevel-logo.scm            \
  4450. +     gradient-example.scm            \
  4451. +     grid-system.scm                \
  4452. +     hsv-graph.scm                \
  4453. +     i26-gunya2.scm                \
  4454. +     image-structure.scm            \
  4455. +     land.scm                \
  4456. +     lava.scm                \
  4457. +     line-nova.scm                \
  4458. +     old_photo.scm                \
  4459. +     mkbrush.scm                \
  4460. +     neon-logo.scm                \
  4461. +     perspective-shadow.scm            \
  4462. +     predator.scm
  4463. + DATA3 = \
  4464. +     rendermap.scm                \
  4465. +     ripply-anim.scm                \
  4466. +     round-corners.scm            \
  4467. +     select_to_brush.scm            \
  4468. +     select_to_image.scm            \
  4469. +     selection-round.scm            \
  4470. +     slide.scm                \
  4471. +     sota-chrome-logo.scm            \
  4472. +     sphere.scm                \
  4473. +     spinning_globe.scm            \
  4474. +     starburst-logo.scm            \
  4475. +     starscape-logo.scm            \
  4476. +     swirltile.scm                \
  4477. +     swirly-pattern.scm            \
  4478. +     t-o-p-logo.scm                \
  4479. +     text-circle.scm                \
  4480. +     texture.jpg                \
  4481. +     texture1.jpg                \
  4482. +     texture2.jpg                \
  4483. +     texture3.jpg                \
  4484. +     textured-logo.scm            \
  4485. +     title-header.scm            \
  4486. +     tileblur.scm                \
  4487. +     trochoid.scm                \
  4488. +     truchet.scm                \
  4489. +     unsharp-mask.scm            \
  4490. +     waves-anim.scm                \
  4491. +     weave.scm                \
  4492. +     xach-effect.scm
  4493. + /* $(DATA1) + $(DATA2) + $(DATA3) is too long, so split it */
  4494. + InstallMultiple($(DATA1),$(GIMPDATADIR)/scripts)
  4495. + InstallMultiple($(DATA2),$(GIMPDATADIR)/scripts)
  4496. + InstallMultiple($(DATA3),$(GIMPDATADIR)/scripts)
  4497. diff -crN gimp-1.0.0.orig/plug-ins/semiflatten/Imakefile gimp-1.0.0/plug-ins/semiflatten/Imakefile
  4498. *** gimp-1.0.0.orig/plug-ins/semiflatten/Imakefile    Thu Jan  1 00:00:00 1970
  4499. --- gimp-1.0.0/plug-ins/semiflatten/Imakefile    Thu Jul  9 22:25:30 1998
  4500. ***************
  4501. *** 0 ****
  4502. --- 1,9 ----
  4503. + /*
  4504. +     Written for XFree86/OS2
  4505. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4506. +  */
  4507. + #include "../plug-ins.tmpl"
  4508. + SimpleProgramTarget(semiflatten)
  4509. diff -crN gimp-1.0.0.orig/plug-ins/sgi/Imakefile gimp-1.0.0/plug-ins/sgi/Imakefile
  4510. *** gimp-1.0.0.orig/plug-ins/sgi/Imakefile    Thu Jan  1 00:00:00 1970
  4511. --- gimp-1.0.0/plug-ins/sgi/Imakefile    Thu Jul  9 22:26:46 1998
  4512. ***************
  4513. *** 0 ****
  4514. --- 1,12 ----
  4515. + /*
  4516. +     Written for XFree86/OS2
  4517. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4518. +  */
  4519. + #include "../plug-ins.tmpl"
  4520. + SRCS = sgi.c sgilib.c
  4521. + OBJS = sgi.o sgilib.o
  4522. + ComplexProgramTarget(sgi)
  4523. diff -crN gimp-1.0.0.orig/plug-ins/sgi/sgi.c gimp-1.0.0/plug-ins/sgi/sgi.c
  4524. *** gimp-1.0.0.orig/plug-ins/sgi/sgi.c    Fri Apr 24 10:18:44 1998
  4525. --- gimp-1.0.0/plug-ins/sgi/sgi.c    Sat Jul 11 10:46:02 1998
  4526. ***************
  4527. *** 117,128 ****
  4528. --- 117,132 ----
  4529.    * 'main()' - Main entry - just call gimp_main()...
  4530.    */
  4531.   
  4532. + #if 0
  4533.   int
  4534.   main(int  argc,        /* I - Number of command-line args */
  4535.        char *argv[])    /* I - Command-line args */
  4536.   {
  4537.     return (gimp_main(argc, argv));
  4538.   }
  4539. + #else
  4540. + MAIN()
  4541. + #endif
  4542.   
  4543.   
  4544.   /*
  4545. diff -crN gimp-1.0.0.orig/plug-ins/sharpen/Imakefile gimp-1.0.0/plug-ins/sharpen/Imakefile
  4546. *** gimp-1.0.0.orig/plug-ins/sharpen/Imakefile    Thu Jan  1 00:00:00 1970
  4547. --- gimp-1.0.0/plug-ins/sharpen/Imakefile    Thu Jul  9 22:27:22 1998
  4548. ***************
  4549. *** 0 ****
  4550. --- 1,9 ----
  4551. + /*
  4552. +     Written for XFree86/OS2
  4553. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4554. +  */
  4555. + #include "../plug-ins.tmpl"
  4556. + SimpleProgramTarget(sharpen)
  4557. diff -crN gimp-1.0.0.orig/plug-ins/sharpen/sharpen.c gimp-1.0.0/plug-ins/sharpen/sharpen.c
  4558. *** gimp-1.0.0.orig/plug-ins/sharpen/sharpen.c    Tue Apr 28 11:50:18 1998
  4559. --- gimp-1.0.0/plug-ins/sharpen/sharpen.c    Sat Jul 11 10:46:44 1998
  4560. ***************
  4561. *** 219,230 ****
  4562. --- 219,234 ----
  4563.    * 'main()' - Main entry - just call gimp_main()...
  4564.    */
  4565.   
  4566. + #if 0
  4567.   int
  4568.   main(int  argc,        /* I - Number of command-line args */
  4569.        char *argv[])    /* I - Command-line args */
  4570.   {
  4571.     return (gimp_main(argc, argv));
  4572.   }
  4573. + #else
  4574. + MAIN()
  4575. + #endif
  4576.   
  4577.   
  4578.   /*
  4579. diff -crN gimp-1.0.0.orig/plug-ins/shift/Imakefile gimp-1.0.0/plug-ins/shift/Imakefile
  4580. *** gimp-1.0.0.orig/plug-ins/shift/Imakefile    Thu Jan  1 00:00:00 1970
  4581. --- gimp-1.0.0/plug-ins/shift/Imakefile    Thu Jul  9 22:27:56 1998
  4582. ***************
  4583. *** 0 ****
  4584. --- 1,9 ----
  4585. + /*
  4586. +     Written for XFree86/OS2
  4587. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4588. +  */
  4589. + #include "../plug-ins.tmpl"
  4590. + SimpleProgramTarget(shift)
  4591. diff -crN gimp-1.0.0.orig/plug-ins/sinus/Imakefile gimp-1.0.0/plug-ins/sinus/Imakefile
  4592. *** gimp-1.0.0.orig/plug-ins/sinus/Imakefile    Thu Jan  1 00:00:00 1970
  4593. --- gimp-1.0.0/plug-ins/sinus/Imakefile    Sat Jul 11 16:06:42 1998
  4594. ***************
  4595. *** 0 ****
  4596. --- 1,11 ----
  4597. + /*
  4598. +     Written for XFree86/OS2
  4599. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4600. +  */
  4601. + #include "../plug-ins.tmpl"
  4602. + ADD_LIBS = -L../megawidget -lmegawidget
  4603. + SimpleProgramTarget(sinus)
  4604. diff -crN gimp-1.0.0.orig/plug-ins/smooth_palette/Imakefile gimp-1.0.0/plug-ins/smooth_palette/Imakefile
  4605. *** gimp-1.0.0.orig/plug-ins/smooth_palette/Imakefile    Thu Jan  1 00:00:00 1970
  4606. --- gimp-1.0.0/plug-ins/smooth_palette/Imakefile    Thu Jul  9 22:30:42 1998
  4607. ***************
  4608. *** 0 ****
  4609. --- 1,9 ----
  4610. + /*
  4611. +     Written for XFree86/OS2
  4612. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4613. +  */
  4614. + #include "../plug-ins.tmpl"
  4615. + SimpleProgramTarget(smooth_palette)
  4616. diff -crN gimp-1.0.0.orig/plug-ins/snoise/Imakefile gimp-1.0.0/plug-ins/snoise/Imakefile
  4617. *** gimp-1.0.0.orig/plug-ins/snoise/Imakefile    Thu Jan  1 00:00:00 1970
  4618. --- gimp-1.0.0/plug-ins/snoise/Imakefile    Thu Jul  9 22:31:10 1998
  4619. ***************
  4620. *** 0 ****
  4621. --- 1,9 ----
  4622. + /*
  4623. +     Written for XFree86/OS2
  4624. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4625. +  */
  4626. + #include "../plug-ins.tmpl"
  4627. + SimpleProgramTarget(snoise)
  4628. diff -crN gimp-1.0.0.orig/plug-ins/snp/Imakefile gimp-1.0.0/plug-ins/snp/Imakefile
  4629. *** gimp-1.0.0.orig/plug-ins/snp/Imakefile    Thu Jan  1 00:00:00 1970
  4630. --- gimp-1.0.0/plug-ins/snp/Imakefile    Thu Jul  9 22:31:40 1998
  4631. ***************
  4632. *** 0 ****
  4633. --- 1,9 ----
  4634. + /*
  4635. +     Written for XFree86/OS2
  4636. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4637. +  */
  4638. + #include "../plug-ins.tmpl"
  4639. + SimpleProgramTarget(snp)
  4640. diff -crN gimp-1.0.0.orig/plug-ins/sobel/Imakefile gimp-1.0.0/plug-ins/sobel/Imakefile
  4641. *** gimp-1.0.0.orig/plug-ins/sobel/Imakefile    Thu Jan  1 00:00:00 1970
  4642. --- gimp-1.0.0/plug-ins/sobel/Imakefile    Thu Jul  9 22:32:10 1998
  4643. ***************
  4644. *** 0 ****
  4645. --- 1,9 ----
  4646. + /*
  4647. +     Written for XFree86/OS2
  4648. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4649. +  */
  4650. + #include "../plug-ins.tmpl"
  4651. + SimpleProgramTarget(sobel)
  4652. diff -crN gimp-1.0.0.orig/plug-ins/sparkle/Imakefile gimp-1.0.0/plug-ins/sparkle/Imakefile
  4653. *** gimp-1.0.0.orig/plug-ins/sparkle/Imakefile    Thu Jan  1 00:00:00 1970
  4654. --- gimp-1.0.0/plug-ins/sparkle/Imakefile    Thu Jul  9 22:32:44 1998
  4655. ***************
  4656. *** 0 ****
  4657. --- 1,9 ----
  4658. + /*
  4659. +     Written for XFree86/OS2
  4660. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4661. +  */
  4662. + #include "../plug-ins.tmpl"
  4663. + SimpleProgramTarget(sparkle)
  4664. diff -crN gimp-1.0.0.orig/plug-ins/spread/Imakefile gimp-1.0.0/plug-ins/spread/Imakefile
  4665. *** gimp-1.0.0.orig/plug-ins/spread/Imakefile    Thu Jan  1 00:00:00 1970
  4666. --- gimp-1.0.0/plug-ins/spread/Imakefile    Thu Jul  9 22:33:20 1998
  4667. ***************
  4668. *** 0 ****
  4669. --- 1,9 ----
  4670. + /*
  4671. +     Written for XFree86/OS2
  4672. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4673. +  */
  4674. + #include "../plug-ins.tmpl"
  4675. + SimpleProgramTarget(spread)
  4676. diff -crN gimp-1.0.0.orig/plug-ins/struc/Imakefile gimp-1.0.0/plug-ins/struc/Imakefile
  4677. *** gimp-1.0.0.orig/plug-ins/struc/Imakefile    Thu Jan  1 00:00:00 1970
  4678. --- gimp-1.0.0/plug-ins/struc/Imakefile    Thu Jul  9 18:29:16 1998
  4679. ***************
  4680. *** 0 ****
  4681. --- 1,9 ----
  4682. + /*
  4683. +     Written for XFree86/OS2
  4684. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4685. +  */
  4686. + #include "../plug-ins.tmpl"
  4687. + SimpleProgramTarget(struc)
  4688. diff -crN gimp-1.0.0.orig/plug-ins/sunras/Imakefile gimp-1.0.0/plug-ins/sunras/Imakefile
  4689. *** gimp-1.0.0.orig/plug-ins/sunras/Imakefile    Thu Jan  1 00:00:00 1970
  4690. --- gimp-1.0.0/plug-ins/sunras/Imakefile    Thu Jul  9 22:34:00 1998
  4691. ***************
  4692. *** 0 ****
  4693. --- 1,9 ----
  4694. + /*
  4695. +     Written for XFree86/OS2
  4696. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4697. +  */
  4698. + #include "../plug-ins.tmpl"
  4699. + SimpleProgramTarget(sunras)
  4700. diff -crN gimp-1.0.0.orig/plug-ins/tga/Imakefile gimp-1.0.0/plug-ins/tga/Imakefile
  4701. *** gimp-1.0.0.orig/plug-ins/tga/Imakefile    Thu Jan  1 00:00:00 1970
  4702. --- gimp-1.0.0/plug-ins/tga/Imakefile    Thu Jul  9 22:34:36 1998
  4703. ***************
  4704. *** 0 ****
  4705. --- 1,9 ----
  4706. + /*
  4707. +     Written for XFree86/OS2
  4708. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4709. +  */
  4710. + #include "../plug-ins.tmpl"
  4711. + SimpleProgramTarget(tga)
  4712. diff -crN gimp-1.0.0.orig/plug-ins/threshold_alpha/Imakefile gimp-1.0.0/plug-ins/threshold_alpha/Imakefile
  4713. *** gimp-1.0.0.orig/plug-ins/threshold_alpha/Imakefile    Thu Jan  1 00:00:00 1970
  4714. --- gimp-1.0.0/plug-ins/threshold_alpha/Imakefile    Thu Jul  9 22:35:14 1998
  4715. ***************
  4716. *** 0 ****
  4717. --- 1,9 ----
  4718. + /*
  4719. +     Written for XFree86/OS2
  4720. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4721. +  */
  4722. + #include "../plug-ins.tmpl"
  4723. + SimpleProgramTarget(threshold_alpha)
  4724. diff -crN gimp-1.0.0.orig/plug-ins/tiff/Imakefile gimp-1.0.0/plug-ins/tiff/Imakefile
  4725. *** gimp-1.0.0.orig/plug-ins/tiff/Imakefile    Thu Jan  1 00:00:00 1970
  4726. --- gimp-1.0.0/plug-ins/tiff/Imakefile    Sat Jul 11 16:07:38 1998
  4727. ***************
  4728. *** 0 ****
  4729. --- 1,11 ----
  4730. + /*
  4731. +     Written for XFree86/OS2
  4732. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4733. +  */
  4734. + #include "../plug-ins.tmpl"
  4735. + ADD_LIBS = -ltiff
  4736. + SimpleProgramTarget(tiff)
  4737. diff -crN gimp-1.0.0.orig/plug-ins/tile/Imakefile gimp-1.0.0/plug-ins/tile/Imakefile
  4738. *** gimp-1.0.0.orig/plug-ins/tile/Imakefile    Thu Jan  1 00:00:00 1970
  4739. --- gimp-1.0.0/plug-ins/tile/Imakefile    Thu Jul  9 22:35:46 1998
  4740. ***************
  4741. *** 0 ****
  4742. --- 1,9 ----
  4743. + /*
  4744. +     Written for XFree86/OS2
  4745. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4746. +  */
  4747. + #include "../plug-ins.tmpl"
  4748. + SimpleProgramTarget(tile)
  4749. diff -crN gimp-1.0.0.orig/plug-ins/tileit/Imakefile gimp-1.0.0/plug-ins/tileit/Imakefile
  4750. *** gimp-1.0.0.orig/plug-ins/tileit/Imakefile    Thu Jan  1 00:00:00 1970
  4751. --- gimp-1.0.0/plug-ins/tileit/Imakefile    Thu Jul  9 22:36:18 1998
  4752. ***************
  4753. *** 0 ****
  4754. --- 1,9 ----
  4755. + /*
  4756. +     Written for XFree86/OS2
  4757. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4758. +  */
  4759. + #include "../plug-ins.tmpl"
  4760. + SimpleProgramTarget(tileit)
  4761. diff -crN gimp-1.0.0.orig/plug-ins/tiler/Imakefile gimp-1.0.0/plug-ins/tiler/Imakefile
  4762. *** gimp-1.0.0.orig/plug-ins/tiler/Imakefile    Thu Jan  1 00:00:00 1970
  4763. --- gimp-1.0.0/plug-ins/tiler/Imakefile    Thu Jul  9 22:37:02 1998
  4764. ***************
  4765. *** 0 ****
  4766. --- 1,9 ----
  4767. + /*
  4768. +     Written for XFree86/OS2
  4769. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4770. +  */
  4771. + #include "../plug-ins.tmpl"
  4772. + SimpleProgramTarget(tiler)
  4773. diff -crN gimp-1.0.0.orig/plug-ins/url/Imakefile gimp-1.0.0/plug-ins/url/Imakefile
  4774. *** gimp-1.0.0.orig/plug-ins/url/Imakefile    Thu Jan  1 00:00:00 1970
  4775. --- gimp-1.0.0/plug-ins/url/Imakefile    Thu Jul  9 22:37:30 1998
  4776. ***************
  4777. *** 0 ****
  4778. --- 1,9 ----
  4779. + /*
  4780. +     Written for XFree86/OS2
  4781. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4782. +  */
  4783. + #include "../plug-ins.tmpl"
  4784. + SimpleProgramTarget(url)
  4785. diff -crN gimp-1.0.0.orig/plug-ins/url/url.c gimp-1.0.0/plug-ins/url/url.c
  4786. *** gimp-1.0.0.orig/plug-ins/url/url.c    Sat May 30 15:32:36 1998
  4787. --- gimp-1.0.0/plug-ins/url/url.c    Sat Jul 11 10:20:56 1998
  4788. ***************
  4789. *** 24,29 ****
  4790. --- 24,32 ----
  4791.   #include <errno.h>
  4792.   #include "gtk/gtk.h"
  4793.   #include "libgimp/gimp.h"
  4794. + #ifdef __EMX__
  4795. + #include <process.h>
  4796. + #endif
  4797.   
  4798.   /* Author: Josh MacDonald. */
  4799.   
  4800. ***************
  4801. *** 139,144 ****
  4802. --- 142,148 ----
  4803.   
  4804.     tmpname = params[1].data.d_string;
  4805.   
  4806. + #ifndef __EMX__
  4807.     if ((pid = fork()) < 0)
  4808.       {
  4809.         g_message ("url: fork failed: %s\n", g_strerror(errno));
  4810. ***************
  4811. *** 151,156 ****
  4812. --- 155,168 ----
  4813.         _exit(127);
  4814.       }
  4815.     else
  4816. + #else /* __EMX__ */
  4817. +   pid = spawnlp (P_NOWAIT, "wget", "wget", filename, "-O", tmpname, NULL);
  4818. +   if (pid == -1)
  4819. +     {
  4820. +       g_message ("url: spawn failed: %s\n", g_strerror(errno));
  4821. +       return -1;
  4822. +     }
  4823. + #endif
  4824.       {
  4825.         waitpid (pid, &status, 0);
  4826.   
  4827. diff -crN gimp-1.0.0.orig/plug-ins/video/Imakefile gimp-1.0.0/plug-ins/video/Imakefile
  4828. *** gimp-1.0.0.orig/plug-ins/video/Imakefile    Thu Jan  1 00:00:00 1970
  4829. --- gimp-1.0.0/plug-ins/video/Imakefile    Thu Jul  9 22:38:14 1998
  4830. ***************
  4831. *** 0 ****
  4832. --- 1,9 ----
  4833. + /*
  4834. +     Written for XFree86/OS2
  4835. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4836. +  */
  4837. + #include "../plug-ins.tmpl"
  4838. + SimpleProgramTarget(video)
  4839. diff -crN gimp-1.0.0.orig/plug-ins/vinvert/Imakefile gimp-1.0.0/plug-ins/vinvert/Imakefile
  4840. *** gimp-1.0.0.orig/plug-ins/vinvert/Imakefile    Thu Jan  1 00:00:00 1970
  4841. --- gimp-1.0.0/plug-ins/vinvert/Imakefile    Thu Jul  9 22:38:56 1998
  4842. ***************
  4843. *** 0 ****
  4844. --- 1,9 ----
  4845. + /*
  4846. +     Written for XFree86/OS2
  4847. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4848. +  */
  4849. + #include "../plug-ins.tmpl"
  4850. + SimpleProgramTarget(vinvert)
  4851. diff -crN gimp-1.0.0.orig/plug-ins/vpropagate/Imakefile gimp-1.0.0/plug-ins/vpropagate/Imakefile
  4852. *** gimp-1.0.0.orig/plug-ins/vpropagate/Imakefile    Thu Jan  1 00:00:00 1970
  4853. --- gimp-1.0.0/plug-ins/vpropagate/Imakefile    Thu Jul  9 22:39:18 1998
  4854. ***************
  4855. *** 0 ****
  4856. --- 1,9 ----
  4857. + /*
  4858. +     Written for XFree86/OS2
  4859. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4860. +  */
  4861. + #include "../plug-ins.tmpl"
  4862. + SimpleProgramTarget(vpropagate)
  4863. diff -crN gimp-1.0.0.orig/plug-ins/waves/Imakefile gimp-1.0.0/plug-ins/waves/Imakefile
  4864. *** gimp-1.0.0.orig/plug-ins/waves/Imakefile    Thu Jan  1 00:00:00 1970
  4865. --- gimp-1.0.0/plug-ins/waves/Imakefile    Sat Jul 11 16:08:24 1998
  4866. ***************
  4867. *** 0 ****
  4868. --- 1,11 ----
  4869. + /*
  4870. +     Written for XFree86/OS2
  4871. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4872. +  */
  4873. + #include "../plug-ins.tmpl"
  4874. + ADD_LIBS = -L../megawidget -lmegawidget
  4875. + SimpleProgramTarget(waves)
  4876. diff -crN gimp-1.0.0.orig/plug-ins/webbrowser/Imakefile gimp-1.0.0/plug-ins/webbrowser/Imakefile
  4877. *** gimp-1.0.0.orig/plug-ins/webbrowser/Imakefile    Thu Jan  1 00:00:00 1970
  4878. --- gimp-1.0.0/plug-ins/webbrowser/Imakefile    Thu Jul 16 00:00:26 1998
  4879. ***************
  4880. *** 0 ****
  4881. --- 1,12 ----
  4882. + /*
  4883. +     Written for XFree86/OS2
  4884. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4885. +  */
  4886. + #include "../plug-ins.tmpl"
  4887. + ADD_LIBS = $(XMULIB)
  4888. + SimpleProgramTarget(webbrowser)
  4889. + InstallNonExecFile(web-browser.scm,$(GIMPDATADIR)/scripts)
  4890. diff -crN gimp-1.0.0.orig/plug-ins/webbrowser/webbrowser.c gimp-1.0.0/plug-ins/webbrowser/webbrowser.c
  4891. *** gimp-1.0.0.orig/plug-ins/webbrowser/webbrowser.c    Mon Apr 13 13:44:06 1998
  4892. --- gimp-1.0.0/plug-ins/webbrowser/webbrowser.c    Sat Jul 11 10:24:16 1998
  4893. ***************
  4894. *** 43,48 ****
  4895. --- 43,51 ----
  4896.   #include "gtk/gtk.h"
  4897.   #include "libgimp/gimp.h"
  4898.   
  4899. + #ifdef __EMX__
  4900. + #include <process.h>
  4901. + #endif
  4902.   /* Browser program name -- start in case it's not already running */
  4903.   #define BROWSER_PROGNAME    "netscape"
  4904.   
  4905. ***************
  4906. *** 192,197 ****
  4907. --- 195,201 ----
  4908.   static gint
  4909.   start_browser (char *prog, char *url)
  4910.   {
  4911. + #ifndef __EMX__
  4912.       pid_t cpid;
  4913.   
  4914.       if ((cpid = fork()) == 0)
  4915. ***************
  4916. *** 201,206 ****
  4917. --- 205,213 ----
  4918.       }
  4919.   
  4920.       return (cpid > 0);
  4921. + #else
  4922. +     return (spawnlp(P_NOWAIT, prog, prog, url, NULL) != -1);
  4923. + #endif
  4924.   }
  4925.   
  4926.   static gint
  4927. diff -crN gimp-1.0.0.orig/plug-ins/whirlpinch/Imakefile gimp-1.0.0/plug-ins/whirlpinch/Imakefile
  4928. *** gimp-1.0.0.orig/plug-ins/whirlpinch/Imakefile    Thu Jan  1 00:00:00 1970
  4929. --- gimp-1.0.0/plug-ins/whirlpinch/Imakefile    Thu Jul  9 22:40:58 1998
  4930. ***************
  4931. *** 0 ****
  4932. --- 1,9 ----
  4933. + /*
  4934. +     Written for XFree86/OS2
  4935. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4936. +  */
  4937. + #include "../plug-ins.tmpl"
  4938. + SimpleProgramTarget(whirlpinch)
  4939. diff -crN gimp-1.0.0.orig/plug-ins/xd/Imakefile gimp-1.0.0/plug-ins/xd/Imakefile
  4940. *** gimp-1.0.0.orig/plug-ins/xd/Imakefile    Thu Jan  1 00:00:00 1970
  4941. --- gimp-1.0.0/plug-ins/xd/Imakefile    Sat Jul 11 16:10:00 1998
  4942. ***************
  4943. *** 0 ****
  4944. --- 1,11 ----
  4945. + /*
  4946. +     Written for XFree86/OS2
  4947. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  4948. +  */
  4949. + #include "../plug-ins.tmpl"
  4950. + ADD_LIBS = -lxdelta -lgdbm
  4951. + SimpleProgramTarget(xd)
  4952. diff -crN gimp-1.0.0.orig/plug-ins/xd/xd.c gimp-1.0.0/plug-ins/xd/xd.c
  4953. *** gimp-1.0.0.orig/plug-ins/xd/xd.c    Sat May 30 15:32:36 1998
  4954. --- gimp-1.0.0/plug-ins/xd/xd.c    Sun Sep 13 15:38:26 1998
  4955. ***************
  4956. *** 611,620 ****
  4957. --- 611,631 ----
  4958.                     gint len)
  4959.   {
  4960.     gchar* foo = "/tmp/foo.xpm";
  4961. + #ifdef __EMX__
  4962. +   GParam* params;
  4963. +   gint retvals;
  4964. + #endif
  4965.     FILE* f;
  4966.   
  4967.     g_print ("gdk_pixmap_create_from_xpm: this proceedure is slow because Peter is a wuss.  it should be rewritten.");
  4968.   
  4969. + #ifdef __EMX__
  4970. +   params = gimp_run_procedure ("gimp_temp_name",
  4971. +                                &retvals,
  4972. +                                PARAM_STRING, "xpm",
  4973. +                                PARAM_END);
  4974. +   foo = params[1].data.d_string;
  4975. + #endif
  4976.     f = fopen (foo, "w");
  4977.   
  4978.     fwrite (segment, len, 1, f);
  4979. ***************
  4980. *** 754,759 ****
  4981. --- 765,774 ----
  4982.       }
  4983.   
  4984.     /* Select the most recent version. */
  4985. + #if 1
  4986. + /* BUG? when xd->versions == 1 */
  4987. +   preview_selected_version = xd->versions - 1;
  4988. + #endif
  4989.     gtk_list_select_item (GTK_LIST (plist), xd->versions - 1);
  4990.   
  4991.     gtk_main ();
  4992. diff -crN gimp-1.0.0.orig/plug-ins/xpm/Imakefile gimp-1.0.0/plug-ins/xpm/Imakefile
  4993. *** gimp-1.0.0.orig/plug-ins/xpm/Imakefile    Thu Jan  1 00:00:00 1970
  4994. --- gimp-1.0.0/plug-ins/xpm/Imakefile    Sat Jul 11 16:10:54 1998
  4995. ***************
  4996. *** 0 ****
  4997. --- 1,11 ----
  4998. + /*
  4999. +     Written for XFree86/OS2
  5000. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  5001. +  */
  5002. + #include "../plug-ins.tmpl"
  5003. + ADD_LIBS = -lXpm
  5004. + SimpleProgramTarget(xpm)
  5005. diff -crN gimp-1.0.0.orig/plug-ins/xwd/Imakefile gimp-1.0.0/plug-ins/xwd/Imakefile
  5006. *** gimp-1.0.0.orig/plug-ins/xwd/Imakefile    Thu Jan  1 00:00:00 1970
  5007. --- gimp-1.0.0/plug-ins/xwd/Imakefile    Thu Jul  9 22:41:36 1998
  5008. ***************
  5009. *** 0 ****
  5010. --- 1,9 ----
  5011. + /*
  5012. +     Written for XFree86/OS2
  5013. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  5014. +  */
  5015. + #include "../plug-ins.tmpl"
  5016. + SimpleProgramTarget(xwd)
  5017. diff -crN gimp-1.0.0.orig/plug-ins/zealouscrop/Imakefile gimp-1.0.0/plug-ins/zealouscrop/Imakefile
  5018. *** gimp-1.0.0.orig/plug-ins/zealouscrop/Imakefile    Thu Jan  1 00:00:00 1970
  5019. --- gimp-1.0.0/plug-ins/zealouscrop/Imakefile    Thu Jul  9 22:42:14 1998
  5020. ***************
  5021. *** 0 ****
  5022. --- 1,9 ----
  5023. + /*
  5024. +     Written for XFree86/OS2
  5025. +     Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw> 07/09/1998
  5026. +  */
  5027. + #include "../plug-ins.tmpl"
  5028. + SimpleProgramTarget(zealouscrop)
  5029. diff -crN gimp-1.0.0.orig/user_install.cmd gimp-1.0.0/user_install.cmd
  5030. *** gimp-1.0.0.orig/user_install.cmd    Thu Jan  1 00:00:00 1970
  5031. --- gimp-1.0.0/user_install.cmd    Sun Sep 13 01:31:48 1998
  5032. ***************
  5033. *** 0 ****
  5034. --- 1,41 ----
  5035. + @echo off
  5036. + REM  Script to perform the default installation steps for the
  5037. + REM   specified user home directory.
  5038. + REM
  5039. + REM  1) Create ~/.gimp if it doesn't exist
  5040. + REM  2) Copy system gimprc file to ~/.gimp
  5041. + REM  3) Create brushes, gradients, palettes, patterns, plug-ins subdirs
  5042. + REM  4) Create the tmp subdirectory for disk-swapping undo buffers
  5043. + REM  5) Copy the palette files in system palette directory
  5044. + REM
  5045. + echo "mkdir %2"
  5046. + mkdir %2
  5047. + echo "copy %1\gimprc_user %2\gimprc"
  5048. + copy %1\gimprc_user %2\gimprc
  5049. + echo "copy %1\gtkrc %2\gtkrc"
  5050. + copy %1\gtkrc %2\gtkrc
  5051. + echo "mkdir %2\brushes"
  5052. + mkdir %2\brushes
  5053. + echo "mkdir %2\gradients"
  5054. + mkdir %2\gradients
  5055. + echo "mkdir %2\palettes"
  5056. + mkdir %2\palettes
  5057. + echo "mkdir %2\patterns"
  5058. + mkdir %2\patterns
  5059. + echo "mkdir %2\plug-ins"
  5060. + mkdir %2\plug-ins
  5061. + echo "mkdir %2\gfig"
  5062. + mkdir %2\gfig
  5063. + echo "mkdir %2\tmp"
  5064. + mkdir %2\tmp
  5065. + echo "mkdir %2\scripts"
  5066. + mkdir %2\scripts
  5067. + echo "mkdir %2\gflares"
  5068. + mkdir %2\gflares
  5069. + echo "copy %1\palettes\*.* %2\palettes"
  5070. + copy %1\palettes\*.* %2\palettes
  5071.