pkgsrc/x11/fltk13/Makefile
micha 378aa28f4a x11/fltk13: Update to 1.3.7
This release does not contain new "ABI features". The ABI (Application
Binary Interface) is 100% compatible with releases 1.3.5 and 1.3.6.

CHANGES IN FLTK 1.3.7                            RELEASED: Jul 25 2021

FLTK 1.3.7 is a maintenance release for macOS only. It fixes one
regression introduced in FLTK 1.3.6 and two long standing timer
issues on macOS.

Other platforms than macOS are not concerned.

Changes:

  Avoid premature FL_RELEASE event at start of drag-n-drop operation
  Fix a timer inconsistency and prevent a crash
  Fl::add_timeout() must always create a new timer (#248)
2021-07-26 11:00:33 +00:00

81 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2021/07/26 11:00:33 micha Exp $
DISTNAME= fltk-1.3.7-source
PKGNAME= ${DISTNAME:S/-source//}
VERS= ${DISTNAME:S/fltk-//:S/-source//}
CATEGORIES= x11
MASTER_SITES= https://fltk.org/pub/fltk/${VERS}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.fltk.org/
COMMENT= Fast Light Tool Kit for graphical user interfaces
LICENSE= gnu-lgpl-v2
WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake nroff pkg-config
TEST_TARGET= test
PKG_OPTIONS_VAR= PKG_OPTIONS.fltk13
PKG_SUPPORTED_OPTIONS= opengl # cairo
PKG_SUGGESTED_OPTIONS= opengl # cairo
#PLIST_VARS+= cairo
PLIST_VARS+= opengl
.include "../../mk/bsd.options.mk"
PTHREAD_OPTS+= require
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # --enable-libtool is not officially known,
# it is added partly in patch-ac.
CONFIGURE_ARGS+= --enable-libtool=${LIBTOOL:Q}
CONFIGURE_ARGS+= --enable-threads
CONFIGURE_ARGS+= ac_cv_have_overlay=yes
PLIST_VARS+= cs # case-sensitive
.if !exists(./descr) && ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --with-links
PLIST.cs= yes
.endif
#.if !empty(PKG_OPTIONS:Mcairo)
#. include "../../graphics/cairo/buildlink3.mk"
#CONFIGURE_ARGS+= --enable-cairo
#PLIST.cairo= yes
#.else
#CONFIGURE_ARGS+= --disable-cairo
#.endif
.if !empty(PKG_OPTIONS:Mopengl)
. if ${OPSYS} != "Darwin"
. include "../../graphics/MesaLib/buildlink3.mk"
. include "../../graphics/glu/buildlink3.mk"
. endif
CONFIGURE_ARGS+= --enable-gl
PLIST.opengl= yes
.else
CONFIGURE_ARGS+= --disable-gl
.endif
CONFIGURE_ARGS+= --enable-shared
# Use pkgsrc versions, not package's bundled versions.
CONFIGURE_ARGS+= --disable-localjpeg --disable-localzlib --disable-localpng
.if ${OPSYS} != "Darwin"
. include "../../x11/libXcursor/buildlink3.mk"
. include "../../x11/libXext/buildlink3.mk"
. include "../../x11/libXft/buildlink3.mk"
. include "../../x11/libXinerama/buildlink3.mk"
. include "../../fonts/fontconfig/buildlink3.mk"
. include "../../x11/libX11/buildlink3.mk"
. include "../../x11/libXrender/buildlink3.mk"
. include "../../x11/libXfixes/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXt?= build
. include "../../x11/libXt/buildlink3.mk"
.endif
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"