FreeBSD Bugzilla – Attachment 221817 Details for
Bug 252922
devel/libftdi1: modernize and cleanup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
libftdi1.patch (text/plain), 3.50 KB, created by
Dmitry Marakasov
on 2021-01-22 20:59:42 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2021-01-22 20:59:42 UTC
Size:
3.50 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 562329) >+++ Makefile (working copy) >@@ -2,9 +2,9 @@ > > PORTNAME= libftdi1 > PORTVERSION= 1.5 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= devel >-MASTER_SITES= http://www.intra2net.com/en/developer/libftdi/download/ >+MASTER_SITES= https://www.intra2net.com/en/developer/libftdi/download/ > > MAINTAINER= bsam@FreeBSD.org > COMMENT= Library (using libusb) to talk to FTDI chips >@@ -21,6 +21,10 @@ > USES= cmake:insource compiler:c++11-lang gettext-runtime pkgconfig tar:bzip2 > USE_LDCONFIG= yes > >+PORTDOCS= ChangeLog README >+PORTEXAMPLES= baud_test bitbang bitbang2 bitbang_cbus bitbang_ft2232 \ >+ eeprom find_all serial_test simple stream_test >+ > OPTIONS_DEFINE= PYTHON BOOST DOCS EXAMPLES > OPTIONS_DEFAULT=PYTHON BOOST > OPTIONS_SUB= yes >@@ -28,53 +32,27 @@ > BOOST_DESC= Build with boost > PYTHON_DESC= Build Python bindings > >-PORTDOCS= ChangeLog README >+EXAMPLES_CMAKE_BOOL= EXAMPLES > >-.include <bsd.port.options.mk> >+PYTHON_USES= python >+PYTHON_CMAKE_BOOL= PYTHON_BINDINGS >+PYTHON_BUILD_DEPENDS= swig:devel/swig > >-.if ${PORT_OPTIONS:MDOCS} >-CMAKE_ARGS+= -DDOCUMENTATION:BOOL=true \ >- -DPYTHON_BINDINGS:BOOL=false >-.else >-CMAKE_ARGS+= -DDOCUMENTATION:BOOL=false >-.endif >+BOOST_CMAKE_BOOL= FTDIPP >+BOOST_LIB_DEPENDS= libboost_system.so:devel/boost-libs >+#BOOST_VARS= PORTEXAMPLES+=find_all_pp >+BOOST_PORTEXAMPLES= find_all_pp > >-.if ${PORT_OPTIONS:MEXAMPLES} >-CMAKE_ARGS+= -DEXAMPLES:BOOL=true >-.else >-CMAKE_ARGS+= -DEXAMPLES:BOOL=false >-.endif >+.include <bsd.port.options.mk> > >-.if ${PORT_OPTIONS:MPYTHON} >-USES+= python >-CMAKE_ARGS+= -DPYTHON_BINDINGS:BOOL=true \ >- -DDOCUMENTATION:BOOL=false >-BUILD_DEPENDS+= swig:devel/swig >-.else >-CMAKE_ARGS+= -DPYTHON_BINDINGS:BOOL=false >-.endif >+post-install-EXAMPLES-on: >+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >+.for fname in ${PORTEXAMPLES} >+ ${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${EXAMPLESDIR}/ >+.endfor > >-.if ${PORT_OPTIONS:MBOOST} >-CMAKE_ARGS+= -DFTDIPP:BOOL=true >-LIB_DEPENDS+= libboost_system.so:devel/boost-libs >-.else >-CMAKE_ARGS+= -DFTDIPP:BOOL=false >-.endif >- >-post-install: >-.if ${PORT_OPTIONS:MEXAMPLES} >-.for fname in baud_test bitbang bitbang2 bitbang_cbus bitbang_ft2232 eeprom find_all serial_test simple stream_test >- ${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${PREFIX}/bin/ftdi1_${fname}_example >-.endfor >-.if ${PORT_OPTIONS:MBOOST} >-.for fname in find_all_pp >- ${INSTALL_PROGRAM} ${WRKSRC}/examples/${fname} ${STAGEDIR}${PREFIX}/bin/ftdi1_${fname}_example >-.endfor >-.endif >-.endif >-.if ${PORT_OPTIONS:MDOCS} >- ${MKDIR} ${STAGEDIR}${DOCSDIR} >+post-install-DOCS-on: >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ >-.endif > > .include <bsd.port.mk> >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 562329) >+++ pkg-plist (working copy) >@@ -1,16 +1,5 @@ > bin/ftdi_eeprom > bin/libftdi1-config >-%%EXAMPLES%%bin/ftdi1_baud_test_example >-%%EXAMPLES%%bin/ftdi1_bitbang2_example >-%%EXAMPLES%%bin/ftdi1_bitbang_cbus_example >-%%EXAMPLES%%bin/ftdi1_bitbang_example >-%%EXAMPLES%%bin/ftdi1_bitbang_ft2232_example >-%%EXAMPLES%%bin/ftdi1_eeprom_example >-%%EXAMPLES%%bin/ftdi1_find_all_example >-%%EXAMPLES%%%%BOOST%%bin/ftdi1_find_all_pp_example >-%%EXAMPLES%%bin/ftdi1_serial_test_example >-%%EXAMPLES%%bin/ftdi1_simple_example >-%%EXAMPLES%%bin/ftdi1_stream_test_example > libdata/pkgconfig/libftdi1.pc > libdata/pkgconfig/libftdipp1.pc > lib/cmake/libftdi1/LibFTDI1Config.cmake
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252922
: 221817