diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-19 23:15:59 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-19 23:15:59 +0000 |
commit | 30bab24da8db94d1e3c07c69df3d4e0eca37d315 (patch) | |
tree | 7132eaa5b5c041a2e1bdd0fc6321457ecd2e52a6 /wm/olvwm/patches | |
parent | 6fbe86c997d83a3ec972d7d8f276675c1fe50398 (diff) | |
download | pkgsrc-30bab24da8db94d1e3c07c69df3d4e0eca37d315.tar.gz |
Replace local prototypes in gettext.c with correct header files,
at least mmap was conflicting anyway on DragonFly. Use InstallGenMan
for section 5 man page. Explicitly add rpath entry for PREFIX/lib.
Diffstat (limited to 'wm/olvwm/patches')
-rw-r--r-- | wm/olvwm/patches/patch-aa | 20 | ||||
-rw-r--r-- | wm/olvwm/patches/patch-ah | 32 | ||||
-rw-r--r-- | wm/olvwm/patches/patch-am | 29 |
3 files changed, 70 insertions, 11 deletions
diff --git a/wm/olvwm/patches/patch-aa b/wm/olvwm/patches/patch-aa index 8d81b34d89f..eb79db82bd8 100644 --- a/wm/olvwm/patches/patch-aa +++ b/wm/olvwm/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ +$NetBSD: patch-aa,v 1.2 2006/01/19 23:15:59 joerg Exp $ ---- Imakefile.orig Tue Jan 13 16:23:54 1998 +--- Imakefile.orig 1998-01-13 21:23:54.000000000 +0000 +++ Imakefile @@ -48,7 +48,11 @@ /**/#MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DIDENT @@ -15,7 +15,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ /**/# /**/# Set MORELDFLAGS to any link options you want. Be sure to add -lxpm if you -@@ -57,8 +61,10 @@ +@@ -57,8 +61,10 @@ MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DSVR4 /**/#MORELDFLAGS=-L${OPENWINHOME}/lib /**/# /**/# For Solaris 2.x, I'd suggest @@ -27,7 +27,15 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ /**/# No more changes needed -@@ -93,7 +99,7 @@ +@@ -73,6 +79,7 @@ SYS_LIBRARIES = -ll -lm + INCLUDES = -I$(HEADER_DEST) -I$(TOP) $(XPMINCDIR) + DEPLIBS = + LOCAL_LIBRARIES = $(MORELDFLAGS) $(OLGXLIB) $(XLIB) ++EXTRA_LDOPTIONS = ${LINKER_RPATH_FLAG}${PREFIX}/lib + + HEADERS = cmdstream.h cursors.h debug.h defaults.h dsdm.h environ.h error.h \ + events.h gettext.h globals.h group.h helpcmd.h i18n.h iconimage.h \ +@@ -93,7 +100,7 @@ MISC = openwin-menu SRCS = atom.c client.c cmdstream.c cursors.c debug.c defaults.c dsdm.c \ environ.c error.c evbind.c events.c fontset.c gettext.c gif.c group.c \ helpsend.c i18n.c images.c info.c kbdfuncs.c list.c mem.c menu.c \ @@ -36,7 +44,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ olwm.c pixmap.c properties.c reduce.c resources.c screen.c \ selection.c services.c slave.c slots.c st.c states.c usermenu.c \ usleep.c virtual.c win.c winbusy.c winbutton.c wincolor.c winframe.c \ -@@ -136,13 +142,6 @@ +@@ -136,13 +143,6 @@ version.c: ${SRCS} ${HEADERS} clean:: /bin/rm -f parse.c olvwmrc.c version.c @@ -48,6 +56,6 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ - echo "installing $$i"; \ - $(INSTALL) -c $(INSTMANFLAGS) $$i $(DESTDIR)$(MANDIR)/`basename $$i .man`.$(MANSUFFIX) ; \ - done -+InstallManPage(olvwmrc,$(FILEMANDIR)) ++InstallGenManPage(olvwmrc,$(FILEMANDIR),${FILEMANSUFFIX}) #include <XView.prog> diff --git a/wm/olvwm/patches/patch-ah b/wm/olvwm/patches/patch-ah index e7efe598e1d..91922810314 100644 --- a/wm/olvwm/patches/patch-ah +++ b/wm/olvwm/patches/patch-ah @@ -1,8 +1,16 @@ -$NetBSD: patch-ah,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ +$NetBSD: patch-ah,v 1.2 2006/01/19 23:15:59 joerg Exp $ ---- virtual.c.orig Sat Jan 8 00:36:29 2000 -+++ virtual.c Sat Jan 8 00:37:54 2000 -@@ -69,6 +69,9 @@ +--- virtual.c.orig 2000-03-02 21:41:11.000000000 +0000 ++++ virtual.c +@@ -4,6 +4,7 @@ + */ + + #include <sys/types.h> ++#include <limits.h> + #include <stdio.h> + #include <string.h> + #include <dirent.h> +@@ -69,6 +70,9 @@ extern Button *MakeUpLeftButton(),*MakeL extern char *ExpandPath(); @@ -12,7 +20,21 @@ $NetBSD: patch-ah,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ /* * Semantic action associated with each of the buttons above. These must * be in the same order as the button array; it would be better if the Button -@@ -2108,7 +2111,9 @@ +@@ -1982,8 +1986,13 @@ struct _menu *menu; + DIR *dir; + struct dirent *ent; + Button *b; ++#if defined(NAME_MAX) ++char s[NAME_MAX], dirname[MAXPATHLEN - NAME_MAX], *newname, *ExpandPath(); ++char pattern[NAME_MAX]; ++#else + char s[MAXNAMLEN], dirname[MAXPATHLEN - MAXNAMLEN], *newname, *ExpandPath(); + char pattern[MAXNAMLEN]; ++#endif + extern int AppMenuFunc(); + MenuCache *menuCache; + int slot; +@@ -2108,7 +2117,9 @@ int val; } } diff --git a/wm/olvwm/patches/patch-am b/wm/olvwm/patches/patch-am new file mode 100644 index 00000000000..c80af3a9a50 --- /dev/null +++ b/wm/olvwm/patches/patch-am @@ -0,0 +1,29 @@ +$NetBSD: patch-am,v 1.1 2006/01/19 23:15:59 joerg Exp $ + +--- gettext.c.orig 1998-01-13 21:01:04.000000000 +0000 ++++ gettext.c +@@ -11,18 +11,21 @@ + * LEGAL_NOTICE file for terms of the license. + */ + ++#include <sys/types.h> ++#include <sys/mman.h> ++#include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++ + #include "gettext.h" + + #ifdef SYSV + #define bzero(a,b) memset(a,0,b) + #endif + +-char *malloc(), *strdup(); + char * dgettext(); + char *_gettext(); + char *in_path(); +-char *fgets(), *getenv(); +-caddr_t mmap(), calloc(); + + #ifdef NOT + static struct domain_binding *firstbind=0, *lastbind=0; |