1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11-toolkits/fltk/Makefile
Alexey Dokuchaev 7377e0c9be - Update FLTK to version 1.3.5 which brings many new features,
bug fixes, and adaptations to new compilers
- Switch to the smaller .tar.bz2 distfile and make a few implicit
  dependencies explicit (as reported by `stage-qa')
- Rename `test/help' demo program to `test/help_dialog' in order
  to unbreak against upcomig `devel/ninja' update to version 1.9.0
- The ABI is 100% compatible with the previous version so no port
  revision bumps are necessary for consumer ports
- Chase HTTP redirection in the MASTER_SITES and WWW: line

PR:	235507 (ninja-related)
2019-03-11 16:45:26 +00:00

56 lines
1.5 KiB
Makefile

# Created by: Dima Sivachenko <dima@Chg.RU>
# $FreeBSD$
PORTNAME= fltk
PORTVERSION= 1.3.5
CATEGORIES= x11-toolkits
MASTER_SITES= https://www.fltk.org/pub/${PORTNAME}/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= danfe@FreeBSD.org
COMMENT= Cross-platform C++ graphical user interface toolkit
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libfontconfig.so:x11-fonts/fontconfig
USES= gl jpeg localbase pkgconfig tar:bz2
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender
USE_GL= gl glu
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ENV= NROFF=echo
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
post-extract:
@${MV} ${WRKSRC}/test/help.cxx ${WRKSRC}/test/help_dialog.cxx
@${MV} ${WRKSRC}/test/help-test.html ${WRKSRC}/test/help_dialog.html
post-patch: .SILENT
prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \
${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \
${WRKSRC}/src/Fl_Preferences.cxx
${REINPLACE_CMD} -e 's,$$(docdir)/examples,${EXAMPLESDIR},' \
${WRKSRC}/test/Makefile
${REINPLACE_CMD} -e '/^INSTALL_BIN/s,-m,${STRIP} &, ; \
s,^\.SILENT,#&,' ${WRKSRC}/makeinclude.in
${REINPLACE_CMD} -E \
's,(.*)LDFLAGS(.*)LINKSHARED(.*),\1LINKSHARED\2LDFLAGS\3,' \
${WRKSRC}/fluid/Makefile
post-install:
.for x in fltk fltk_forms fltk_gl fltk_images
${LN} -sf lib${x}.so.${PORTVERSION:R} \
${STAGEDIR}${PREFIX}/lib/lib${x}.so.1
.endfor
.include <bsd.port.mk>