Changeset View
Changeset View
Standalone View
Standalone View
devel/libevdev/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libevdev | PORTNAME= libevdev | ||||
PORTVERSION= 1.4.4 | PORTVERSION= 1.5.7 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ | MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ | ||||
Context not available. | |||||
LICENSE= MIT # without linux/*.h | LICENSE= MIT # without linux/*.h | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BUILD_DEPENDS= v4l_compat>=1.0.20110603:multimedia/v4l_compat | BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto | ||||
RUN_DEPENDS= v4l_compat>=1.0.20110603:multimedia/v4l_compat | LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim | ||||
USES= gmake libtool pathfix python:build tar:xz | USES= gmake libtool pathfix python:build tar:xz compiler localbase | ||||
EXTRACT_AFTER_ARGS= --exclude include # v4l_compat | EXTRACT_AFTER_ARGS= --exclude include # v4l_compat | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= ac_cv_path_DOXYGEN="" | CONFIGURE_ENV= ac_cv_path_DOXYGEN="" ac_cv_path_VALGRIND="" | ||||
CPPFLAGS+= -I${LOCALBASE}/include # v4l_compat | CPPFLAGS+= -I${LOCALBASE}/include/libepoll-shim | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
# Test requires /dev/uinput and should be run as root | |||||
.if exists(/dev/uinput) | |||||
TEST_USES+= pkgconfig | |||||
TEST_LIB_DEPENDS= libcheck.so:devel/check | |||||
TEST_TARGET= check | |||||
TEST_WRKSRC= ${WRKSRC}/test | |||||
.endif | |||||
.include <bsd.port.pre.mk> | |||||
# Do not allow clang optimize out calloc return value. | |||||
# Otherwise queue (over)allocation test fails | |||||
.if ${COMPILER_TYPE} == clang | |||||
CPPFLAGS+= -fno-builtin | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/input\.h/s,top_srcdir,LOCALBASE,' \ | @${REINPLACE_CMD} -e '/input\.h/s,top_srcdir,LOCALBASE,g' \ | ||||
${WRKSRC}/libevdev/Makefile.in | ${WRKSRC}/libevdev/Makefile.in | ||||
# XXX tools require signalfd(2), test require /dev/uinput | @${REINPLACE_CMD} -e '/^LIBS = /s/$$/ -pthread -lrt -lepoll-shim/' \ | ||||
@${REINPLACE_CMD} -e '/^SUBDIRS/s,tools test,,' \ | ${WRKSRC}/tools/Makefile.in | ||||
${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \ | ||||
${WRKSRC}/tools/mouse-dpi-tool.c \ | |||||
${WRKSRC}/tools/touchpad-edge-detector.c \ | |||||
${WRKSRC}/tools/libevdev-tweak-device.c | |||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> | ||||
Context not available. |