blob: e3f3cf9bbb6026f292e692598b8dc9c0fda1d4d2 (
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
|
# Created by: John Marino <draco@marino.st>
# $FreeBSD$
PORTNAME= adabrowse
PORTVERSION= 4.0.3
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://home.datacomm.ch/t_wolf/tw/ada95/adabrowse/
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
MAINTAINER= freebsd.contact@marino.st
COMMENT= HTML generator for Ada 95 library unit specifications
LICENSE= GPLv2
BUILD_DEPENDS= asis>=2011:lang/asis
USES= ada
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
PLIST_FILES= bin/adabrowse
PORTDOCS= *.html *.css
OPTIONS_DEFINE= DOCS
post-extract:
${CP} ${FILESDIR}/ad-* ${FILESDIR}/build.gpr ${WRKSRC}
${RM} ${WRKSRC}/sdefault.adb
do-build:
# Since we only need one C object, just compile it manually rather
# than bring in GPRBuild as a dependency
${MKDIR} ${WRKSRC}/obj
(cd ${WRKSRC}/obj && ${SETENV} ${MAKE_ENV} ada -c -O2 ../util-nl.c)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -Pbuild)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/adabrowse ${STAGEDIR}${PREFIX}/bin/adabrowse
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.css \
${STAGEDIR}/${DOCSDIR}/
.include <bsd.port.mk>
|