1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/graphics/netpbm/files/patch-aj
Will Andrews 26856dea21 Update to 9.3.
PR:		18976
Submitted by:	pseudo-maintainer
2000-06-04 22:36:27 +00:00

69 lines
2.1 KiB
Plaintext

--- pbmplus.h.orig Sat May 27 03:50:50 2000
+++ pbmplus.h Sat Jun 3 00:00:00 2000
@@ -18,6 +18,9 @@
#include <stdio.h>
#include <errno.h>
#include <sys/stat.h>
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
#ifdef VMS
#include <perror.h>
@@ -32,7 +35,7 @@
** and if you run on an Amiga, set AMIGA. If your compiler is ANSI C, you're
** probably better off setting SYSV - all it affects is string handling.
*/
-#define BSD
+/* #define BSD */
/* #define SYSV */
/* #define MSDOS */
/* #define AMIGA */
@@ -51,7 +54,7 @@
#define RGB_DB1 "PBMplus_Dir:RGB.TXT"
#define RGB_DB2 "PBMplus_Dir:RGB.TXT"
#else
-#define RGB_DB1 "/usr/lib/X11/rgb.txt"
+#define RGB_DB1 "%%X11BASE%%/lib/X11/rgb.txt"
#define RGB_DB2 "/usr/openwin/lib/rgb.txt"
#endif
@@ -299,37 +302,6 @@
PM_CHECK_BASIC
};
-
-/* By making this <> instead of "", we avoid making shhopt.h a dependency
- of every program in the package when we do make dep.
-*/
-#include <shhopt.h>
-
-void pm_optParseOptions(int *argc, char *argv[],
- optStruct opt[], int allowNegNum);
-/* Use pm_optParseOptions instead of optParseOptions in order to use the
- shared Netpbm libraries
-*/
-
-/* You can use OPTENTRY to assign a value to a dynamically or automatically
- allocated optStruct structure with minimal typing and easy readability.
-
- Here is an example:
-
- unsigned int option_def_index = 0;
- optStruct *option_def = malloc(100*sizeof(optStruct));
- OPTENTRY('h', "help", OPT_FLAG, &help_flag, 0);
- OPTENTRY(0, "alphaout", OPT_STRING, &alpha_filename, 0);
-*/
-
-#define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\
- option_def[option_def_index].shortName = (shortvalue); \
- option_def[option_def_index].longName = (longvalue); \
- option_def[option_def_index].type = (typevalue); \
- option_def[option_def_index].arg = (outputvalue); \
- option_def[option_def_index].flags = (flagvalue); \
- option_def[++option_def_index].type = OPT_END; \
- }
/* Compatibility stuff */