2013-04-26 18:39:14 +02:00
|
|
|
# Created by: chinsan <chinsan.tw@gmail.com>
|
2006-07-06 19:12:10 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= epdfview
|
2011-06-02 13:56:02 +02:00
|
|
|
PORTVERSION= 0.1.8
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 4
|
2006-07-06 19:12:10 +02:00
|
|
|
CATEGORIES= graphics print gnome
|
2006-10-07 19:10:14 +02:00
|
|
|
MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \
|
2009-08-30 00:11:31 +02:00
|
|
|
http://mirror.slitaz.org/sources/packages/e/
|
2006-07-06 19:12:10 +02:00
|
|
|
|
2009-11-27 23:52:30 +01:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2006-07-06 19:12:10 +02:00
|
|
|
COMMENT= A lightweight PDF document viewer
|
|
|
|
|
2011-11-12 01:24:15 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-05-03 18:18:03 +02:00
|
|
|
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
|
2011-10-31 10:53:19 +01:00
|
|
|
LIB_DEPENDS= poppler-glib.8:${PORTSDIR}/graphics/poppler-glib
|
2006-07-06 19:12:10 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
2013-09-02 23:16:30 +02:00
|
|
|
USES= iconv gmake pkgconfig
|
2006-07-06 19:12:10 +02:00
|
|
|
USE_GNOME= gtk20 intlhack
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-07-06 19:12:10 +02:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
OPTIONS_DEFINE= CUPS NLS
|
2008-10-28 16:28:27 +01:00
|
|
|
|
2011-06-02 13:56:02 +02:00
|
|
|
MAN1= epdfview.1
|
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-10-28 16:28:27 +01:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MCUPS}
|
2008-10-28 16:28:27 +01:00
|
|
|
CONFIGURE_ARGS+=--with-cups
|
2011-10-27 04:03:38 +02:00
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
|
2008-10-28 16:28:27 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-cups
|
|
|
|
.endif
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
2006-07-06 19:12:10 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-08 11:51:34 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
|
|
|
|
${WRKSRC}/src/gtk/StockIcons.h
|
|
|
|
|
2006-07-06 19:12:10 +02:00
|
|
|
post-install:
|
2011-05-12 13:36:21 +02:00
|
|
|
${REINPLACE_CMD} -e 's,Icon.*,Icon=${DATADIR}/pixmaps/icon_epdfview-48.png,' ${WRKSRC}/data/${PORTNAME}.desktop
|
2006-07-06 19:12:10 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
|
|
|
|
@-update-desktop-database
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|