a1b7c39eb5
Don't redirect errors to /dev/null and don't return true(1) unconditionally. Instead, don't check for the existence of index.theme. This will allow us to catch errors that may be happening because of a missing dependency in the chain. Some hidden issues may appear, in which case please contact me. discussed with and ok blind jasper@
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.27 2012/06/15 08:32:17 ajacoutot Exp $
|
|
|
|
COMMENT= lightweight PDF document viewer
|
|
|
|
DISTNAME= epdfview-0.1.8
|
|
REVISION= 3
|
|
CATEGORIES= print
|
|
HOMEPAGE= http://trac.emma-soft.com/epdfview/
|
|
|
|
MAINTAINER= Brynet <brynet@gmail.com>
|
|
|
|
MASTER_SITES= ${HOMEPAGE}chrome/site/releases/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
|
WANTLIB += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 c cairo
|
|
WANTLIB += drm expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
|
|
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
|
|
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
WANTLIB += pixman-1 png poppler poppler-glib pthread pthread-stubs
|
|
WANTLIB += stdc++ xcb xcb-render xcb-shm z
|
|
|
|
MODULES= devel/gettext
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
x11/gtk+2,-guic
|
|
LIB_DEPENDS= x11/gtk+2 \
|
|
print/poppler>=0.16
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
FLAVORS= cups
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mcups}
|
|
WANTLIB+= asn1 crypto cups>=3 gssapi krb5 ssl
|
|
LIB_DEPENDS+= print/cups>=1.2
|
|
CONFIGURE_ARGS+= --with-cups
|
|
.else
|
|
CONFIGURE_ARGS+= --without-cups
|
|
.endif
|
|
|
|
ICONDIR=$(PREFIX)/share/icons/hicolor
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${ICONDIR}/{24x24,32x32,48x48}/apps
|
|
for i in 24 32 48; do \
|
|
${INSTALL_DATA} ${WRKSRC}/data/icon_epdfview-$${i}.png \
|
|
${ICONDIR}/$${i}x$${i}/apps/epdfview.png; \
|
|
done
|
|
|
|
.include <bsd.port.mk>
|