mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
9346b215f0
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# New ports collection makefile for: djview
|
|
# Date created: 2007-02-13
|
|
# Whom: Stanislav Sedov <stas@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= djview
|
|
PORTVERSION= 4.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/djvu/DjView/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_QT4= gui network rcc_build uic_build moc_build qmake_build
|
|
USE_PKGCONFIG= yes
|
|
QT_NONSTANDARD= yes
|
|
CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" \
|
|
--x-libraries="${LOCALBASE}/lib"
|
|
CONFIGURE_ENV= QMAKE="${LOCALBASE}/bin/qmake-qt4" \
|
|
QMAKESPEC="${QMAKESPEC}"
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
|
|
WRKSRC= ${WRKDIR}/djview4-${PORTVERSION}
|
|
|
|
MAN1= djview4.1 nsdejavu.1
|
|
MLINKS= djview4.1 djview.1
|
|
|
|
USE_WEBPLUGINS= gecko*
|
|
WEBPLUGINS_DIR= ${PREFIX}/lib/djview4/plugins
|
|
WEBPLUGINS_FILES= nsdejavu.so
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
|
|
${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
|
|
@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \
|
|
${WRKSRC}/nsdejavu/Makefile.in
|
|
|
|
post-install:
|
|
@${FIND} -ds ${PREFIX}/share/djvu/djview4/ ! -type d | \
|
|
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm share/djvu/djview4/desktop" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@dirrm share/djvu/djview4" >> ${TMPPLIST}
|
|
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/djvu 2>/dev/null || true" \
|
|
>> ${TMPPLIST}
|
|
|
|
.include <bsd.port.post.mk>
|