1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/x11-toolkits/fltk-devel/Makefile
Dmitry Marakasov b5256e1eb9 - Fix build with clang 6
- Pet portlint
2018-07-12 14:11:30 +00:00

48 lines
1.3 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= fltk
DISTVERSION= 1.3.x-r${SNAPSHOT_VERS}
PORTREVISION= 4
CATEGORIES= x11-toolkits
MASTER_SITES= http://fltk.org/pub/${PORTNAME}/snapshots/
PKGNAMESUFFIX= -devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform C++ graphical user interface toolkit
LICENSE= LGPL20
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
USES= cmake:outsource jpeg
USE_XORG= xft
USE_GL= glu
USE_LDCONFIG= ${PREFIX}/lib/fltk-devel
CMAKE_ARGS= -DOPTION_BUILD_SHARED_LIBS:BOOL=ON \
-DPREFIX_BIN:PATH=${PREFIX}/bin/fltk-devel \
-DPREFIX_DATA:PATH=${PREFIX}/share/fltk-devel \
-DPREFIX_DOC:PATH=${PREFIX}/share/examples/fltk-devel \
-DPREFIX_INCLUDE:PATH=${PREFIX}/include/fltk-devel \
-DPREFIX_LIB:PATH=${PREFIX}/lib/fltk-devel
CXXFLAGS+= -Wno-c++11-narrowing
LDFLAGS+= -L${LOCALBASE}/lib
SNAPSHOT_VERS= 10370
PORTEXAMPLES= *
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
PORTSCOUT= limit:1.3.*
OPTIONS_DEFINE= EXAMPLES
EXAMPLES_CMAKE_OFF= -DOPTION_BUILD_EXAMPLES:BOOL=OFF
post-install:
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/fltk-config ${STAGEDIR}${PREFIX}/bin/fltk-devel
${LN} -sf fltk-devel/libfltk.so ${STAGEDIR}${PREFIX}/lib/libfltk-devel.so
.include <bsd.port.mk>