1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/print/qt5-printsupport/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

59 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= printsupport
DISTVERSION= ${QT5_VERSION}
CATEGORIES= print
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt print support module
USES= qmake:no_env qt-dist:5,base
USE_QT= core gui widgets qmake_build buildtools_build
HAS_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
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>