freebsd-ports/graphics/electrix/Makefile
Baptiste Daroussin 8157e9f800 Add a new USES=waf to handle the waf building system, allowing to factorise code
Plug waf into MAKE_CMD and CONFIGURE_CMD so the regular defined targets can be
reused

Always define _MAKE_JOBS so that when bsd.port.mk will stop overwritting
_MAKE_JOBS when parallel jobs are disabled we can enforce -j1 (which is needed
to really disable parallelisation with waf

WAF_CMD has been created to allow one to override the location of the waf script
relatively to WRKSRC

CONFIGURE_TARGET is by default defined to "configure"
ALL_TARGET is by default defined to "build"
INSTALL_TARGET is by default defined to "install"

USES=waf is by default stagedir safe
2015-04-08 15:05:48 +00:00

40 lines
937 B
Makefile

# $FreeBSD$
PORTNAME= electrix
PORTVERSION= 0.2.0
PORTREVISION= 5
CATEGORIES= graphics print
MASTER_SITES= SF/${PORTNAME:tl}/${PORTVERSION}
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Application to view PDF files
LICENSE= GPLv2
USES= desktop-file-utils pkgconfig python:2 tar:bzip2 waf
USE_GNOME= gtk20 glib20 intltool intlhack
MAKE_ENV= DESTDIR="${STAGEDIR}" \
JOBS="${MAKE_JOBS_NUMBER}" \
LINKFLAGS="${LDFLAGS}"
OPTIONS_DEFINE= DBUS NLS PDF PS
OPTIONS_DEFAULT= DBUS PDF
OPTIONS_SUB= yes
DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
DBUS_CONFIGURE_OFF= --disable-dbus
NLS_USES= gettext
NLS_CONFIGURE_OFF= --disable-nls
PDF_LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
PDF_CONFIGURE_OFF= --disable-pdf
PS_LIB_DEPENDS= libspectre.so:${PORTSDIR}/print/libspectre
PS_CONFIGURE_OFF= --disable-ps
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/electrix
.include <bsd.port.mk>