aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/epdfview/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epdfview/Makefile')
-rw-r--r--graphics/epdfview/Makefile37
1 files changed, 11 insertions, 26 deletions
diff --git a/graphics/epdfview/Makefile b/graphics/epdfview/Makefile
index 2f03c104943e..18b89a8280bb 100644
--- a/graphics/epdfview/Makefile
+++ b/graphics/epdfview/Makefile
@@ -3,50 +3,36 @@
PORTNAME= epdfview
PORTVERSION= 0.1.8
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= graphics print gnome
MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \
http://mirror.slitaz.org/sources/packages/e/
MAINTAINER= sylvio@FreeBSD.org
-COMMENT= A lightweight PDF document viewer
+COMMENT= Lightweight PDF document viewer
LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
-USE_BZIP2= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
-USES= iconv gmake pkgconfig
+USES= desktop-file-utils iconv gmake pkgconfig tar:bzip2
USE_GNOME= gtk20 intlhack
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= CUPS NLS
+OPTIONS_SUB= yes
-MAN1= epdfview.1
+CUPS_CONFIGURE_WITH= cups
+CUPS_LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCUPS}
-CONFIGURE_ARGS+=--with-cups
-LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
-.else
-CONFIGURE_ARGS+=--without-cups
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
@@ -54,7 +40,6 @@ post-patch:
post-install:
${REINPLACE_CMD} -e 's,Icon.*,Icon=${DATADIR}/pixmaps/icon_epdfview-48.png,' ${WRKSRC}/data/${PORTNAME}.desktop
- ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
- @-update-desktop-database
+ ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
.include <bsd.port.mk>