wilfried d2f742606d Update to fleditor-0.4.4 (bugfix release)
+  Update to work with FLTK 1.1 and latest 2.x CVS.
+  Added workaround for strange focus behaviour when scrolling with
   the scrollbar.  The text widget gets an unfocus when the scrollbar
   is clicked, but then when you click back on the text, instead
   of it getting a focus event, it gets another unfocus.  This makes
   the cursor remain invisible when it shouldn't.
*  Fixes to scrollbar handling.
*  Fixed status panel on Fl_FancyEditor (positioning problem).
2002-08-10 20:04:16 +00:00

62 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2002/08/10 20:04:16 wilfried Exp $
COMMENT= 'Text Editor for FLTK'
V= 0.4.4
DISTNAME= fl_editor-${V}
PKGNAME= fleditor-${V}
CATEGORIES= x11
HOMEPAGE= http://www.robertk.com/source/
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
# LPGL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.robertk.com/source/fl_editor/
EXTRACT_SUFX= .tgz
LIB_DEPENDS= fltk.1::x11/fltk
USE_X11= Yes
REGRESS_TARGET= test
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--with-fltk=${LOCALBASE}
WRKDIST= ${WRKDIR}/fl_editor
# This regression test wants an X11 display
REGRESS_FLAGS+= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
REGRESS_IS_INTERACTIVE= Yes
post-patch:
@rmdir ${WRKSRC}/obj
pre-regress:
.for t in DISPLAY XAUTHORITY
.if !defined($t)
@echo "$t needs to be set to run regress"; exit 1
.endif
.endfor
do-install:
@${install_shared_frag}
${INSTALL_DATA} ${WRKBUILD}/libfleditor.a ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/include/FL
${INSTALL_DATA} ${WRKSRC}/FL/*.[Hh] ${PREFIX}/include/FL
.include <bsd.port.mk>
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
install_shared_frag= :
.else
install_shared_frag=\
${INSTALL_DATA} ${WRKBUILD}/libfleditor.so* ${PREFIX}/lib
.endif