1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/deskutils/xneur/Makefile
Baptiste Daroussin 2c672a4de9 INSTALLS_ICONS: retire the macro and rework the related dependencies
While here, make sure gtk-update-icon-cache is only on run dependency
where added as a dependency
Enforce gtk3 to depend on gtk-update-icon-cache (previously it was
inheriting the dependency)
2021-10-10 21:44:42 +02:00

67 lines
1.6 KiB
Makefile

# Created by: Alex "lissyara" Keda <admin@lissyara.su>
PORTNAME= xneur
PORTVERSION= 0.20.0
PORTREVISION= 1
DISTVERSIONSUFFIX=.orig
CATEGORIES= deskutils
MASTER_SITES= https://launchpad.net/~andrew-crew-kuznetsov/+archive/xneur-stable/+files/
DISTNAME= ${PORTNAME}_${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= mizhka@gmail.com
COMMENT= Auto keyboard switcher
LICENSE= GPLv2
BUILD_DEPENDS= intltool-update:textproc/intltool
LIB_DEPENDS= libnotify.so:devel/libnotify \
libpcre.so:devel/pcre
USES= compiler:nestedfct gnome iconv libtool localbase pathfix \
pkgconfig xorg
USE_GNOME= gtk20
USE_XORG= xtst
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static --libdir=${PREFIX}/lib/xneur --with-gtk=gtk2
USE_LDCONFIG= ${PREFIX}/lib/xneur ${PREFIX}/lib/xneur/xneur
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= ASPELL XOSD NLS X11 SOUND
OPTIONS_DEFAULT= GSTREAMER ASPELL SOUND
XOSD_DESC= Xosd support
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
X11_USES= xorg
X11_USE= XORG=x11
X11_CONFIGURE_WITH= x
ASPELL_LIB_DEPENDS= libaspell.so:textproc/aspell
ASPELL_CONFIGURE_ON= --with-spell=aspell
ASPELL_CONFIGURE_OFF= --with-spell=no --without-aspell
XOSD_LIB_DEPENDS= libxosd.so:misc/xosd
XOSD_CONFIGURE_WITH= xosd
SOUND_USES= openal:al,alut
SOUND_CONFIGURE_ON= --with-sound=openal
SOUND_CONFIGURE_OFF= --with-sound=no
.include <bsd.port.pre.mk>
.if ${COMPILER_VERSION} == 42
CFLAGS+= -fnested-functions
.endif
post-patch:
@${REINPLACE_CMD} -e 's,-Werror,,g; s,-ldl,,g' ${WRKSRC}/configure
@${MV} ${WRKSRC}/etc/xneurrc ${WRKSRC}/etc/xneurrc.sample
.include <bsd.port.post.mk>