mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
0167e3d083
- Add USES=libtool and bump dependent ports - Use OPTIONS_SUB
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# Created by: James Earl <jdearl@telus.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xfce4-mixer
|
|
PORTVERSION= 4.11.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio xfce
|
|
MASTER_SITES= ${MASTER_SITE_XFCE}
|
|
MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R}
|
|
DIST_SUBDIR= xfce4
|
|
|
|
MAINTAINER= xfce@FreeBSD.org
|
|
COMMENT= Volume control for the Xfce desktop
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
|
|
libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_ICONS= yes
|
|
USES= gmake libtool pkgconfig tar:bzip2
|
|
USE_GNOME= glib20 gtk20 intltool intlhack
|
|
USE_XFCE= configenv libmenu libutil panel xfconf
|
|
USE_GSTREAMER= good
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
OPTIONS_DEFINE= KEYBIND NLS
|
|
|
|
KEYBIND_DESC= Multimedia keyboard shortcuts
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MKEYBIND}
|
|
LIB_DEPENDS+= libkeybinder.so:${PORTSDIR}/x11/keybinder
|
|
CONFIGURE_ARGS+=--enable-keybinder
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-keybinder
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name 'Makefile.in' -or -name 'xfce-mixer-track.c' \
|
|
-type f | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|(pkgdatadir)/icons|(datadir)/icons| ; \
|
|
s|pixmaps/xfce4-mixer|pixmaps|'
|
|
|
|
.include <bsd.port.mk>
|