2006-07-06 19:12:10 +02:00
|
|
|
# New ports collection makefile for: epdfview
|
|
|
|
# Date created: 2006/06/01
|
|
|
|
# Whom: chinsan <chinsan.tw@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= epdfview
|
2011-06-02 13:56:02 +02:00
|
|
|
PORTVERSION= 0.1.8
|
2011-11-12 01:24:15 +01:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
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
|
|
|
|
2008-10-28 16:28:27 +01:00
|
|
|
OPTIONS= CUPS "Use cups printing system" off \
|
|
|
|
NLS "Native language support" on
|
|
|
|
|
2011-06-02 13:56:02 +02:00
|
|
|
MAN1= epdfview.1
|
|
|
|
|
2008-10-28 16:28:27 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CUPS)
|
|
|
|
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
|
|
|
|
|
2006-07-06 19:12:10 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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
|
2007-03-01 09:12:08 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
2006-07-06 19:12:10 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
|
|
|
|
@-update-desktop-database
|
|
|
|
|
2008-10-28 16:28:27 +01:00
|
|
|
.include <bsd.port.post.mk>
|