freebsd-ports/x11-toolkits/fltk/Makefile
Alexey Dokuchaev 97dcc0f3cc Remove `groff' from USES.
It was recently killed in the base system and consumers have to use
`textproc/groff' port now, which is a real PITA: it pulls in some
obscure dependencies like `print/psutils', `graphics/netpbm', but
most importantly, `ghostscript' (unconditionally), which is a huge
abomination of its own, pulling another round of dependencies, some
of which are as crazy as `graphics/svgalib' (sic).  Trying to reset
all offered knobs to `off' results in unbuildable package.

Pass NROFF as mere `echo' and be done with it.  Generated manpages
remain identical.
2017-11-22 11:06:43 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Dima Sivachenko <dima@Chg.RU>
# $FreeBSD$
PORTNAME= fltk
PORTVERSION= 1.3.4
CATEGORIES= x11-toolkits
MASTER_SITES= http://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
USES= jpeg localbase pkgconfig
USE_XORG= x11 xcursor xext xfixes xft xinerama
USE_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-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>