openbsd-ports/x11/xview/config/patches/p-config-XView_cf
espie ee305feb7e Missed a few XCOMM.
gcc3's cpp warns about missing defines in imakefiles, two obvious fixes.
Start removing warnings caused by extra shit at end of #undef...
2003-12-30 01:52:22 +00:00

80 lines
2.1 KiB
Plaintext

--- config/XView.cf.orig 1994-06-27 04:09:19.000000000 +0200
+++ config/XView.cf 2003-12-30 02:23:14.000000000 +0100
@@ -1,8 +1,8 @@
#ifndef XViewCf
#define XViewCf YES
-/**/###########################################################################
-/**/# @(#)XView.cf 1.10 09 Feb 1992 SMI
-/**/# XView.cf for XView release 3.0. Specify site preferences here.
+XCOMM ##########################################################################
+XCOMM @(#)XView.cf 1.10 09 Feb 1992 SMI
+XCOMM XView.cf for XView release 3.0. Specify site preferences here.
/*
* When anything is changed here, you must remake all the Makefiles
@@ -101,7 +101,7 @@
* the appropriate value.
*/
#ifndef XVDestDir
-#define XVDestDir /usr/X11/xview
+#define XVDestDir /usr/local
#endif
/*
* Command to add object modules to the library.
@@ -139,7 +139,7 @@
* installed in $(DESTDIR)/lib/X11/config (aka $(CONFIGDIR)).
*/
#ifndef OnlyNeedsNewXViewConfigInstalled
-#define OnlyNeedsNewXViewConfigInstalled NO
+#define OnlyNeedsNewXViewConfigInstalled YES
#endif
/*
* If you would like the XView man pages to be installed in
@@ -219,8 +219,10 @@
#ifndef SharedLibXView
# if HasSharedLibraries && WantToCompileSharedLibs
#define SharedLibXView YES
+#define SharedLibX YES
# else
#define SharedLibXView NO
+#define SharedLibX NO
# endif
#endif
/*
@@ -267,7 +269,7 @@
* to YES.
*/
#ifndef RedefineTextExtrasMenu
-#define RedefineTextExtrasMenu YES
+#define RedefineTextExtrasMenu NO
#endif
/*
* DEC 3100 Config options
@@ -305,7 +307,7 @@
* malloc() and read() will be used instead.
*/
#ifndef OsHasMmap
-#define OsHasMmap YES
+#define OsHasMmap NO
#endif
/*
* The implementation of internationalization support in XView depends
@@ -315,7 +317,7 @@
* features disabled.
*/
#ifndef OsHasLocale
-#define OsHasLocale YES
+#define OsHasLocale NO
#endif
/*
* There are number of memory allocation macros in lib/libxview/base.h
@@ -360,7 +362,7 @@
* be defined as -PIC
*/
#ifndef PositionIndependentCodeFlag
-#define PositionIndependentCodeFlag -PIC
+#define PositionIndependentCodeFlag -fPIC
#endif
/*