freebsd-ports/lang/voc/Makefile
Faraz Vahedi fad2fa9384 lang/voc: Update to 2.1.1
Changelog:

  https://github.com/vishaps/voc/blob/master/doc/History.md

While here reorder vars.

Approbed by: antranigv@freebsd.am (maintainer)
MFH: 2022Q2 (bugfix release)
Differential Revision: https://reviews.freebsd.org/D34843
2022-04-13 20:29:24 +02:00

38 lines
948 B
Makefile

PORTNAME= voc
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.1
CATEGORIES= lang
MAINTAINER= antranigv@freebsd.am
COMMENT= Vishap Oberon Compiler for Oberon-2
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
ALL_TARGET= full
MAKE_JOBS_UNSAFE= yes
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>