2007-02-14 16:20:00 +00:00
|
|
|
# New ports collection makefile for: djview
|
|
|
|
# Date created: 2007-02-13
|
|
|
|
# Whom: Stanislav Sedov <stas@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= djview
|
2012-04-22 20:37:35 +00:00
|
|
|
PORTVERSION= 4.9
|
2012-06-13 04:49:48 +00:00
|
|
|
PORTREVISION= 2
|
2007-02-14 16:20:00 +00:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/djvu/DjView/${PORTVERSION}
|
2007-02-14 16:20:00 +00:00
|
|
|
|
2011-10-24 03:33:20 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-02-14 16:20:00 +00:00
|
|
|
COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
|
|
|
|
|
2011-11-01 17:50:23 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-13 04:49:48 +00:00
|
|
|
LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre
|
2007-02-14 16:20:00 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4= gui network rcc_build uic_build moc_build qmake_build
|
2012-07-26 05:40:22 +00:00
|
|
|
USE_PKGCONFIG= yes
|
2008-08-04 23:33:44 +00:00
|
|
|
QT_NONSTANDARD= yes
|
2012-01-16 18:35:03 +00:00
|
|
|
CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" \
|
|
|
|
--x-libraries="${LOCALBASE}/lib"
|
2007-02-14 16:20:00 +00:00
|
|
|
CONFIGURE_ENV= QMAKE="${LOCALBASE}/bin/qmake-qt4" \
|
2011-09-23 22:26:39 +00:00
|
|
|
QMAKESPEC="${QMAKESPEC}"
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2007-02-14 16:20:00 +00:00
|
|
|
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
|
|
|
2012-04-22 20:37:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}/djview4-${PORTVERSION}
|
|
|
|
|
2007-02-14 16:20:00 +00:00
|
|
|
MAN1= djview4.1 nsdejavu.1
|
|
|
|
MLINKS= djview4.1 djview.1
|
|
|
|
|
2009-01-10 02:45:46 +00:00
|
|
|
USE_WEBPLUGINS= gecko*
|
|
|
|
WEBPLUGINS_DIR= ${PREFIX}/lib/djview4/plugins
|
|
|
|
WEBPLUGINS_FILES= nsdejavu.so
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
|
|
|
|
|
2007-02-14 16:20:00 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
|
|
|
|
${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
|
2008-08-02 16:24:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \
|
2009-01-10 02:45:46 +00:00
|
|
|
${WRKSRC}/nsdejavu/Makefile.in
|
2007-02-14 16:20:00 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
2009-01-10 02:45:46 +00:00
|
|
|
.include <bsd.port.post.mk>
|