1 # Created by: Dima Sivachenko <dima@Chg.RU>
6 CATEGORIES= x11-toolkits
7 MASTER_SITES= http://fltk.org/pub/${PORTNAME}/${PORTVERSION}/
8 DISTNAME= ${PORTNAME}-${PORTVERSION}-source
10 MAINTAINER= gahr@FreeBSD.org
11 COMMENT= Cross-platform C++ graphical user interface toolkit
17 LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
18 libjpeg.so:${PORTSDIR}/graphics/jpeg
25 CONFIGURE_ARGS+=--enable-threads \
29 CPPFLAGS+= -I${LOCALBASE}/include
30 LDFLAGS+= -L${WRKSRC}/src -L${LOCALBASE}/lib
32 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
36 .include <bsd.port.options.mk>
39 prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \
40 ${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \
41 ${WRKSRC}/src/Fl_Preferences.cxx
43 .if ${PORT_OPTIONS:MDOCS}
45 cd ${WRKSRC}/documentation && ${MAKE} ${MAKE_ARGS} docinstall
46 cd ${WRKSRC}/test && ${MAKE} ${MAKE_ARGS} install
49 .include <bsd.port.mk>