blob: 9cc79866057335e4ba21fa25f14113bdc96c5482 (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Created by: Joerg Wunsch <joerg@FreeBSD.org>
# $FreeBSD$
PORTNAME= avr-libc
PORTVERSION= 2.0.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= SAVANNAH
MAINTAINER= joerg@FreeBSD.org
COMMENT= C and math library for the Atmel AVR controller family
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= avr-as:devel/avr-binutils \
avr-ld:devel/avr-binutils \
avr-gcc:devel/avr-gcc
RUN_DEPENDS= avr-as:devel/avr-binutils \
avr-ld:devel/avr-binutils \
avr-gcc:devel/avr-gcc
OPTIONS_DEFINE= DOXYGEN
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDOXYGEN}
.undef WITHOUT_AVRLIBCDOCS= true
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
USE_TEX= latex:build
BUILD_DEPENDS+= doxygen:devel/doxygen \
fig2dev:print/transfig \
jpegtopnm:graphics/netpbm \
dvips:print/tex-dvipsk
.endif
USES= gettext-tools tar:bzip2 gmake
HAS_CONFIGURE= yes
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
.if ${PORT_OPTIONS:MDOXYGEN}
CONFIGURE_ARGS= --build=`./config.guess` --host=avr \
--enable-doc --disable-versioned-doc --prefix=${PREFIX} \
--mandir=${PREFIX}/share/doc/avr-libc/man
PLIST_DOC= ${PKGDIR}/pkg-plist.doc
.else
CONFIGURE_ARGS= --build=`./config.guess` --host=avr --prefix=${PREFIX}
PLIST_DOC=
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOXYGEN}
${REINPLACE_CMD} -e '/SUBDIRS/s,examples,,' ${WRKSRC}/doc/Makefile.in
.endif
do-install:
${RM} ${TMPPLIST}
.if ${PORT_OPTIONS:MDOXYGEN}
(cd ${BUILD_WRKSRC}/doc/api/avr-libc-user-manual && \
${FIND} . -type f \
\( -name '*.html' -or -name '*.css' -or \
-name '*.jpg' -or -name '*.png' \) |\
${GREP} -v '/search/' |\
${SORT} |\
${SED} -e 's|^\.|share/doc/avr-libc/avr-libc-user-manual|' \
>> ${TMPPLIST})
(cd ${BUILD_WRKSRC}/doc/api/man/man3 && \
${FIND} . -type f |\
${SORT} |\
${SED} -e 's|^\.|share/doc/avr-libc/man/man3|' \
>> ${TMPPLIST})
${CAT} ${PLIST_DOC} >> ${TMPPLIST}
.endif
${CAT} ${PLIST} >> ${TMPPLIST}
@for file in ${PLIST_FILES}; do \
${ECHO_CMD} $${file} >> ${TMPPLIST}; \
done
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} install)
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/AUTHORS \
${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>
|