summaryrefslogtreecommitdiff
path: root/comms/libticables/Makefile
blob: 7c0dd82fd07d24323266072b676266c589b61e47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	libticables
# Date created:		27 August 2003
# Whom:			Tijl Coosemans <tijl@ulyssis.org>
#
# $FreeBSD$
#

PORTNAME=	libticables
PORTVERSION=	3.7.7
CATEGORIES=	comms
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	tilp

MAINTAINER=	tijl@ulyssis.org
COMMENT=	TI calculator link cables library

BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
RUN_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=	intl.5:${PORTSDIR}/devel/gettext

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include"\
		LDFLAGS="-L${LOCALBASE}/lib"

MAN1=	ticables-config.1

.include <bsd.port.pre.mk>

.if defined(WITH_LIBUSB) || exists(${LOCALBASE}/bin/libusb-config)
LIB_DEPENDS+=	usb-0.1.7:${PORTSDIR}/devel/libusb
.else
pre-everything::
	@${ECHO_MSG}
	@${ECHO_MSG} "======================================================="
	@${ECHO_MSG} "If you want to compile with USB support, hit Ctrl-C"
	@${ECHO_MSG} "right now and use \"make WITH_LIBUSB=yes\""
	@${ECHO_MSG} "======================================================="
	@${ECHO_MSG}
.endif #WITH_LIBUSB

.include <bsd.port.post.mk>