1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/graphics/djview4/Makefile
Tobias C. Berner 15b928e04e graphics/djview4: remove QT4/QT5 options (Qt4 deprecation)
Approved by:	portmgr (implicit)
2019-03-16 15:57:33 +00:00

56 lines
1.7 KiB
Makefile

# Created by: Stanislav Sedov <stas@FreeBSD.org>
# $FreeBSD$
PORTNAME= djview
PORTVERSION= 4.10.6
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/djvu/DjView/${PORTVERSION:R}
MAINTAINER= ports@FreeBSD.org
COMMENT= Standalone Djvu viewer and plugin based on Qt toolkit
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre \
libtiff.so:graphics/tiff
INSTALL_TARGET= install-strip
GNU_CONFIGURE= yes
USES= autoreconf desktop-file-utils gettext-runtime gmake libtool \
localbase pkgconfig qt:5 webplugin:native
USE_GL= gl
USE_QT= core gui network opengl printsupport widgets \
buildtools_build linguisttools_build qmake_build
USE_XORG= sm ice xext xt
USE_GNOME= glib20
CONFIGURE_ENV= LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}"
WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins
WEBPLUGIN_FILES= nsdejavu.so
post-patch:
# Use prebuilt icons, without using conversion tool
@${REINPLACE_CMD} -e 's/conversion_tool=[[:alpha:]]*/conversion_tool=no/' \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e \
'/CXXFLAGS=$$/s|^|#| ; \
/CFLAGS=$$/s|^|#| ; \
s|$$OPTS -O2|$$OPTS|' ${WRKSRC}/config/acinclude.m4
@${REINPLACE_CMD} -e \
's|FLAGS+=|FLAGS_RELEASE=|' ${WRKSRC}/src/Makefile.am
# Change plugins directory
# Add GLIB cflags and libs (including -lX*)
@${REINPLACE_CMD} -e '/^pluginsdir/s/mozilla/djview4/ ; \
/NSDEJAVU_CFLAGS/s|$$| $$(GLIB_CFLAGS)| ; \
/NSDEJAVU_LIBS/s|$$| $$(GLIB_LIBS) -lXt -lXext|' \
${WRKSRC}/nsdejavu/Makefile.am
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/djview
# Create a symbolic link to match desktop file exec name
${LN} -sf djview ${STAGEDIR}${PREFIX}/bin/djview4
.include <bsd.port.mk>