summaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2004-03-12 20:48:04 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2004-03-12 20:48:04 +0000
commitf7d7822118904b655aaa04fa943895bc20f462cf (patch)
tree31581f9fbebe71085b82d0ac19d3160a51beeeb5 /x11-toolkits
parentSince asami's directory on MASTER_SITE_LOCAL has disappeared, stow (diff)
Miscellaneous clean-up, drop maintainership.
PR: 64031 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Notes
Notes: svn path=/head/; revision=103813
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/fl_editor/Makefile28
-rw-r--r--x11-toolkits/fl_editor/files/patch-Makefile.in35
-rw-r--r--x11-toolkits/fl_editor/files/patch-src::Fl_ProgressBox.cxx11
-rw-r--r--x11-toolkits/fl_editor/pkg-plist46
4 files changed, 78 insertions, 42 deletions
diff --git a/x11-toolkits/fl_editor/Makefile b/x11-toolkits/fl_editor/Makefile
index 666a95ed1a12..40a7cde5b31e 100644
--- a/x11-toolkits/fl_editor/Makefile
+++ b/x11-toolkits/fl_editor/Makefile
@@ -7,46 +7,58 @@
PORTNAME= fl_editor
PORTVERSION= 0.4.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits
MASTER_SITES= http://robertk.com/source/fl_editor/
EXTRACT_SUFX= .tgz
-MAINTAINER= cyrille.lefevre@laposte.net
+MAINTAINER= ports@FreeBSD.org
COMMENT= Text Editor Widgets for the Fast Light ToolKit
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
+USE_REINPLACE= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LIBS="${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --enable-shared --with-fltk=${PREFIX}
+CONFIGURE_ARGS= --enable-shared --with-fltk=${LOCALBASE}
USE_GMAKE= yes
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_SUB= INCSDIR="${INCSDIR:S,^${PREFIX}/,,}" \
+ LIBSDIR="${LIBSDIR:S,^${PREFIX}/,,}"
+REINPLACE_SUB= PREFIX=${PREFIX}
+
+INCSDIR= ${PREFIX}/include/FL
+LIBSDIR= ${PREFIX}/lib
+
DOC_FILES= documentation/*.html documentation/*.jpg
INC1_FILES= Fl_Editor.H Fl_FancyEditor.H Fl_FancyMultiEditor.H \
Fl_MultiEditor.H Fl_ProgressBox.H Fl_StatusPanel.H
INC2_FILES= editengine.h editvars.h lists.h stringsup.h wstring.h
-INC_SUBDIR= include/FL
LIB_FILES= libfleditor.so.1
-LIB_SUBDIR= lib
+
+post-patch: patch-inplace
+
+patch-inplace:
+ @${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${WRKSRC}/Makefile.in
post-install: symlink-inc symlink-lib install-doc
symlink-inc:
.for file in ${INC1_FILES}
- @${LN} -fs ${file} ${PREFIX}/${INC_SUBDIR}/${file:R}.${file:E:L}
+ @${LN} -fs ${file} ${INCSDIR}/${file:R}.${file:E:L}
.endfor
.for file in ${INC2_FILES}
- @${LN} -fs ${file} ${PREFIX}/${INC_SUBDIR}/${file:R}.${file:E:U}
+ @${LN} -fs ${file} ${INCSDIR}/${file:R}.${file:E:U}
.endfor
symlink-lib:
.for file in ${LIB_FILES}
- @${LN} -fs ${file} ${PREFIX}/${LIB_SUBDIR}/${file:R}
+ @${LN} -fs ${file} ${LIBSDIR}/${file:R}
.endfor
install-doc:
diff --git a/x11-toolkits/fl_editor/files/patch-Makefile.in b/x11-toolkits/fl_editor/files/patch-Makefile.in
index a143488cd077..96b192280c4d 100644
--- a/x11-toolkits/fl_editor/files/patch-Makefile.in
+++ b/x11-toolkits/fl_editor/files/patch-Makefile.in
@@ -1,6 +1,18 @@
---- Makefile.in.orig Wed Jan 10 00:11:24 2001
-+++ Makefile.in Sat Aug 18 09:03:39 2001
-@@ -40,14 +40,19 @@
+--- Makefile.in.orig Fri Jun 14 23:12:25 2002
++++ Makefile.in Wed Mar 10 02:08:47 2004
+@@ -23,7 +23,10 @@
+ DSONAME = @DSOLIBNAME@@DSOEXT@
+ GLLIB = @GLLIB@
+ FLTKROOT = @ac_fltk_root@
+-FLTKLIBDIR = @ac_fltk_libraries@
++FLTKLIBDIR = %%PREFIX%%/lib
++FLTKINCDIR = %%PREFIX%%/include/FL
++MKDIR = mkdir -p
++INSTALL_DATA = ${BSD_INSTALL_DATA}
+
+ #
+ # Program options...
+@@ -40,14 +43,19 @@
#
.SILENT:
@@ -22,7 +34,7 @@
#
-@@ -62,7 +67,7 @@
+@@ -62,7 +70,7 @@
# Make all targets...
#
@@ -31,19 +43,20 @@
#
# Remove object and target files...
-@@ -86,7 +91,10 @@
+@@ -86,7 +94,11 @@
install: libfleditor.a
echo "Installing library to $(FLTKLIBDIR)"
- cp libfleditor.a $(FLTKLIBDIR)
-+ rm -f $(FLTKLIBDIR)/libfleditor.*
-+ cp libfleditor.a $(DSONAME) $(FLTKLIBDIR)
-+ echo "Installing headers to $(FLTKROOT)/include/FL"
-+ cp FL/*.[Hh] $(FLTKROOT)/include/FL
++ ${RM} -f $(FLTKLIBDIR)/libfleditor.*
++ ${INSTALL_DATA} libfleditor.a $(DSONAME) $(FLTKLIBDIR)
++ echo "Installing headers to $(FLTKINCDIR)"
++ ${MKDIR} -p $(FLTKINCDIR)
++ ${INSTALL_DATA} FL/*.[Hh] $(FLTKINCDIR)
#
# Make the test programs.
-@@ -122,6 +130,7 @@
+@@ -122,6 +134,7 @@
EDITOR_OBJS = src/Fl_Editor.o src/Fl_FancyEditor.o src/Fl_FancyMultiEditor.o \
src/Fl_MultiEditor.o src/Fl_ProgressBox.o src/Fl_StatusPanel.o \
src/editengine.o src/lists.o src/wstring.o
@@ -51,7 +64,7 @@
libfleditor.a: $(EDITOR_OBJS)
echo Building library $@...
-@@ -129,15 +138,14 @@
+@@ -129,15 +142,14 @@
$(AR) $(ARFLAGS) libfleditor.a $(EDITOR_OBJS)
$(RANLIB) libfleditor.a
diff --git a/x11-toolkits/fl_editor/files/patch-src::Fl_ProgressBox.cxx b/x11-toolkits/fl_editor/files/patch-src::Fl_ProgressBox.cxx
new file mode 100644
index 000000000000..d03be684634a
--- /dev/null
+++ b/x11-toolkits/fl_editor/files/patch-src::Fl_ProgressBox.cxx
@@ -0,0 +1,11 @@
+--- src/Fl_ProgressBox.cxx.orig Wed Jun 19 17:51:02 2002
++++ src/Fl_ProgressBox.cxx Wed Mar 10 07:58:26 2004
+@@ -47,7 +47,7 @@
+ fl_draw(buffer, (w() - fl_width(buffer))/2, fl_height() + (((h() - 2*bdy) - fl_height())/2));
+ #else
+ fl_font(this->labelfont(), this->labelsize());
+- fl_draw(buffer, x() + (w() - fl_width(buffer))/2, y() + fl_height() + (((h() - 2*bdy) - fl_height())/2));
++ fl_draw(buffer, int(x() + (w() - fl_width(buffer))/2), int(y() + fl_height() + (((h() - 2*bdy) - fl_height())/2)));
+ #endif
+ }
+ }
diff --git a/x11-toolkits/fl_editor/pkg-plist b/x11-toolkits/fl_editor/pkg-plist
index 72f4f042d5d9..3a3a463f3db5 100644
--- a/x11-toolkits/fl_editor/pkg-plist
+++ b/x11-toolkits/fl_editor/pkg-plist
@@ -1,48 +1,48 @@
@comment $FreeBSD$
-include/FL/Fl_Editor.H
+%%INCSDIR%%/Fl_Editor.H
@exec ln -fs %f %B/Fl_Editor.h
@unexec rm -f %B/Fl_Editor.h
-include/FL/Fl_FancyEditor.H
+%%INCSDIR%%/Fl_FancyEditor.H
@exec ln -fs %f %B/Fl_FancyEditor.h
@unexec rm -f %B/Fl_FancyEditor.h
-include/FL/Fl_FancyMultiEditor.H
+%%INCSDIR%%/Fl_FancyMultiEditor.H
@exec ln -fs %f %B/Fl_FancyMultiEditor.h
@unexec rm -f %B/Fl_FancyMultiEditor.h
-include/FL/Fl_MultiEditor.H
+%%INCSDIR%%/Fl_MultiEditor.H
@exec ln -fs %f %B/Fl_MultiEditor.h
@unexec rm -f %B/Fl_MultiEditor.h
-include/FL/Fl_ProgressBox.H
+%%INCSDIR%%/Fl_ProgressBox.H
@exec ln -fs %f %B/Fl_ProgressBox.h
@unexec rm -f %B/Fl_ProgressBox.h
-include/FL/Fl_StatusPanel.H
+%%INCSDIR%%/Fl_StatusPanel.H
@exec ln -fs %f %B/Fl_StatusPanel.h
@unexec rm -f %B/Fl_StatusPanel.h
-include/FL/editengine.h
+%%INCSDIR%%/editengine.h
@exec ln -fs %f %B/editengine.H
@unexec rm -f %B/editengine.H
-include/FL/editvars.h
+%%INCSDIR%%/editvars.h
@exec ln -fs %f %B/editvars.H
@unexec rm -f %B/editvars.H
-include/FL/lists.h
+%%INCSDIR%%/lists.h
@exec ln -fs %f %B/lists.H
@unexec rm -f %B/lists.H
-include/FL/stringsup.h
+%%INCSDIR%%/stringsup.h
@exec ln -fs %f %B/stringsup.H
@unexec rm -f %B/stringsup.H
-include/FL/wstring.h
+%%INCSDIR%%/wstring.h
@exec ln -fs %f %B/wstring.H
@unexec rm -f %B/wstring.H
-lib/libfleditor.a
-lib/libfleditor.so.1
+%%LIBSDIR%%/libfleditor.a
+%%LIBSDIR%%/libfleditor.so.1
@exec ln -fs %f %B/libfleditor.so
@unexec rm -f %B/libfleditor.so
-%%PORTDOCS%%share/doc/fl_editor/Fl_Editor.html
-%%PORTDOCS%%share/doc/fl_editor/Fl_Editor.jpg
-%%PORTDOCS%%share/doc/fl_editor/Fl_FancyEditor.html
-%%PORTDOCS%%share/doc/fl_editor/Fl_FancyEditor.jpg
-%%PORTDOCS%%share/doc/fl_editor/Fl_FancyMultiEditor.html
-%%PORTDOCS%%share/doc/fl_editor/Fl_MultiEditor.html
-%%PORTDOCS%%share/doc/fl_editor/Fl_StatusPanel.html
-%%PORTDOCS%%share/doc/fl_editor/Fl_StatusPanel.jpg
-%%PORTDOCS%%share/doc/fl_editor/index.html
-%%PORTDOCS%%@dirrm share/doc/fl_editor
+%%PORTDOCS%%%%DOCSDIR%%/Fl_Editor.html
+%%PORTDOCS%%%%DOCSDIR%%/Fl_Editor.jpg
+%%PORTDOCS%%%%DOCSDIR%%/Fl_FancyEditor.html
+%%PORTDOCS%%%%DOCSDIR%%/Fl_FancyEditor.jpg
+%%PORTDOCS%%%%DOCSDIR%%/Fl_FancyMultiEditor.html
+%%PORTDOCS%%%%DOCSDIR%%/Fl_MultiEditor.html
+%%PORTDOCS%%%%DOCSDIR%%/Fl_StatusPanel.html
+%%PORTDOCS%%%%DOCSDIR%%/Fl_StatusPanel.jpg
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%