openbsd-ports/print/epdfview/Makefile

61 lines
1.5 KiB
Makefile
Raw Normal View History

2010-10-24 16:58:58 -04:00
# $OpenBSD: Makefile,v 1.19 2010/10/24 21:32:39 ajacoutot Exp $
COMMENT= lightweight PDF document viewer
DISTNAME= epdfview-0.1.7
2010-10-11 04:11:24 -04:00
REVISION= 6
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+= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB+= Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig
WANTLIB+= freetype gdk-x11-2.0.>=0.14 gdk_pixbuf-2.0.>=0.14 gio-2.0 glib-2.0
2010-10-11 04:11:24 -04:00
WANTLIB+= gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0.>=0.14 m
WANTLIB+= pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png poppler.>=3
WANTLIB+= poppler-glib.>=3 pthread pthread-stubs stdc++ xcb xcb-render
WANTLIB+= xcb-render-util z
MODULES= devel/gettext
RUN_DEPENDS= ::devel/desktop-file-utils
LIB_DEPENDS= ::x11/gtk+2 \
::print/poppler
CONFIGURE_STYLE=gnu
USE_GMAKE= Yes
FLAVORS= cups
FLAVOR?=
.if ${FLAVOR:L:Mcups}
WANTLIB+= asn1 crypto cups.>=3 gssapi krb5 ssl
LIB_DEPENDS+= :cups->=1.2:print/cups
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>