openbsd-ports/print/epdfview/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

2008-05-19 05:57:43 -04:00
# $OpenBSD: Makefile,v 1.9 2008/05/19 09:57:44 fgsch Exp $
COMMENT= lightweight PDF document viewer
DISTNAME= epdfview-0.1.6
2008-05-19 05:57:43 -04:00
PKGNAME= ${DISTNAME}p5
CATEGORIES= print
HOMEPAGE= http://trac.emma-soft.com/epdfview/
MAINTAINER= Vlad Glagolev <stealth@sourcemage.org>
MASTER_SITES= ${HOMEPAGE}chrome/site/releases/
EXTRACT_SUFX= .tar.bz2
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= Xau Xcomposite Xcursor Xdamage Xdmcp Xfixes Xi Xinerama \
Xrandr X11 Xext Xrender atk-1.0 c cairo fontconfig freetype \
glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0 \
2008-05-19 05:57:43 -04:00
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png \
pthread stdc++ z expat
MODULES= devel/gettext
2007-12-15 16:43:03 -05:00
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS= gtk-x11-2.0.>=0.14,gdk-x11-2.0.>=0.14,gdk_pixbuf-2.0.>=0.14::x11/gtk+2 \
poppler.>=3,poppler-glib.>=3::print/poppler
CONFIGURE_STYLE=gnu
USE_X11= Yes
USE_GMAKE= Yes
FLAVORS= cups
FLAVOR?=
.if ${FLAVOR:L:Mcups}
WANTLIB+= crypto ssl
LIB_DEPENDS+= cups.>=3: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>