diff options
author | sborrill <sborrill> | 2008-05-13 21:36:14 +0000 |
---|---|---|
committer | sborrill <sborrill> | 2008-05-13 21:36:14 +0000 |
commit | 0b842f66e0455b74f4c1f8ceb8f49c4938e8ab9c (patch) | |
tree | 4cf5b26313853179288d5dc8def3a1ec0e13475e /x11 | |
parent | 9c003b1f0fea92ae76ac809cd9e6cb88d30dded0 (diff) | |
download | pkgsrc-0b842f66e0455b74f4c1f8ceb8f49c4938e8ab9c.tar.gz |
Fluxbox Tray Menu
If you want a fast way to reach your Fluxbox menus when you're using all
your screen, your problems are over.
Now you can use the Fluxbox Tray Menu to put a icon on your toolbar, and
when clicking with the left button, your Fluxbox menus will appear!
Diffstat (limited to 'x11')
-rw-r--r-- | x11/ftmenu/DESCR | 7 | ||||
-rw-r--r-- | x11/ftmenu/MESSAGE | 14 | ||||
-rw-r--r-- | x11/ftmenu/Makefile | 25 | ||||
-rw-r--r-- | x11/ftmenu/PLIST | 4 | ||||
-rw-r--r-- | x11/ftmenu/distinfo | 6 | ||||
-rw-r--r-- | x11/ftmenu/patches/patch-aa | 31 |
6 files changed, 87 insertions, 0 deletions
diff --git a/x11/ftmenu/DESCR b/x11/ftmenu/DESCR new file mode 100644 index 00000000000..dc421564299 --- /dev/null +++ b/x11/ftmenu/DESCR @@ -0,0 +1,7 @@ +Fluxbox Tray Menu + +If you want a fast way to reach your Fluxbox menus when you're using all +your screen, your problems are over. + +Now you can use the Fluxbox Tray Menu to put a icon on your toolbar, and +when clicking with the left button, your Fluxbox menus will appear! diff --git a/x11/ftmenu/MESSAGE b/x11/ftmenu/MESSAGE new file mode 100644 index 00000000000..2e3870e1cce --- /dev/null +++ b/x11/ftmenu/MESSAGE @@ -0,0 +1,14 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ + +To use ftmenu, first define an icon image in the same way you use in the +.fluxbox/menu file to handle icons (i.e. a <full icon path here> string). +Define the icon image after the [begin] string, at the start of the menu file. + +For example: + +[begin] (fluxbox) <${PREFIX}/share/ftmenu/fb.xpm> + +You can then start ftmenu. + +=========================================================================== diff --git a/x11/ftmenu/Makefile b/x11/ftmenu/Makefile new file mode 100644 index 00000000000..4a9f888c210 --- /dev/null +++ b/x11/ftmenu/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ +# + +DISTNAME= ftmenu-0.3 + +CATEGORIES= x11 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ftmenu/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ftmenu.sourceforge.net/ +COMMENT= Fluxbox Tray Menu + +GNU_CONFIGURE= YES + +USE_LANGUAGES+= c c++ + +.include "../../mk/bsd.prefs.mk" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/ftmenu ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/ftmenu + ${INSTALL_DATA} ${WRKSRC}/img/fb.xpm ${PREFIX}/share/ftmenu/fb.xpm + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/ftmenu/PLIST b/x11/ftmenu/PLIST new file mode 100644 index 00000000000..e61d11b90f8 --- /dev/null +++ b/x11/ftmenu/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ +bin/ftmenu +share/ftmenu/fb.xpm +@dirrm share/ftmenu diff --git a/x11/ftmenu/distinfo b/x11/ftmenu/distinfo new file mode 100644 index 00000000000..04619bbc03c --- /dev/null +++ b/x11/ftmenu/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ + +SHA1 (ftmenu-0.3.tar.gz) = fa115f85996fbd3b22e7f2d5ba259dab9f1d7877 +RMD160 (ftmenu-0.3.tar.gz) = 4f2cba2ba572c064f2735d0b6f9c9c773caedcef +Size (ftmenu-0.3.tar.gz) = 83706 bytes +SHA1 (patch-aa) = 7edc7e5972b4b093871e61541cca1404de072f8c diff --git a/x11/ftmenu/patches/patch-aa b/x11/ftmenu/patches/patch-aa new file mode 100644 index 00000000000..a5d384fcea1 --- /dev/null +++ b/x11/ftmenu/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $ + +--- src/ftmenu.c.orig 2008-05-13 21:49:29.000000000 +0100 ++++ src/ftmenu.c 2008-05-13 22:24:01.000000000 +0100 +@@ -178,7 +178,7 @@ + regcomp(®_command ,"{.*}" ,0); + + // find the menu file +- while((nchars=getline(&line,&line_len,file))>0){ ++ while(fgets(line, MAX_LINE_LENGTH, file) != NULL) { + if(regexec(®_file,line,0,NULL,0)==0){ + g_strstrip(line); + line = strchr(line,':'); // break into tokens +@@ -195,7 +195,7 @@ + + // read the menu file + file = fopen(menufile,"r"); +- while((nchars=getline(&line,&line_len,file))>0){ ++ while(fgets(line, MAX_LINE_LENGTH, file) != NULL) { + // finds the menu title + if(regexec(®_begin,line,0,NULL,0)==0){ + if(regexec(®_paren,line,(size_t) 1,exp_match,0)==0){ +@@ -226,7 +226,7 @@ + menu_depth--; + } + fclose(file); +- g_free(&line); ++ g_free(line); + + regfree(®_file); + regfree(®_begin); |