diff --git a/graphics/cfdg/Makefile b/graphics/cfdg/Makefile index 5ce9d6cb65c0..c8fb1e873035 100644 --- a/graphics/cfdg/Makefile +++ b/graphics/cfdg/Makefile @@ -1,45 +1,45 @@ PORTNAME= cfdg -DISTVERSION= 3.4.2 -PORTREVISION= 2 +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} + 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= WANT_FFMPEG=yes +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 diff --git a/graphics/cfdg/distinfo b/graphics/cfdg/distinfo index fdc6757d61da..06ebacfec51a 100644 --- a/graphics/cfdg/distinfo +++ b/graphics/cfdg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1742899725 -SHA256 (ContextFreeSource3.4.2.tar.xz) = af5dd442ea5ca214a87daeca63e338217854922aa1148c443834fcf0a86ebfa3 -SIZE (ContextFreeSource3.4.2.tar.xz) = 3867056 +TIMESTAMP = 1782989265 +SHA256 (ContextFreeSource3.4.3.tar.xz) = 9a279d8cbacb519e316254b0fda57081f5e59fc30d7fa0a438ec5ce638a3beb4 +SIZE (ContextFreeSource3.4.3.tar.xz) = 3868688 diff --git a/graphics/cfdg/files/patch-Makefile b/graphics/cfdg/files/patch-Makefile index e7c2973f5b3e..7fc2ce6b37c7 100644 --- a/graphics/cfdg/files/patch-Makefile +++ b/graphics/cfdg/files/patch-Makefile @@ -1,101 +1,65 @@ ---- Makefile.orig 2025-03-23 20:30:34 UTC +--- Makefile.orig 2026-06-30 05:32:23 UTC +++ Makefile @@ -19,7 +19,7 @@ INC_DIRS = $(COMMON_DIR) $(UNIX_DIR) $(DERIVED_DIR) $( vpath %.cfdg input INC_DIRS = $(COMMON_DIR) $(UNIX_DIR) $(DERIVED_DIR) $(COMMON_DIR)/agg-extras -INC_DIRS += /usr/local/include +INC_DIRS += %%LOCALBASE%%/include # # Installation directories @@ -34,7 +34,7 @@ MAN_DIR = $(DESTDIR)$(prefix)/share/man # Library directories for FFmpeg and libpng # -LIB_DIRS = /usr/local/lib +LIB_DIRS := %%LOCALBASE%%/lib $(shell libpng-config --libdir) # # Sources and Objects -@@ -69,43 +69,35 @@ INPUT_SRCS = ciliasun_v2.cfdg demo1_v2.cfdg demo2_v2.c +@@ -69,15 +69,16 @@ INPUT_SRCS = ciliasun_v2.cfdg demo1_v2.cfdg demo2_v2.c welcome.cfdg ziggy.cfdg -LIBS = png m +LIBS = m --# Use the first one for clang and the second one for gcc --ifeq ($(shell uname -s), Darwin) -- LIBS += c++ icucore --else + # Use the first one for clang and the second one for gcc + ifeq ($(shell uname -s), Darwin) + LIBS += c++ icucore + else - LIBS += stdc++ atomic icui18n icuuc icudata --endif -+LIBS += stdc++ icui18n icuuc icudata ++ LIBS += stdc++ icuuc icudata + endif ++ # # FFmpeg support - # - # Uncomment these lines to enable FFmpeg support - # -+ifeq ($(WANT_FFMPEG), yes) -+ COMMON_SRCS += ffCanvas.cpp -+ LIBS += avformat avcodec swscale swresample avutil z m x264 pthread dl -+else -+ COMMON_SRCS += ffCanvasDummy.cpp -+endif - --# COMMON_SRCS += ffCanvas.cpp --# LIBS += avformat avcodec swscale swresample avutil z m x264 pthread dl -- --# --# Comment out this line to enable FFmpeg support --# -- --COMMON_SRCS += ffCanvasDummy.cpp -- - SRCS = $(DERIVED_SRCS) $(COMMON_SRCS) $(UNIX_SRCS) - - # - # Configuration for local AGG - # --SRCS += $(AGG_SRCS) --INC_DIRS += $(AGG_DIR) $(AGG_DIR)/agg2 -+#SRCS += $(AGG_SRCS) -+#INC_DIRS += $(AGG_DIR) $(AGG_DIR)/agg2 - - - # - # Configuration for system AGG - # --#LIBS += agg -+LIBS += agg - - - OBJS = $(patsubst %.cpp,$(OBJ_DIR)/%.o,$(SRCS)) -@@ -113,6 +105,7 @@ LINKFLAGS += $(patsubst %,-l%,$(LIBS)) + ifdef CFDG_FFMPEG +@@ -117,6 +118,7 @@ LINKFLAGS += $(patsubst %,-l%,$(LIBS)) LINKFLAGS += $(patsubst %,-L%,$(LIB_DIRS)) LINKFLAGS += $(patsubst %,-l%,$(LIBS)) +LINKFLAGS += $(shell libpng-config --libs) LINKFLAGS += -fexceptions deps: $(OBJ_DIR) $(DEPS) -@@ -133,7 +126,7 @@ cfdg: $(OBJS) +@@ -137,7 +139,7 @@ cfdg: $(OBJS) # Under Cygwin replace strip $@ with strip $@.exe cfdg: $(OBJS) - $(LINK.o) $^ $(LINKFLAGS) -o $@ + $(CXX) $^ $(LINKFLAGS) -o $@ + ifndef DEB_BUILD_MAINT_OPTIONS strip $@ - - -@@ -196,7 +189,7 @@ CXXFLAGS += $(patsubst %,-I%,$(INC_DIRS)) + endif +@@ -202,7 +204,7 @@ CXXFLAGS += $(patsubst %,-I%,$(INC_DIRS)) # CXXFLAGS += $(patsubst %,-I%,$(INC_DIRS)) -CXXFLAGS += -O2 -Wall -Wextra -Wno-parentheses -std=c++17 +CXXFLAGS += -Wall -Wextra -Wno-parentheses -std=c++17 CXXFLAGS += -g -D_GLIBCXX_USE_C99_MATH=1 CPPFLAGS += -DNDEBUG