09106621f1
A bug fix release. The build scripts now require substantially less patching! Changelog: https://www.contextfreeart.org/downloads.html MFH: 2026Q2
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
PORTNAME= cfdg
|
|
DISTVERSION= 3.4.3
|
|
CATEGORIES= graphics math
|
|
MASTER_SITES= http://www.contextfreeart.org/download/ \
|
|
http://glyphic.s3.amazonaws.com/cfa/download/
|
|
DISTNAME= ContextFreeSource${DISTVERSION}
|
|
|
|
MAINTAINER= fuz@FreeBSD.org
|
|
COMMENT= Context Free Design Grammar compiler
|
|
WWW= https://www.contextfreeart.org/
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
LIB_DEPENDS= libagg.so:graphics/agg \
|
|
libicuuc.so:devel/icu \
|
|
libpng.so:graphics/png
|
|
|
|
USES= bison gmake tar:xz
|
|
MAKE_ARGS= prefix=${PREFIX} \
|
|
DESTDIR=${STAGEDIR} \
|
|
CFDG_LIBAGG=yes
|
|
TEST_TARGET= check
|
|
CXXFLAGS+= -Wno-register
|
|
|
|
NO_WRKSUBDIR= yes
|
|
PLIST_FILES= bin/cfdg \
|
|
share/man/man1/cfdg.1.gz
|
|
|
|
PORTEXAMPLES= *.cfdg
|
|
|
|
OPTIONS_DEFINE= EXAMPLES FFMPEG
|
|
OPTIONS_DEFAULT= FFMPEG
|
|
FFMPEG_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \
|
|
libx264.so:multimedia/libx264
|
|
FFMPEG_MAKE_ARGS= CFDG_FFMPEG=yes
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/Makefile
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/input/*.cfdg ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|