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
|
2009-03-23 18:15:26 +01:00
|
|
|
PORTVERSION= 0.1.7
|
2009-07-31 15:57:52 +02: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/ \
|
- Remove chinsan2.twbbs.org, distfiles moved to LOCAL
PR: 108392, 108393, 108394, 108395, 108396, 108397, 108398, 108399, 108400, 108401
Submitted by: chinsan (maintainer)
2007-01-29 16:55:10 +01:00
|
|
|
LOCAL/chinsan
|
2006-07-06 19:12:10 +02:00
|
|
|
|
2009-08-28 19:37:26 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-07-06 19:12:10 +02:00
|
|
|
COMMENT= A lightweight PDF document viewer
|
|
|
|
|
2008-05-03 18:18:03 +02:00
|
|
|
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
|
2009-04-10 07:56:28 +02:00
|
|
|
LIB_DEPENDS= poppler-glib.4:${PORTSDIR}/graphics/poppler-gtk
|
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
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= 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
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CUPS)
|
|
|
|
CONFIGURE_ARGS+=--with-cups
|
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
|
|
|
.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
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
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>
|