Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/graphics/djview4/Makefile 400947 2015-11-06 17:11:34Z rm $ |
2 |
# $FreeBSD: head/graphics/djview4/Makefile 400947 2015-11-06 17:11:34Z rm $ |
3 |
|
3 |
|
4 |
PORTNAME= djview |
4 |
PORTNAME= djview |
5 |
PORTVERSION= 4.10.3 |
5 |
PORTVERSION= 4.10.6 |
6 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
7 |
MASTER_SITES= SF/djvu/DjView/${PORTVERSION:R} |
7 |
MASTER_SITES= SF/djvu/DjView/${PORTVERSION:R} |
8 |
|
8 |
|
Lines 16-58
Link Here
|
16 |
LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre \ |
16 |
LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre \ |
17 |
libtiff.so:${PORTSDIR}/graphics/tiff |
17 |
libtiff.so:${PORTSDIR}/graphics/tiff |
18 |
|
18 |
|
19 |
INSTALL_TARGET= install-strip |
|
|
20 |
GNU_CONFIGURE= yes |
21 |
USES= autoreconf desktop-file-utils gmake libtool pkgconfig \ |
19 |
USES= autoreconf desktop-file-utils gmake libtool pkgconfig \ |
22 |
webplugin:native |
20 |
webplugin:native |
|
|
21 |
USE_GL= gl |
23 |
USE_XORG= sm ice xt |
22 |
USE_XORG= sm ice xt |
24 |
CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" \ |
23 |
GNU_CONFIGURE= yes |
25 |
--x-libraries="${LOCALBASE}/lib" |
|
|
26 |
CONFIGURE_ENV= LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}" |
24 |
CONFIGURE_ENV= LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}" |
|
|
25 |
MAKE_ENV= V=1 |
26 |
INSTALL_TARGET= install-strip |
27 |
|
27 |
|
28 |
CPPFLAGS+= -I${LOCALBASE}/include |
28 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
LDFLAGS+= -L${LOCALBASE}/lib |
29 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" |
|
|
31 |
|
30 |
|
32 |
WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins |
31 |
WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins |
33 |
WEBPLUGIN_FILES= nsdejavu.so |
32 |
WEBPLUGIN_FILES= nsdejavu.so |
34 |
|
33 |
|
35 |
OPTIONS_SINGLE= QT |
34 |
OPTIONS_SINGLE= TOOLKIT |
36 |
OPTIONS_SINGLE_QT= QT4 QT5 |
35 |
OPTIONS_SINGLE_TOOLKIT= QT4 QT5 |
37 |
OPTIONS_DEFAULT= QT5 |
36 |
OPTIONS_DEFAULT= QT5 |
38 |
|
37 |
|
39 |
QT4_USE= QT4=gui,network,opengl,linguisttools_build,moc_build,qmake_build,rcc_build,uic_build |
38 |
QT4_USE= qt4=gui,network,opengl \ |
40 |
QT5_USE= QT5=gui,network,opengl,printsupport,widgets,buildtools_build,linguisttools_build,qmake_build |
39 |
qt4=linguisttools_build,moc_build,qmake_build \ |
41 |
|
40 |
qt4=rcc_build,uic_build |
42 |
post-patch: .SILENT |
41 |
QT5_USE= qt5=gui,network,opengl,printsupport,widgets \ |
|
|
42 |
qt5=buildtools_build,linguisttools_build,qmake_build |
43 |
TOOLKIT_DESC= Qt toolkit |
44 |
|
45 |
post-patch: |
46 |
@${REINPLACE_CMD} -e \ |
47 |
'/CXXFLAGS=$$/s|^|#| ; \ |
48 |
/CFLAGS=$$/s|^|#| ; \ |
49 |
s|$$OPTS -O2|$$OPTS|' ${WRKSRC}/config/acinclude.m4 |
50 |
@${REINPLACE_CMD} -e \ |
51 |
's|FLAGS+=|FLAGS_RELEASE=|' ${WRKSRC}/src/Makefile.am |
43 |
# Change plugins directory |
52 |
# Change plugins directory |
44 |
# Add GLIB cflags and libs (including -lX*) |
53 |
# Add GLIB cflags and libs (including -lX*) |
45 |
${REINPLACE_CMD} -e '/^pluginsdir/s/mozilla/djview4/ ; \ |
54 |
@${REINPLACE_CMD} -e \ |
46 |
/NSDEJAVU_CFLAGS/s|$$| $$\(GLIB_CFLAGS\)| ; \ |
55 |
'/^pluginsdir/s|mozilla|djview4| ; \ |
47 |
/NSDEJAVU_LIBS/s|$$| $$\(GLIB_LIBS\) -lXt -lXext|' \ |
56 |
/NSDEJAVU_CFLAGS/s|$$| $$(GLIB_CFLAGS)| ; \ |
|
|
57 |
/NSDEJAVU_LIBS/s|$$| $$(GLIB_LIBS) -lXext -lXt|' \ |
48 |
${WRKSRC}/nsdejavu/Makefile.am |
58 |
${WRKSRC}/nsdejavu/Makefile.am |
49 |
|
59 |
|
50 |
post-install: |
60 |
post-install: |
51 |
# Changing file write permissions needed to strip a file installed as a script |
61 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/djview |
52 |
${CHMOD} +w ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
|
|
53 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
54 |
${CHMOD} -w ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
55 |
# Create a symbolic link to match desktop file exec name |
62 |
# Create a symbolic link to match desktop file exec name |
56 |
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf ${PORTNAME} ${PORTNAME}4) |
63 |
${LN} -sf djview ${STAGEDIR}${PREFIX}/bin/djview4 |
57 |
|
64 |
|
58 |
.include <bsd.port.mk> |
65 |
.include <bsd.port.mk> |