freebsd-ports/print/qt5-printsupport/Makefile
Tobias C. Berner 93b90c42e3 Only define USE_LDCONFIG in devel/qt5-core
All the qt5-ports share the same library directory. devel/qt5-core is dependet on
by all others.
So there is no need to add identical entries to libdata/ldconfig, and restart the
ldconfig service on every pkg change of those ports.

Reported by:	bapt
Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D27224
2020-11-21 18:18:34 +00:00

58 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= printsupport
DISTVERSION= ${QT5_VERSION}
PORTREVISION= 1
CATEGORIES= print
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt print support module
USES= compiler:c++11-lang qmake:no_env qt-dist:5,base
USE_QT= core gui widgets qmake_build buildtools_build
HAS_CONFIGURE= yes
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
OPTIONS_DEFINE= CUPS
OPTIONS_DEFAULT=CUPS
OPTIONS_SUB= yes
CUPS_CONFIGURE_ON= -cups
CUPS_CONFIGURE_OFF= -no-cups
CUPS_LIB_DEPENDS= libcups.so:print/cups
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCUPS}
QT_DEFINES+= CUPS
QT_CONFIG+= cups
MORE_WRKSRCS+= src/plugins/printsupport
.else
QT_DEFINES+= -CUPS
QT_CONFIG+= -cups
.endif
post-configure:
.for d in src/printsupport ${MORE_WRKSRCS}
${MKDIR} ${WRKSRC}/${d}
cd ${WRKSRC}/${d} && ${SETENV} ${QMAKE_ENV} ${_QMAKE} ${QMAKE_ARGS} ${WRKSRC}/${d}
.endfor
post-build:
.if ${PORT_OPTIONS:MCUPS}
@cd ${WRKSRC}/src/plugins/${PORTNAME}/cups && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
.endif
post-install:
.if ${PORT_OPTIONS:MCUPS}
@cd ${WRKSRC}/src/plugins/${PORTNAME}/cups && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET}
.endif
.include <bsd.port.mk>