ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# Created by: giffunip
|
|
# $FreeBSD$
|
|
# $MCom: ports/devel/lasi/Makefile,v 1.1 2006/10/04 20:25:40 ahze Exp $
|
|
|
|
PORTNAME= lasi
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source
|
|
DISTNAME= libLASi-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= C++ stream output interface for creating Postscript documents
|
|
|
|
LIB_DEPENDS= libltdl.so:devel/libltdl
|
|
|
|
OPTIONS_DEFINE= DOXYGEN EXAMPLES
|
|
OPTIONS_SUB= yes
|
|
|
|
USES= cmake compiler:c++11-lang gnome pathfix pkgconfig
|
|
PATHFIX_CMAKELISTSTXT= pkg-config.cmake
|
|
USE_GNOME= pango
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_DATADIR:PATH=${DATADIR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:devel/doxygen
|
|
.else
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cmake+modules+lasi.cmake
|
|
.endif
|
|
|
|
pre-install:
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
|
@${REINPLACE_CMD} 's/^\(add_subdirectory(examples)\)/#\1/' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
|
|
post-install:
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/libLASi.so.1.0.0 \
|
|
${STAGEDIR}${PREFIX}/lib/libLASi.so.1
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@${MV} ${STAGEDIR}${DATADIR}/doc/* ${STAGEDIR}${DOCSDIR}/
|
|
@${RMDIR} ${STAGEDIR}${DATADIR}/doc
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@${MV} ${STAGEDIR}${DATADIR}/examples/* ${STAGEDIR}${EXAMPLESDIR}/
|
|
@${RMDIR} ${STAGEDIR}${DATADIR}/examples
|
|
.endif
|
|
.if ! ${PORT_OPTIONS:MDOXYGEN} && ! ${PORT_OPTIONS:MEXAMPLES}
|
|
@${RM} -r ${STAGEDIR}${DATADIR}/*
|
|
.endif
|
|
@${TEST} -d ${STAGEDIR}${DATADIR} && \
|
|
${RMDIR} ${STAGEDIR}${DATADIR} || ${TRUE}
|
|
|
|
.include <bsd.port.mk>
|