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
|
2011-03-31 08:39:53 +00:00
|
|
|
PORTVERSION= 4.7
|
|
|
|
PORTREVISION= 0
|
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
|
|
|
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
|
|
COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
|
|
|
|
|
2011-03-31 08:39:53 +00:00
|
|
|
LIB_DEPENDS= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
|
2007-02-14 16:20:00 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2011-08-11 19:20:17 +00:00
|
|
|
USE_GNOME= pkgconfig
|
2007-03-07 18:23:48 +00:00
|
|
|
USE_QT_VER= 4
|
2009-05-18 11:28:15 +00:00
|
|
|
QT_COMPONENTS= gui network rcc_build uic_build moc_build qmake_build
|
2008-08-04 23:33:44 +00:00
|
|
|
QT_NONSTANDARD= yes
|
2009-06-10 07:09:35 +00:00
|
|
|
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \
|
|
|
|
--x-libraries="${X11BASE}/lib"
|
2007-02-14 16:20:00 +00:00
|
|
|
CONFIGURE_ENV= QMAKE="${LOCALBASE}/bin/qmake-qt4" \
|
2007-03-07 18:23:48 +00:00
|
|
|
QMAKESPEC="${QMAKESPEC}" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
CXXFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2007-02-14 16:20:00 +00:00
|
|
|
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
|
|
|
|
|
|
.if defined(CXX) && ${CXX:M*icc}
|
|
|
|
QMAKESPEC?= freebsd-icc
|
|
|
|
.else
|
|
|
|
QMAKESPEC?= freebsd-g++
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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>
|