1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add back jafm which was prematurely removed by will, but mark it BROKEN

because it doesn't build with recent versions of bison.
This commit is contained in:
Kris Kennaway 2002-05-24 11:48:15 +00:00
parent b74a4a7253
commit 4d6de4bdae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59886
12 changed files with 249 additions and 0 deletions

View File

@ -13,6 +13,7 @@
SUBDIR += gentoo
SUBDIR += gnome-commander
SUBDIR += gnomemc
SUBDIR += jafm
SUBDIR += mtoolsfm
SUBDIR += nautilus
SUBDIR += nautilus2

26
x11-fm/jafm/Makefile Normal file
View File

@ -0,0 +1,26 @@
# New ports collection makefile for: jafm
# Date created: 31 August 1998
# Whom: brett@peloton.physics.montana.edu
#
# $FreeBSD$
#
PORTNAME= jafm
PORTVERSION= 0.5
CATEGORIES= x11-fm
MASTER_SITES= http://www-personal.usyd.edu.au/~rlittlew/jafm/ \
${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= X11/desktop
MAINTAINER= brett@peloton.runet.edu
BROKEN= "Does not build"
USE_QT_VER= 1
USE_BISON= yes
MAKE_ENV= Cxx="${CXX}" CxxFLAGS="${CXXFLAGS}"
ALL_TARGET= jafm
MAN8= jafm.8
.include <bsd.port.mk>

1
x11-fm/jafm/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (jafm-0.5.tar.gz) = d8e4ea0a5f999c5635c637aa49440df5

View File

@ -0,0 +1,82 @@
--- Makefile.orig Thu Oct 23 21:44:05 1997
+++ Makefile Fri May 24 04:44:50 2002
@@ -5,12 +5,13 @@
# requires GNU make
-INSTALLDIR=/usr/local
+INSTALLDIR=${PREFIX}
#INSTALLDIR=/nb/rupert
-JAFMDIR=$(INSTALLDIR)/lib/jafm
+JAFMDIR=$(INSTALLDIR)/share/jafm
ZICDIR=$(JAFMDIR)/zic
APPLDIR=$(JAFMDIR)/appl
+QTDIR=${X11BASE}
.SUFFIXES: .cc .o .cc.o
@@ -26,15 +27,15 @@
M%.cc: %.hh
$(MOC) $< -o $@
-CC = gcc
-MOC = ${QTDIR}/bin/moc
-Cxx =g++
-
-INCFLAGS=-I${QTDIR}/include
-CxxFLAGS= -Wall #-pipe
-CFLAGS= -Wall #-pipe
-OPT=-g
-DEFINES=
+CC ?= gcc
+MOC = ${QTDIR}/bin/moc1
+Cxx ?= g++
+
+INCFLAGS = -I${QTDIR}/include/X11/qt1 -I${QTDIR}/include
+CxxFLAGS ?= -Wall #-pipe
+CFLAGS ?= -Wall #-pipe
+#OPT = -g
+#DEFINES =
# FILES
HEADERS= iconview.hh menus.hh icon.hh dirbar.hh icondesk.hh deskicon.hh
@@ -50,28 +51,21 @@
MOBJS= Miconview.o Mmenus.o Micon.o Mdirbar.o Micondesk.o Msfm.o Mdeskicon.o
-LIBDIR=-L${QTDIR}/lib -L/usr/X11/lib
+LIBDIR=-L${QTDIR}/lib
jafm : $(OBJS) $(MOBJS)
- $(Cxx) $(CxxLFAGS) -o jafm $(OBJS) $(MOBJS) $(LIBDIR) -lqt -lX11 -lXext
+ $(Cxx) $(CxxLFAGS) -o jafm $(OBJS) $(MOBJS) $(LIBDIR) -lqt1 -lX11 -lXext
# must do this properly next time...
install: jafm
- mkdir -p -m 755 $(JAFMDIR)
- mkdir -p -m 755 $(INSTALLDIR)/bin
- mkdir -p -m 755 $(APPLDIR)
- mkdir -p -m 755 $(ZICDIR)
- cp system.jafmrules $(JAFMDIR)/system.jafmrules
- chmod 755 $(JAFMDIR)/system.jafmrules
- cp jafm $(INSTALLDIR)/bin/jafm
- chmod 755 $(INSTALLDIR)/bin/jafm
- cp zic/*.zic $(ZICDIR)
- chmod 644 $(ZICDIR)/*
- cp appl/* $(APPLDIR)
- chmod 644 $(APPLDIR)/*
- mkdir -p -m 755 $(INSTALLDIR)/man/man8
- cp jafm.8 $(INSTALLDIR)/man/man8
- chmod 644 $(INSTALLDIR)/man/man8/jafm.8
+ mkdir -p $(JAFMDIR)
+ mkdir -p $(APPLDIR)
+ mkdir -p $(ZICDIR)
+ ${BSD_INSTALL_DATA} system.jafmrules $(JAFMDIR)/system.jafmrules
+ ${BSD_INSTALL_PROGRAM} jafm $(INSTALLDIR)/bin/jafm
+ ${BSD_INSTALL_DATA} zic/*.zic $(ZICDIR)
+ ${BSD_INSTALL_DATA} appl/* $(APPLDIR)
+ ${BSD_INSTALL_MAN} jafm.8 $(INSTALLDIR)/man/man8
dep: $(MSOURCES)
makedepend -I. -I$(QTDIR)/include $(SOURCES) $(MSOURCES) >/dev/null 2>&1

View File

@ -0,0 +1,11 @@
--- icon.cc.orig Sat Feb 26 19:38:06 2000
+++ icon.cc Sat Feb 26 19:38:17 2000
@@ -914,7 +914,7 @@
instructions = 0 ;
realSize = 0 ;
- static bug = 0 ;
+ static int bug = 0 ;
// okay, parse the file
// error checking is s.e.p.

View File

@ -0,0 +1,21 @@
--- zicon.y.orig Wed Sep 24 00:09:52 1997
+++ zicon.y Sat Feb 26 19:51:35 2000
@@ -3,6 +3,7 @@
/* we pass a pointer to the painter into the */
#define YYPARSE_PARAM p
+#include <stdlib.h>
#include "icon.hh"
#define PROGRAM ((IconProgram *)p)
@@ -13,6 +14,10 @@
int bufAlloc = 160 ;
short int *buffer = new short int[bufAlloc] ;
+extern int yyerror(char *);
+extern "C" {
+ extern int yylex(void);
+};
%}

View File

@ -0,0 +1,37 @@
--- icondesk.cc.orig Sat Feb 26 19:43:45 2000
+++ icondesk.cc Sat Feb 26 19:45:22 2000
@@ -29,6 +29,7 @@
#include <iostream.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <ctype.h>
#include <errno.h>
#include <dirent.h>
@@ -526,7 +527,7 @@
it.current()->set_embossed (false) ;
}
- dragDropIcon->drag_drop_action (dic_list) ; // do it
+ dragDropIcon->drag_drop_action ((QListT<DeskIcon> &)dic_list) ; // do it
unHighlightDragDrop () ;
emit signal_refresh () ; // unnecessary, but can make things look zippier
@@ -831,7 +832,7 @@
// ok, now has a file been added?
dir_pointer = opendir (".") ;
- while (dp = readdir (dir_pointer)) {
+ while ((dp = readdir (dir_pointer))) {
if (!strcmp (".", dp->d_name) ||
!strcmp ("..", dp->d_name))
continue ;
@@ -925,7 +926,7 @@
QListIterator<Icon> it (*icon_list) ;
for ( ; it.current() ; ++it) {
if (it.current()->get_label() == f.fileName()) {
- it.current()->new_file_info (newf) ;
+ it.current()->new_file_info ((QFileInfo &)newf) ;
single_repaint (it.current()) ;
return ;
}

View File

@ -0,0 +1,20 @@
--- deskicon.cc.orig Sat Feb 26 19:45:43 2000
+++ deskicon.cc Sat Feb 26 19:46:48 2000
@@ -90,7 +90,7 @@
ShapeSet) ;
// setGeometry (icon->rect()) ; // Qt doesn't know we used XShape!
// make room for label
- QRect *r = &icon->get_label_rect () ;
+ QRect *r = (QRect *)&icon->get_label_rect () ;
QBitmap bm (r->width(), r->height()) ;
QPainter p (&bm) ;
p.fillRect (0,0,r->width(),r->height(), color1) ;
@@ -177,7 +177,7 @@
{
// if WId is us, act accordingly
if (winId() == w) {
- icon->drag_drop_action (diList) ;
+ icon->drag_drop_action ((QListT<DeskIcon> &)diList) ;
icon->set_drag_drop (false) ;
repaint () ;
}

View File

@ -0,0 +1,11 @@
--- sfm.hh.orig Sat Feb 26 19:36:10 2000
+++ sfm.hh Sat Feb 26 19:48:53 2000
@@ -59,7 +59,7 @@
void slot_refresh () ;
- void dragPointAt (const QPoint &p, const QList<DeskIcon> & =0) ;
+ void dragPointAt (const QPoint &p, const QList<DeskIcon> &) ;
void dragDropRelease (const QPoint &, const QList<DeskIcon> &) ;
} ;

1
x11-fm/jafm/pkg-comment Normal file
View File

@ -0,0 +1 @@
Yet another file manager!

8
x11-fm/jafm/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
This is not Just Another File Manager! jafm supports drag and drop
amongst itself and onto the desktop. Right now it uses qt, but the
author is now in the process of converting it to gtk.
WWW: http://www-personal.usyd.edu.au/~rlittlew/jafm/
Brett Taylor
brett@peloton.physics.montana.edu

30
x11-fm/jafm/pkg-plist Normal file
View File

@ -0,0 +1,30 @@
bin/jafm
share/jafm/appl/Applications
share/jafm/zic/core.zic
share/jafm/zic/trash.zic
share/jafm/zic/targz.zic
share/jafm/zic/skip.zic
share/jafm/zic/rubbish.zic
share/jafm/zic/printer2.zic
share/jafm/zic/printer.zic
share/jafm/zic/print.zic
share/jafm/zic/people.zic
share/jafm/zic/pencil.zic
share/jafm/zic/old-exec.zic
share/jafm/zic/object.zic
share/jafm/zic/null.zic
share/jafm/zic/netscape.zic
share/jafm/zic/netsc.zic
share/jafm/zic/nav.zic
share/jafm/zic/mail.zic
share/jafm/zic/folder.zic
share/jafm/zic/exec.zic
share/jafm/zic/edit.zic
share/jafm/zic/doc.zic
share/jafm/zic/dir.zic
share/jafm/zic/cswap.zic
share/jafm/zic/try.zic
share/jafm/system.jafmrules
@dirrm share/jafm/zic
@dirrm share/jafm/appl
@dirrm share/jafm