mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
5572c35664
PR: 162023 Submitted by: bf Feature safe: yes
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# New ports collection makefile for: fltk
|
|
# Date created: 11 February 1999
|
|
# Whom: Dima Sivachenko <dima@Chg.RU>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fltk
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= x11-toolkits
|
|
MASTER_SITES= ${MASTER_SITE_EASYSW}
|
|
MASTER_SITE_SUBDIR= fltk/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= Cross-platform C++ graphical user interface toolkit
|
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg
|
|
|
|
USE_LDCONFIG= yes
|
|
USE_XORG= xft
|
|
USE_GL= gl glu
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--enable-threads \
|
|
--enable-shared \
|
|
--enable-xft
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${WRKSRC}/src -L${LOCALBASE}/lib
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAN1= fltk-config.1 fluid.1
|
|
MAN3= fltk.3
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '30s/test //' ${WRKSRC}/Makefile
|
|
prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \
|
|
${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \
|
|
${WRKSRC}/src/Fl_Preferences.cxx
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
post-install:
|
|
cd ${WRKSRC}/documentation && ${MAKE} docinstall
|
|
cd ${WRKSRC}/test && ${MAKE} install
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|