Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2001 04:45:12 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29861: New port: x11-toolkits/fl_editor (0.4)
Message-ID:  <200108190245.f7J2jC351988@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         29861
>Category:       ports
>Synopsis:       New port: x11-toolkits/fl_editor (0.4)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 18 19:50:28 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
ACME
>Environment:

FreeBSD gits 4.3-STABLE FreeBSD 4.3-STABLE #28: Wed Jul 25 09:04:25 CEST 2001     root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM  i386

>Description:

	A word-wrapping text editor widget for FLTK (Fast Light ToolKit).
	Supports CUA-style editing keys, automatic scrollbar, load and
	save to file or buffer, and more.  Includes subclasses with status
	display, find and replace, etc.  Also includes a couple of utility
	widgets -- a status panel, and a progress bar.

	http://robertk.com/source/

	This port is required by the mysql-gui port.

>How-To-Repeat:

	n/a

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fl_editor/pkg-comment
#	fl_editor/pkg-plist
#	fl_editor/distinfo
#	fl_editor/Makefile
#	fl_editor/pkg-descr
#	fl_editor/files/patch-configure
#	fl_editor/files/patch-Makefile.in
#
echo x - fl_editor/pkg-comment
sed 's/^X//' >fl_editor/pkg-comment << 'END-of-fl_editor/pkg-comment'
XText Editor Widgets for the Fast Light ToolKit
END-of-fl_editor/pkg-comment
echo x - fl_editor/pkg-plist
sed 's/^X//' >fl_editor/pkg-plist << 'END-of-fl_editor/pkg-plist'
X@comment $FreeBSD$
Xinclude/FL/Fl_Editor.H
X@exec ln -fs %f %B/Fl_Editor.h
X@unexec rm -f %B/Fl_Editor.h
Xinclude/FL/Fl_FancyEditor.H
X@exec ln -fs %f %B/Fl_FancyEditor.h
X@unexec rm -f %B/Fl_FancyEditor.h
Xinclude/FL/Fl_FancyMultiEditor.H
X@exec ln -fs %f %B/Fl_FancyMultiEditor.h
X@unexec rm -f %B/Fl_FancyMultiEditor.h
Xinclude/FL/Fl_MultiEditor.H
X@exec ln -fs %f %B/Fl_MultiEditor.h
X@unexec rm -f %B/Fl_MultiEditor.h
Xinclude/FL/Fl_ProgressBox.H
X@exec ln -fs %f %B/Fl_ProgressBox.h
X@unexec rm -f %B/Fl_ProgressBox.h
Xinclude/FL/Fl_StatusPanel.H
X@exec ln -fs %f %B/Fl_StatusPanel.h
X@unexec rm -f %B/Fl_StatusPanel.h
Xinclude/FL/editengine.h
X@exec ln -fs %f %B/editengine.H
X@unexec rm -f %B/editengine.H
Xinclude/FL/editvars.h
X@exec ln -fs %f %B/editvars.H
X@unexec rm -f %B/editvars.H
Xinclude/FL/lists.h
X@exec ln -fs %f %B/lists.H
X@unexec rm -f %B/lists.H
Xinclude/FL/stringsup.h
X@exec ln -fs %f %B/stringsup.H
X@unexec rm -f %B/stringsup.H
Xinclude/FL/wstring.h
X@exec ln -fs %f %B/wstring.H
X@unexec rm -f %B/wstring.H
Xlib/libfleditor.a
Xlib/libfleditor.so.1
X@exec ln -fs %f %B/libfleditor.so
X@unexec rm -f %B/libfleditor.so
X%%PORTDOCS%%share/doc/fl_editor/Fl_Editor.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_Editor.jpg
X%%PORTDOCS%%share/doc/fl_editor/Fl_FancyEditor.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_FancyEditor.jpg
X%%PORTDOCS%%share/doc/fl_editor/Fl_FancyMultiEditor.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_MultiEditor.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_ProgressBox.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_ProgressBox.jpg
X%%PORTDOCS%%share/doc/fl_editor/Fl_StatusPanel.html
X%%PORTDOCS%%share/doc/fl_editor/Fl_StatusPanel.jpg
X%%PORTDOCS%%share/doc/fl_editor/index.html
END-of-fl_editor/pkg-plist
echo x - fl_editor/distinfo
sed 's/^X//' >fl_editor/distinfo << 'END-of-fl_editor/distinfo'
XMD5 (fl_editor-0.4.tar.gz) = 56b06f1351c33f4f5a147cad22bfb68b
END-of-fl_editor/distinfo
echo x - fl_editor/Makefile
sed 's/^X//' >fl_editor/Makefile << 'END-of-fl_editor/Makefile'
X# New ports collection makefile for: fl_editor
X# Date created:		17 August 2001
X# Whom:			Cyrille Lefevre <clefevre@citeweb.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fl_editor
XPORTVERSION=	0.4
XCATEGORIES=	x11-toolkits
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	mirrors/mysql/Downloads/mysqlgui
XMAINTAINER=	clefevre@citeweb.net
X
XLIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk
X
XUSE_X_PREFIX=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
X		LIBS="${PTHREAD_LIBS}"
XCONFIGURE_ARGS=	--enable-shared --with-fltk=${PREFIX}
XUSE_GMAKE=	yes
XINSTALLS_SHLIB=	yes
X
XDOC_FILES=	documentation/*.html documentation/*.jpg
XDOC_SUBDIR=	share/doc/${PKGBASE}
XINC1_FILES=	Fl_Editor.H Fl_FancyEditor.H Fl_FancyMultiEditor.H \
X		Fl_MultiEditor.H Fl_ProgressBox.H Fl_StatusPanel.H
XINC2_FILES=	editengine.h editvars.h lists.h stringsup.h wstring.h
XINC_SUBDIR=	include/FL
XLIB_FILES=	libfleditor.so.1
XLIB_SUBDIR=	lib
X
Xpost-install: symlink-inc symlink-lib install-doc
X
Xsymlink-inc:
X.for file in ${INC1_FILES}
X	@${LN} -fs ${file} ${PREFIX}/${INC_SUBDIR}/${file:R}.${file:E:L}
X.endfor
X.for file in ${INC2_FILES}
X	@${LN} -fs ${file} ${PREFIX}/${INC_SUBDIR}/${file:R}.${file:E:U}
X.endfor
X
Xsymlink-lib:
X.for file in ${LIB_FILES}
X	@${LN} -fs ${file} ${PREFIX}/${LIB_SUBDIR}/${file:E}
X.endfor
X
Xinstall-doc:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/${DOC_SUBDIR}
X.for file in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${DOC_SUBDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-fl_editor/Makefile
echo x - fl_editor/pkg-descr
sed 's/^X//' >fl_editor/pkg-descr << 'END-of-fl_editor/pkg-descr'
XA word-wrapping text editor widget for FLTK (Fast Light ToolKit).
XSupports CUA-style editing keys, automatic scrollbar, load and
Xsave to file or buffer, and more.  Includes subclasses with status
Xdisplay, find and replace, etc.  Also includes a couple of utility
Xwidgets -- a status panel, and a progress bar.
X
XWWW: http://robertk.com/source/
END-of-fl_editor/pkg-descr
echo x - fl_editor/files/patch-configure
sed 's/^X//' >fl_editor/files/patch-configure << 'END-of-fl_editor/files/patch-configure'
X--- configure.orig	Sat Aug 18 07:28:57 2001
X+++ configure	Sat Aug 18 07:30:32 2001
X@@ -1406,27 +1406,31 @@
X fi
X 
X 
X-echo $ac_n "checking for numericsort in -lfltk""... $ac_c" 1>&6
X-echo "configure:1411: checking for numericsort in -lfltk" >&5
X-ac_lib_var=`echo fltk'_'numericsort | sed 'y%./+-%__p_%'`
X+
X+
X+GLLIB=
X+echo $ac_n "checking for glXMakeCurrent in -lGL""... $ac_c" 1>&6
X+echo "configure:1460: checking for glXMakeCurrent in -lGL" >&5
X+ac_lib_var=`echo GL'_'glXMakeCurrent | sed 'y%./+-%__p_%'`
X if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
X   echo $ac_n "(cached) $ac_c" 1>&6
X else
X   ac_save_LIBS="$LIBS"
X-LIBS="-lfltk  $LIBS"
X+LIBS="-lGL \
X+    -lX11 -lXext $X_EXTRA_LIBS -lm $LIBS"
X cat > conftest.$ac_ext <<EOF
X-#line 1419 "configure"
X+#line 1469 "configure"
X #include "confdefs.h"
X /* Override any gcc2 internal prototype to avoid an error.  */
X /* We use char because int might match the return type of a gcc2
X     builtin and then its argument prototype would still apply.  */
X-char numericsort();
X+char glXMakeCurrent();
X 
X int main() {
X-numericsort()
X+glXMakeCurrent()
X ; return 0; }
X EOF
X-if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X+if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X   rm -rf conftest*
X   eval "ac_cv_lib_$ac_lib_var=yes"
X else
X@@ -1441,31 +1445,24 @@
X fi
X if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
X   echo "$ac_t""yes" 1>&6
X-    ac_tr_lib=HAVE_LIB`echo fltk | sed -e 's/[^a-zA-Z0-9_]/_/g' \
X-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
X-  cat >> confdefs.h <<EOF
X-#define $ac_tr_lib 1
X+  cat >> confdefs.h <<\EOF
X+#define HAVE_GL 1
X EOF
X-
X-  LIBS="-lfltk $LIBS"
X-
X+ GLLIB=" -lGLU -lGL"
X else
X   echo "$ac_t""no" 1>&6
X-fi
X-
X-
X-GLLIB=
X-echo $ac_n "checking for glXMakeCurrent in -lGL""... $ac_c" 1>&6
X-echo "configure:1460: checking for glXMakeCurrent in -lGL" >&5
X-ac_lib_var=`echo GL'_'glXMakeCurrent | sed 'y%./+-%__p_%'`
X+\
X+    echo $ac_n "checking for glXMakeCurrent in -lMesaGL""... $ac_c" 1>&6
X+echo "configure:1503: checking for glXMakeCurrent in -lMesaGL" >&5
X+ac_lib_var=`echo MesaGL'_'glXMakeCurrent | sed 'y%./+-%__p_%'`
X if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
X   echo $ac_n "(cached) $ac_c" 1>&6
X else
X   ac_save_LIBS="$LIBS"
X-LIBS="-lGL \
X-    -lX11 -lXext $X_EXTRA_LIBS -lm $LIBS"
X+LIBS="-lMesaGL \
X+	-lX11 -lXext $X_EXTRA_LIBS -lm $LIBS"
X cat > conftest.$ac_ext <<EOF
X-#line 1469 "configure"
X+#line 1512 "configure"
X #include "confdefs.h"
X /* Override any gcc2 internal prototype to avoid an error.  */
X /* We use char because int might match the return type of a gcc2
X@@ -1476,7 +1473,7 @@
X glXMakeCurrent()
X ; return 0; }
X EOF
X-if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X+if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X   rm -rf conftest*
X   eval "ac_cv_lib_$ac_lib_var=yes"
X else
X@@ -1494,32 +1491,36 @@
X   cat >> confdefs.h <<\EOF
X #define HAVE_GL 1
X EOF
X- GLLIB=" -lGLU -lGL"
X+ GLLIB=" -lMesaGLU -lMesaGL"
X else
X   echo "$ac_t""no" 1>&6
X-\
X-    echo $ac_n "checking for glXMakeCurrent in -lMesaGL""... $ac_c" 1>&6
X-echo "configure:1503: checking for glXMakeCurrent in -lMesaGL" >&5
X-ac_lib_var=`echo MesaGL'_'glXMakeCurrent | sed 'y%./+-%__p_%'`
X+fi
X+
X+fi
X+
X+
X+
X+echo $ac_n "checking for numericsort in -lfltk""... $ac_c" 1>&6
X+echo "configure:1411: checking for numericsort in -lfltk" >&5
X+ac_lib_var=`echo fltk'_'numericsort | sed 'y%./+-%__p_%'`
X if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
X   echo $ac_n "(cached) $ac_c" 1>&6
X else
X   ac_save_LIBS="$LIBS"
X-LIBS="-lMesaGL \
X-	-lX11 -lXext $X_EXTRA_LIBS -lm $LIBS"
X+LIBS="-lfltk $GLLIB $LIBS"
X cat > conftest.$ac_ext <<EOF
X-#line 1512 "configure"
X+#line 1419 "configure"
X #include "confdefs.h"
X /* Override any gcc2 internal prototype to avoid an error.  */
X /* We use char because int might match the return type of a gcc2
X     builtin and then its argument prototype would still apply.  */
X-char glXMakeCurrent();
X+char numericsort();
X 
X int main() {
X-glXMakeCurrent()
X+numericsort()
X ; return 0; }
X EOF
X-if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X+if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X   rm -rf conftest*
X   eval "ac_cv_lib_$ac_lib_var=yes"
X else
X@@ -1534,18 +1535,17 @@
X fi
X if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
X   echo "$ac_t""yes" 1>&6
X-  cat >> confdefs.h <<\EOF
X-#define HAVE_GL 1
X+    ac_tr_lib=HAVE_LIB`echo fltk | sed -e 's/[^a-zA-Z0-9_]/_/g' \
X+    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
X+  cat >> confdefs.h <<EOF
X+#define $ac_tr_lib 1
X EOF
X- GLLIB=" -lMesaGLU -lMesaGL"
X+
X+  LIBS="-lfltk $LIBS"
X+
X else
X   echo "$ac_t""no" 1>&6
X fi
X-
X-fi
X-
X-
X-
X 
X 
X 
END-of-fl_editor/files/patch-configure
echo x - fl_editor/files/patch-Makefile.in
sed 's/^X//' >fl_editor/files/patch-Makefile.in << 'END-of-fl_editor/files/patch-Makefile.in'
X--- Makefile.in.orig	Wed Jan 10 00:11:24 2001
X+++ Makefile.in	Sat Aug 18 09:03:39 2001
X@@ -30,8 +30,8 @@
X #
X 
X ARFLAGS	=	crvs
X-CFLAGS	=	-I. -I$(FLTKROOT) @CFLAGS@ @ac_fltk2@
X-CXXFLAGS =	-I. -I$(FLTKROOT) @CXXFLAGS@ @ac_fltk2@
X+CFLAGS	=	-I. @CFLAGS@ @ac_fltk2@
X+CXXFLAGS =	-I. @CXXFLAGS@ @ac_fltk2@
X LIBS	=	@ac_fltk_static@ -L$(FLTKROOT)/lib @LIBS@ -lXext -lX11 -lm @ac_fltk_dso@ $(GLLIB)
X LDFLAGS	=	@LDFLAGS@
X 
X@@ -40,14 +40,19 @@
X #
X 
X .SILENT:
X-.SUFFIXES:	.c .cxx .h .o
X+.SUFFIXES:	.c .cxx .h .o .lo
X .c.o:
X 	echo Compiling $<...
X 	$(CC) $(CFLAGS) -c $< -o $(<D)/$(basename $(<F)).o 
X .cxx.o:
X 	echo Compiling $<...
X-	echo $(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
X 	$(CXX) $(CXXFLAGS) -c $< -o $(<D)/$(basename $(<F)).o
X+.c.lo:
X+	echo Compiling $<...
X+	$(CC) $(CFLAGS) -fPIC -c $< -o $(<D)/$(basename $(<F)).lo
X+.cxx.lo:
X+	echo Compiling $<...
X+	$(CXX) $(CXXFLAGS) -fPIC -c $< -o $(<D)/$(basename $(<F)).lo
X 
X 
X #
X@@ -62,7 +67,7 @@
X # Make all targets...
X #
X 
X-all:	libfleditor.a $(DSONAME) test
X+all:	libfleditor.a $(DSONAME)
X 
X #
X # Remove object and target files...
X@@ -86,7 +91,10 @@
X 
X install: libfleditor.a
X 	echo "Installing library to $(FLTKLIBDIR)"
X-	cp libfleditor.a $(FLTKLIBDIR)	
X+	rm -f $(FLTKLIBDIR)/libfleditor.*
X+	cp libfleditor.a $(DSONAME) $(FLTKLIBDIR)	
X+	echo "Installing headers to $(FLTKROOT)/include/FL"
X+	cp FL/*.[Hh] $(FLTKROOT)/include/FL
X 
X #
X # Make the test programs.
X@@ -122,6 +130,7 @@
X EDITOR_OBJS = src/Fl_Editor.o src/Fl_FancyEditor.o src/Fl_FancyMultiEditor.o \
X         src/Fl_MultiEditor.o src/Fl_ProgressBox.o src/Fl_StatusPanel.o \
X         src/editengine.o src/lists.o src/wstring.o
X+EDITOR_SHOBJS = $(EDITOR_OBJS:.o=.lo)
X 
X libfleditor.a:	$(EDITOR_OBJS)
X 	echo Building library $@...
X@@ -129,15 +138,14 @@
X 	$(AR) $(ARFLAGS) libfleditor.a $(EDITOR_OBJS)
X 	$(RANLIB) libfleditor.a
X 
X-libfleditor.so:	$(EDITOR_OBJS)
X+$(DSONAME):	$(EDITOR_SHOBJS)
X 	echo Building library $@...
X-	$(RM) libfleditor.so
X-	@DSOCOMMAND@ @DSOLIBNAME@@DSOEXT@ $(EDITOR_OBJS)
X-#        echo $(DSOCOMMAND) $(DSONAME)
X-#	$(LD) -shared $(LDFLAGS) -o $@ $^ 
X+	$(RM) $(DSONAME)
X+	@DSOCOMMAND@ $(DSONAME) $(EDITOR_SHOBJS)
X 
X 
X $(EDITOR_OBJS):	$(INCLUDEDEPS)
X+$(EDITOR_SHOBJS):	$(INCLUDEDEPS)
X 
X #
X # End of Makefile.
END-of-fl_editor/files/patch-Makefile.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108190245.f7J2jC351988>