blob: 682e98714d6861d879007b35dfdc8468dac22cca (
plain) (
blame)
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
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= synth
DISTVERSIONPREFIX= v
DISTVERSION= 2.02
PORTREVISION= 1
CATEGORIES= ports-mgmt
MAINTAINER= ericturgeon.bsd@gmail.com
COMMENT= Custom package repository builder for FreeBSD and DragonFly
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/License.txt
BUILD_DEPENDS= ${LOCALBASE}/lib/libncurses.a:devel/ncurses \
${GPR}/ini_file_manager.gpr:misc/ini_file_manager \
${GPR}/adacurses.gpr:devel/adacurses
USES= ada:6
USE_GITHUB= yes
GH_ACCOUNT= jrmarino
GPR= ${LOCALBASE}/lib/gnat
MAKE_ENV= NCURSES_LINK=static
OPTIONS_DEFINE= WATCHDOG
OPTIONS_DEFAULT=WATCHDOG
WATCHDOG_DESC= Build with watchdog monitor
WATCHDOG_EXTRA_PATCHES_OFF= ${FILESDIR}/extrapatch-nowatchdog-portscan-buildcycle.adb
.include <bsd.port.pre.mk>
post-extract:
.if ${OPSYS} == DragonFly && ${OSVERSION} < 400600
@${REINPLACE_CMD} -e 's|"re"|"r"|' ${WRKSRC}/src/unix.adb
.endif
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
${WRKSRC}/src/definitions.ads
do-build:
(cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
gcc -c unix_core.c -o ../build/unix_core.o)
(cd ${WRKSRC}/synthexec && ${SETENV} ${MAKE_ENV} \
gcc synthexec.c -o ../build/synthexec)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -P default \
-largs build/unix_core.o)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
${STAGEDIR}${PREFIX}/share/zsh/site-functions \
${STAGEDIR}${PREFIX}/share/synth \
${STAGEDIR}/var/log/synth \
${STAGEDIR}/var/synth/live_packages
${INSTALL_PROGRAM} ${WRKSRC}/build/synth \
${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/build/synthexec \
${STAGEDIR}${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/synth.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/shell-completers/_synth.bash \
${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/shell-completers/_synth \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/www/* ${STAGEDIR}${PREFIX}/share/synth
.include <bsd.port.post.mk>
|