2018-10-12 14:10:06 +00:00
|
|
|
# $NetBSD$
|
|
|
|
|
2019-04-10 07:51:44 +00:00
|
|
|
DISTNAME= fltk-1.4.x
|
2018-10-12 14:10:06 +00:00
|
|
|
CATEGORIES= x11
|
2019-10-09 15:07:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=fltk/}
|
2020-10-14 13:14:53 +00:00
|
|
|
GITHUB_TAG= f718943e6fbcf89297e61466068405452d7f8ae6
|
2019-04-10 07:51:44 +00:00
|
|
|
EXTRACT_SUFX= .zip
|
2018-10-12 14:10:06 +00:00
|
|
|
|
2020-05-12 08:41:26 +00:00
|
|
|
MAINTAINER= micha@NetBSD.org
|
2020-01-27 19:56:27 +00:00
|
|
|
HOMEPAGE= https://www.fltk.org/
|
2018-10-12 14:10:06 +00:00
|
|
|
COMMENT= Fast Light Tool Kit for graphical user interfaces
|
|
|
|
LICENSE= gnu-lgpl-v2
|
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_LIBTOOL= yes
|
2020-07-16 12:19:22 +00:00
|
|
|
USE_TOOLS+= autoconf gmake nroff pkg-config
|
2019-10-16 13:42:59 +00:00
|
|
|
# Doesn't run tests, only build them (because they are GUI programs)
|
2018-10-12 14:10:06 +00:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-libtool=${LIBTOOL:Q}
|
2019-10-25 08:09:54 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-nanosvg
|
2019-10-18 16:16:39 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-print
|
2019-10-21 10:17:46 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
2018-10-12 14:10:06 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2019-10-18 16:16:39 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-xcursor
|
|
|
|
CONFIGURE_ARGS+= --enable-xfixes
|
|
|
|
CONFIGURE_ARGS+= --enable-xrender
|
2018-10-12 14:10:06 +00:00
|
|
|
|
2019-10-25 08:09:54 +00:00
|
|
|
# Use pkgsrc versions of libraries, not package's bundled versions
|
2019-10-21 10:17:46 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-localjpeg
|
|
|
|
CONFIGURE_ARGS+= --disable-localpng
|
|
|
|
CONFIGURE_ARGS+= --disable-localzlib
|
|
|
|
|
2019-10-25 11:01:21 +00:00
|
|
|
.include "options.mk"
|
|
|
|
|
2019-10-21 10:17:46 +00:00
|
|
|
# Create symlinks for common misspellings of headerfile names
|
|
|
|
# (if filesystem is case-sensitive)
|
2018-10-12 14:10:06 +00:00
|
|
|
PLIST_VARS+= cs # case-sensitive
|
|
|
|
.if !exists(./descr) && ${OPSYS} != "Darwin"
|
|
|
|
CONFIGURE_ARGS+= --with-links
|
|
|
|
PLIST.cs= yes
|
|
|
|
.endif
|
|
|
|
|
2019-10-21 10:17:46 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# No documentation where and why this was needed for FLTK 1.3 package
|
|
|
|
# => Comment out for tests. Reenabled if problem still exists.
|
|
|
|
#CONFIGURE_ARGS+= ac_cv_have_overlay=yes
|
|
|
|
# ------------------------------------------------------
|
2018-10-12 14:10:06 +00:00
|
|
|
|
2019-10-16 11:38:56 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Clean the source tree first for snapshots
|
|
|
|
# (CPPFLAGS/LDFLAGS are for modular X)
|
2019-10-21 10:17:46 +00:00
|
|
|
# => Remove this section for release version
|
2018-10-12 14:10:06 +00:00
|
|
|
pre-configure:
|
2019-10-16 11:38:56 +00:00
|
|
|
cd ${WRKSRC} && autoconf
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
CPPFLAGS="-I ${PREFIX}/include" LDFLAGS="-L ${PREFIX}/lib" \
|
|
|
|
${GMAKE} ${MAKE_FLAGS} clean
|
|
|
|
# ------------------------------------------------------
|
2018-10-12 14:10:06 +00:00
|
|
|
|
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|