mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
83f02b963c
Approved by: portmgr (bapt)
71 lines
1.4 KiB
Makefile
71 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= electrix
|
|
PORTVERSION= 0.2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= SF/${PORTNAME:L}/${PORTVERSION}
|
|
|
|
MAINTAINER= olivierd@FreeBSD.org
|
|
COMMENT= An application to view PDF files
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= pkgconfig
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gtk20 desktopfileutils intltool intlhack
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
OPTIONS_DEFINE= DBUS NLS PDF PS
|
|
OPTIONS_DEFAULT= DBUS PDF
|
|
|
|
PDF_DESC= Portable Document Format Support
|
|
PS_DESC= PostScript Support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDBUS}
|
|
LIB_DEPENDS+= dbus-glib-1:${PORTSDIR}/devel/dbus-glib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
PLIST_SUB= NLS=""
|
|
USES+= gettext
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
|
LIB_DEPENDS= poppler-glib:${PORTSDIR}/graphics/poppler-glib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pdf
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPS}
|
|
LIB_DEPENDS+= spectre:${PORTSDIR}/print/libspectre
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ps
|
|
.endif
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf configure \
|
|
${CONFIGURE_ARGS} && ${TRUE}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf build && ${TRUE}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} waf install && ${TRUE}
|
|
|
|
post-install:
|
|
@-update-desktop-database
|
|
|
|
.include <bsd.port.mk>
|