0dcc7fce52
Changelog: https://github.com/pavetheway91/tarbsd/releases/tag/26.06.28 Commit log: https://github.com/pavetheway91/tarbsd/compare/26.06.08...26.06.28 PR: 296355 Approved by: osa, vvd (Mentors, implicit)
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
PORTNAME= tarbsd-builder
|
|
DISTVERSION= 26.06.28
|
|
CATEGORIES= sysutils
|
|
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
|
|
DIST_SUBDIR= ${DISTNAME}-${DISTVERSION}
|
|
|
|
MAINTAINER= pkaipila@gmail.com
|
|
COMMENT= Minimal FreeBSD image builder
|
|
WWW= https://github.com/pavetheway91/tarbsd
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN}
|
|
|
|
USES= php:flavors,build
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pavetheway91
|
|
GH_PROJECT= tarbsd
|
|
USE_PHP= ctype filter intl mbstring pcntl phar zlib
|
|
|
|
NO_ARCH= yes
|
|
|
|
_TARBSD_COMPILE_ARGS= --ports --version-tag=${PORTVERSION} \
|
|
--prefix=${LOCALBASE}
|
|
|
|
PLIST_FILES= bin/tarbsd
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES PIGZ QEMU_TOOLS
|
|
OPTIONS_DEFAULT= EXAMPLES PIGZ
|
|
|
|
PIGZ_DESC= Better kernel compression
|
|
QEMU_TOOLS_DESC= Export image to hypervisor formats
|
|
|
|
PIGZ_BUILD_DEPENDS= pigz:archivers/pigz
|
|
PIGZ_RUN_DEPENDS= pigz:archivers/pigz
|
|
QEMU_TOOLS_RUN_DEPENDS= qemu-img:emulators/qemu@tools
|
|
|
|
do-build:
|
|
${LOCALBASE}/bin/php -d phar.readonly=0 ${WRKSRC}/stubs/compile.php \
|
|
${_TARBSD_COMPILE_ARGS}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/out/tarbsd \
|
|
${STAGEDIR}${PREFIX}/bin/
|
|
|
|
post-install-EXAMPLES-on:
|
|
cd ${WRKSRC}/examples && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|