1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/graphics/electrix/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

66 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= electrix
PORTVERSION= 0.2.0
PORTREVISION= 2
CATEGORIES= graphics print
MASTER_SITES= SF/${PORTNAME:tl}/${PORTVERSION}
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Application to view PDF files
LICENSE= GPLv2
USES= pkgconfig desktop-file-utils
USE_BZIP2= yes
USE_GNOME= gtk20 glib20 intltool intlhack
USE_PYTHON= 2
CONFIGURE_ARGS= --prefix=${STAGEDIR}${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+= libdbus-glib-1.so:${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= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
.else
CONFIGURE_ARGS+= --disable-pdf
.endif
.if ${PORT_OPTIONS:MPS}
LIB_DEPENDS+= libspectre.so:${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}
.include <bsd.port.mk>