blob: c488c1aa521944f8a2f5e7736b7f7c3e9a85504b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: djview
# Date created: 2007-02-13
# Whom: Stanislav Sedov <stas@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= djview
PORTVERSION= 4.4
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/djvu
DISTNAME= ${PORTNAME}4-${PORTVERSION}
MAINTAINER= stas@FreeBSD.org
COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
LIB_DEPENDS= djvulibre.22:${PORTSDIR}/graphics/djvulibre-nox11
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig gnometarget
USE_QT_VER= 4
QT_COMPONENTS= gui network rcc_build uic_build moc_build qmake_build
QT_NONSTANDARD= yes
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \
--x-libraries="${X11BASE}/lib"
CONFIGURE_ENV= QMAKE="${LOCALBASE}/bin/qmake-qt4" \
QMAKESPEC="${QMAKESPEC}" \
CFLAGS="-I${LOCALBASE}/include" \
CXXFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
WRKSRC= ${WRKDIR}/${PORTNAME}4-${PORTVERSION}
.if defined(CXX) && ${CXX:M*icc}
QMAKESPEC?= freebsd-icc
.else
QMAKESPEC?= freebsd-g++
.endif
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>
|