1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11-toolkits/fltk-devel/Makefile
Pietro Cerutti c8235314f0 - Update to snapshot 20221
Changelog:
  * http://www.fltk.org/articles.php?L1378
- Add LDFLAGS so libasound is found if installed [1]

PR:		191963 [1]
Submitted by:	Koichiro IWAO <meta+ports@vmeta.jp>
2014-07-21 12:13:12 +00:00

46 lines
1.2 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= fltk
DISTVERSION= 1.3.x-r${SNAPSHOT_VERS}
CATEGORIES= x11-toolkits
MASTER_SITES= http://fltk.org/pub/${PORTNAME}/snapshots/
PKGNAMESUFFIX= -devel
MAINTAINER= gahr@FreeBSD.org
COMMENT= Cross-platform C++ graphical user interface toolkit
LICENSE= LGPL20
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
OPTIONS_DEFINE= EXAMPLES
EXAMPLES_CMAKE_OFF= -DOPTION_BUILD_EXAMPLES:BOOL=OFF
USE_XORG= xft
USE_GL= glu
USE_LDCONFIG= ${PREFIX}/lib/fltk-devel
USES+= cmake:outsource
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS+= -DOPTION_BUILD_SHARED_LIBS:BOOL=ON \
-DOPTION_PREFIX_BIN:PATH=${PREFIX}/bin/fltk-devel \
-DOPTION_PREFIX_DATA:PATH=${PREFIX}/share/fltk-devel \
-DOPTION_PREFIX_DOC:PATH=${PREFIX}/share/examples/fltk-devel \
-DOPTION_PREFIX_INCLUDE:PATH=${PREFIX}/include/fltk-devel \
-DOPTION_PREFIX_LIB:PATH=${PREFIX}/lib/fltk-devel
SNAPSHOT_VERS= 10221
PORTEXAMPLES= *
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
PORTSCOUT= limit:1.3.*
post-install:
${LN} -sf fltk-devel/libfltk.so ${STAGEDIR}${PREFIX}/lib/libfltk-devel.so
.include <bsd.port.mk>