freebsd-ports/deskutils/xneur/Makefile
John Marino 64ee7e63bf 6 ports categories: Remove $PTHREAD_LIBS
Categories: cad, devel, java, x11-fm, biology, deskutils

approved by:	PTHREAD blanket
2015-03-24 16:01:21 +00:00

79 lines
1.8 KiB
Makefile

# Created by: Alex "lissyara" Keda <admin@lissyara.su>
# $FreeBSD$
PORTNAME= xneur
PORTVERSION= 0.15.0
PORTREVISION= 6
CATEGORIES= deskutils
MASTER_SITES= http://dists.xneur.ru/release-${DISTVERSION}/tgz/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= admin@lissyara.su
COMMENT= Auto keyboard switcher
LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify \
libpcre.so:${PORTSDIR}/devel/pcre
USES= pathfix pkgconfig iconv tar:bzip2 libtool
GNU_CONFIGURE= yes
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --disable-static --libdir=${PREFIX}/lib/xneur
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= ASPELL XOSD NLS X11
OPTIONS_DEFAULT= GSTREAMER ASPELL
OPTIONS_RADIO= SOUND
OPTIONS_RADIO_SOUND= GSTREAMER OPENAL
XOSD_DESC= Xosd support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG+= x11
CONFIGURE_ARGS+= --with-x
.else
CONFIGURE_ARGS+= --without-x
.endif
.if ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER= yes
CONFIGURE_ARGS+= --with-sound=gstreamer
.elif ${PORT_OPTIONS:MOPENAL}
USES+= openal:al,alut
CONFIGURE_ARGS+= --with-sound=openal
.else
CONFIGURE_ARGS+= --with-sound=no
.endif
.if ${PORT_OPTIONS:MASPELL}
LIB_DEPENDS+= libaspell.so:${PORTSDIR}/textproc/aspell
CONFIGURE_ARGS+= --with-spell=aspell
.else
CONFIGURE_ARGS+= --with-spell=no --without-aspell
.endif
.if ${PORT_OPTIONS:MXOSD}
LIB_DEPENDS+= libxosd.so:${PORTSDIR}/misc/xosd
CONFIGURE_ARGS+= --with-xosd
.else
CONFIGURE_ARGS+= --without-xosd
.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.mk>