freebsd-ports/devel/qt4-libqtassistantclient/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

52 lines
1.7 KiB
Makefile

# Created by: lofi@FreeBSD.org
# $FreeBSD$
PORTNAME= libQtAssistantClient
PORTVERSION= 4.6.3
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= QT
PKGNAMEPREFIX= qt4-
DISTNAME= qt-assistant-qassistantclient-library-compat-src-${PORTVERSION}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt documentation browser integration module
USE_QT4= moc_build rcc_build corelib gui network
USES= qmake
QMAKE_ARGS= CONFIG+="create_prl link_prl" VERSION="${PORTVERSION}"
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
ALL_TARGET= first
DESCR= ${.CURDIR:H:H}/devel/qt4/pkg-descr
WRKSRC= ${WRKDIR}/${DISTNAME:C/src/version/}/lib
pre-configure:
${REINPLACE_CMD} -e 's|$$$$\[QT_INSTALL_HEADERS]|${PREFIX}/${QT_INCDIR_REL}|g' \
-e 's|$$$$\[QT_INSTALL_LIBS]|${PREFIX}/${QT_LIBDIR_REL}|g' \
${WRKSRC}/lib.pro
post-configure:
${REINPLACE_CMD} -e 's|${PREFIX}/${QT_LIBDIR_REL}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
-e 's|.*$$(QMAKE).*||g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -E -e 's|-L.[^[:space:]]*qt-x11-opensource.[^[:space:]]*lib||g' \
-E -e 's|(.*location=).*moc|\1${PREFIX}/${QT_BINDIR_REL}/${MOC:T}|g' \
${WRKSRC}/lib/pkgconfig/QtAssistantClient.pc
pre-build:
${MKDIR} ${WRKSRC}/QtAssistant
${CP} ${WRKSRC}/qassistantclient_global.h \
${WRKSRC}/QtAssistant
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtAssistant
${INSTALL_DATA} ${FILESDIR}/QAssistantClient ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtAssistant
${INSTALL_DATA} ${FILESDIR}/QtAssistant ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtAssistant
${MKDIR} ${STAGEDIR}${PREFIX}/${QT_MKSPECDIR_REL}/features
${INSTALL_DATA} ${WRKSRC:H}/features/assistant.prf ${STAGEDIR}${PREFIX}/${QT_MKSPECDIR_REL}/features
.include <bsd.port.mk>