blob: 375ec98c1951ecc03ced6364d6b39431bd099a83 (
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
|
PORTNAME= voc
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.2
CATEGORIES= lang
MAINTAINER= antranigv@freebsd.am
COMMENT= Vishap Oberon Compiler for Oberon-2
WWW= https://github.com/vishaps/voc/
LICENSE= GPLv3
BROKEN_powerpc64= fails to compile: voc is not yet available for powerpc64
USE_GITHUB= yes
GH_ACCOUNT= vishaps
GH_PROJECT= voc
USE_LDCONFIG= ${PREFIX}/share/voc/lib
MAKEFILE= makefile
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= full
post-patch:
# we cannot run ldconfig (which is what addlibrary does) on the destination
# so we set USE_LDCONFIG instead, and disable addlibrary.sh
${PRINTF} '#!/bin/sh\ntrue\n' >${WRKSRC}/src/tools/make/addlibrary.sh
do-install:
(cd ${WRKSRC} && INSTALLDIR=${STAGEDIR}${PREFIX}/share/voc ${MAKE_CMD} install)
.for i in bin/voc bin/showdef lib/libvoc-OC.so lib/libvoc-O2.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/voc/${i}
.endfor
.for i in bin/voc bin/showdef
${LN} -s ../share/voc/${i} ${STAGEDIR}${PREFIX}/bin/
.endfor
.include <bsd.port.mk>
|