pkgsrc/x11/xf86-input-joystick/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

32 lines
930 B
Makefile

# $NetBSD: Makefile,v 1.9 2018/07/04 13:40:44 jperkin Exp $
DISTNAME= xf86-input-joystick-1.6.3
PKGREVISION= 2
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=driver/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xorg.freedesktop.org/
COMMENT= Joystick input driver for the Xorg X server
#LICENSE= # TODO: (see mk/license.mk)
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= xorg-joystick.pc.in
CONFIGURE_ENV.SunOS+= DRIVER_MAN_SUFFIX=4
SUBST_CLASSES.DragonFly+= usbhid
SUBST_STAGE.usbhid= pre-configure
SUBST_FILES.usbhid= configure
SUBST_FILES.usbhid+= src/backend_bsd.c
SUBST_SED.usbhid= -e 's,dev/usb/,bus/u4b/,g'
SUBST_MESSAGE.usbhid= Correct usbhid include paths
.include "../../devel/xorg-util-macros/buildlink3.mk"
.include "../../x11/xorgproto/buildlink3.mk"
.include "../../x11/modular-xorg-server/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"