freebsd-ports/sysutils/xfburn/Makefile
Baptiste Daroussin 9346b215f0 new devel/pkgconf added to replace devel/pkg-config. new version of pkg-config
are no more self hosting so we are stuck with 0.25 version while pkgconf provide
the same set of features as 0.27 and a compatible frontend. A symlink to
pkg-config has been added for convenience and compatibility

This also introduces a new macro to use pkgconf in your ports:
USE_PKGCONFIG

it can take the following arguments:
 - yes (meaning build only dep)
 - build (meaning build only dep)
 - run (meaning run only dep)
 - both (meaning run and build dep)

From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG
The old gnome macro has been modified to use pkgconf but still the sameway: run
and build dep to avoid large breakage.

While here fix some ports relying on pkg-config but not specifying it, fix some
ports broken because testing wrong .pc files, and fix ports using pkg-config
--version to determine pkg-config version instead of
pkg-config --modversion pkg-config like recommanded by pkg-config

With Hat:	portmgr
Exp-runs by:	bapt (pointhat-west), beat (pointyhat)
2012-07-26 05:40:22 +00:00

66 lines
1.3 KiB
Makefile

# New ports collection makefile for: xfburn
# Date created: 2008 November 06
# Whom: J.R. Oldroyd <fbsd@opal.com>
#
# $FreeBSD$
#
PORTNAME= xfburn
PORTVERSION= 0.4.3
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR=/src/apps/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4
MAINTAINER= ports@FreeBSD.org
COMMENT= CD/DVD burning tool for Xfce
LIB_DEPENDS= burn.4:${PORTSDIR}/devel/libburn \
isofs.6:${PORTSDIR}/devel/libisofs
RUN_DEPENDS= cdrdao:${PORTSDIR}/sysutils/cdrdao
GNU_CONFIGURE= yes
CONFIGURE_ENV= GMSGFMT=${PREFIX}/bin/msgfmt DATADIRNAME=share
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= intltool
USE_XFCE= configenv libexo libgui
USE_PKGCONFIG= yes
USE_CDRTOOLS= yes
INSTALLS_ICONS= yes
MAN1= xfburn.1
OPTIONS_DEFINE= DBUS HAL GSTREAMER NLS
OPTIONS_DEFAULT= DBUS HAL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
.else
CONFIGURE_ARGS+= --disable-nls
.endif
.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
.else
CONFIGURE_ARGS+= --disable-dbus
.endif
.if ${PORT_OPTIONS:MHAL}
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
.else
CONFIGURE_ARGS+= --disable-hal
.endif
.if ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER= core
CONFIGURE_ARGS+= "LDFLAGS=-lgstpbutils-0.10"
.else
CONFIGURE_ARGS+= --disable-gstreamer
.endif
.include <bsd.port.mk>