- Add LICENSE_FILE

- Cosmetic fixes
- Don't install useless docs
This commit is contained in:
Dmitry Marakasov 2017-06-25 09:00:11 +00:00
parent 056f632a83
commit 0f9adf5229
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=444257

View file

@ -9,24 +9,23 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Open source library for SPI/I2C control via FTDI chips
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/../docs/LICENSE
BUILD_DEPENDS= swig2.0:devel/swig20
LIB_DEPENDS= libftdi.so:devel/libftdi
OPTIONS_DEFINE= DOCS EXAMPLES
USES= autoreconf localbase:ldflags pkgconfig python:2
GNU_CONFIGURE= yes
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= devttys0
GH_TAGNAME= f1a6744b220d
USES= autoreconf localbase:ldflags pkgconfig python:2
GNU_CONFIGURE= yes
CONFIGURE_ENV= SWIG="swig2.0"
USE_LDCONFIG= yes
WRKSRC_SUBDIR= src
CONFIGURE_ENV= SWIG="swig2.0"
PORTDOCS= INSTALL LICENSE README README.* AN_135_MPSSE_Basics.pdf
PORTDOCS= README README.* AN_135_MPSSE_Basics.pdf
PORTEXAMPLES= *
PLIST_FILES= lib/libmpsse.so lib/libmpsse.a include/mpsse.h \
@ -34,14 +33,17 @@ PLIST_FILES= lib/libmpsse.so lib/libmpsse.a include/mpsse.h \
${PYTHONPREFIX_SITELIBDIR}/mpsse.py \
${PYTHONPREFIX_SITELIBDIR}/pylibmpsse.py
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pylibmpsse.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpsse.so
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pylibmpsse.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpsse.so
post-install-DOCS-on:
(cd ${WRKSRC}/../docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name Makefile")
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/../docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
(cd ${WRKSRC}/../src/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile")
@(cd ${WRKSRC}/../src/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile")
.include <bsd.port.mk>