1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/cad/librecad/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

54 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= librecad
DISTVERSION= 2.2.0-rc1
PORTREVISION= 2
CATEGORIES= cad
MAINTAINER= jhale@FreeBSD.org
COMMENT= 2D CAD system
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/licenses/gpl-2.0.txt
BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:devel/boost-libs
LIB_DEPENDS= libmuparser.so:math/muparser \
libfreetype.so:print/freetype2
USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake qt:5
USE_GITHUB= yes
GH_ACCOUNT= LibreCAD
GH_PROJECT= LibreCAD
USE_GL= gl
USE_QT= core gui printsupport svg widgets \
buildtools_build linguisttools_build
QMAKE_ARGS+= BOOST_DIR="${LOCALBASE}"
post-patch:
@${REINPLACE_CMD} -e 's|QMAKE_CXXFLAGS += -g||' \
${WRKSRC}/common.pri
@${REINPLACE_CMD} -e 's|lrelease|${LRELEASE}|' \
${WRKSRC}/scripts/postprocess-unix.sh
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${WRKSRC}/librecad/src/lib/engine/rs_settings.cpp \
${WRKSRC}/librecad/src/lib/engine/rs_system.cpp
pre-install:
@${CHMOD} +w ${WRKSRC}/unix/resources/plugins/*.so
@${STRIP_CMD} ${WRKSRC}/unix/resources/plugins/*.so
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/unix/ttf2lff ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${PREFIX}/share/metainfo
${INSTALL_DATA} ${WRKSRC}/unix/appdata/librecad.appdata.xml \
${STAGEDIR}${PREFIX}/share/metainfo
${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \
${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/librecad/res/main/librecad.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.mk>