freebsd-ports/comms/libticables2/Makefile
Jan Beich 7277ec6a16 Assume "pkg-config libusb*" works after 9.x EOL
FreeBSD appears to use different pkg-config name for 0.1.x API but it
doesn't matter much as 0.1, 1.0 and 2.0 share CFLAGS/LIBS.
2017-01-05 22:58:02 +00:00

33 lines
677 B
Makefile

# $FreeBSD$
PORTNAME= libticables2
PORTVERSION= 1.3.4
PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= SF/tilp/tilp2-linux/tilp2-1.17
MAINTAINER= tijl@FreeBSD.org
COMMENT= TI calculator link cables library
LICENSE= GPLv2
USE_GNOME= glib20
USE_LDCONFIG= yes
USES= gmake libtool pathfix pkgconfig tar:bzip2
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e '/PKG_CONFIG.*libusb/s/ >= 0\.1\.[0-9]*/-0.1/' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/Requires/&.private/' ${WRKSRC}/ticables2.pc.in
.include <bsd.port.mk>