Lines 6-20
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libftdi |
8 |
PORTNAME= libftdi |
9 |
PORTVERSION= 0.14 |
9 |
PORTVERSION= 0.17 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= devel |
10 |
CATEGORIES= devel |
12 |
MASTER_SITES= http://www.intra2net.com/en/developer/libftdi/download/ |
11 |
MASTER_SITES= http://www.intra2net.com/en/developer/libftdi/download/ |
13 |
|
12 |
|
14 |
MAINTAINER= o.davydenko@gmail.com |
13 |
MAINTAINER= o.davydenko@gmail.com |
15 |
COMMENT= A library (using libusb) to talk to FTDI chips |
14 |
COMMENT= A library (using libusb) to talk to FTDI chips |
16 |
|
15 |
|
17 |
USE_AUTOTOOLS= libtool:22 |
16 |
OPTIONS= BOOST "Build with boost" off |
|
|
17 |
|
18 |
USE_AUTOTOOLS= autoconf:262 libtool:22 |
18 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
19 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" |
20 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" |
20 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
Lines 24-40
Link Here
|
24 |
|
25 |
|
25 |
.include <bsd.port.pre.mk> |
26 |
.include <bsd.port.pre.mk> |
26 |
|
27 |
|
|
|
28 |
.if defined(WITH_BOOST) |
29 |
PLIST_SUB+= BOOST="" |
30 |
CONFIGURE_ARGS+= --with-boost |
31 |
CXXFLAGS+= "-I${LOCALBASE}/include" |
32 |
LIB_DEPENDS+= boost_system.4:${PORTSDIR}/devel/boost-libs |
33 |
.else |
34 |
PLIST_SUB+= BOOST="@comment " |
35 |
CONFIGURE_ARGS+= --without-boost |
36 |
.endif |
37 |
|
27 |
.if ${OSVERSION} < 800069 |
38 |
.if ${OSVERSION} < 800069 |
28 |
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb |
39 |
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb |
29 |
.else |
40 |
.else |
30 |
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in |
41 |
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in |
31 |
USE_AUTOTOOLS+= autoconf:262 |
|
|
32 |
.endif |
42 |
.endif |
33 |
|
43 |
|
34 |
post-patch: |
44 |
post-patch: |
35 |
.if ${OSVERSION} >= 800069 |
45 |
@${REINPLACE_CMD} -E -e \ |
36 |
${RM} -f ${WRKSRC}/configure |
46 |
's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \ |
37 |
.endif |
47 |
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in |
|
|
48 |
|
49 |
pre-configure: |
50 |
@cd ${WRKSRC} && ${AUTORECONF} |
38 |
|
51 |
|
39 |
post-install: |
52 |
post-install: |
40 |
.if !defined(NOPORTDOCS) |
53 |
.if !defined(NOPORTDOCS) |