diff --git a/graphics/tumble/Makefile b/graphics/tumble/Makefile index df4ba6c30ddc..545a8fa9d2b8 100644 --- a/graphics/tumble/Makefile +++ b/graphics/tumble/Makefile @@ -1,51 +1,50 @@ # Created by: Rob Farmer PORTNAME= tumble -PORTVERSION= 0.36 DISTVERSIONPREFIX= v +DISTVERSION= 0.36 +PORTREVISION= 1 CATEGORIES= graphics print -MAINTAINER= ports@FreeBSD.org +MAINTAINER= fuz@fuz.su COMMENT= Creates a PDF file from image files LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_13= ld: error: duplicate symbol: blank_handler -BROKEN_FreeBSD_14= ld: error: duplicate symbol: blank_handler -NOT_FOR_ARCHS= powerpc sparc64 +NOT_FOR_ARCHS= mips mips64 powerpc powerpc64 powerpcspe sparc64 NOT_FOR_ARCHS_REASON= Only works on little endian systems LIB_DEPENDS= libtiff.so:graphics/tiff \ libnetpbm.so:graphics/netpbm USES= bison gmake jpeg localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= brouhaha CFLAGS+= -I${LOCALBASE}/include/netpbm -PORTDOCS= README PLIST_FILES= bin/tumble +PORTDOCS= README OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e \ 's|^\(CFLAGS\) =.*|\1 := $$(CFLAGS)| ; \ s|^\(LDFLAGS\) =.*|\1 := $$(LDFLAGS)| ; \ s|-O3|| ; \ s|-lpbm|-lnetpbm| ; \ s|strip|true|' ${WRKSRC}/Makefile do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} tumble \ ${STAGEDIR}${PREFIX}/bin) do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} README \ ${STAGEDIR}${DOCSDIR}) .include diff --git a/graphics/tumble/files/patch-semantics.c b/graphics/tumble/files/patch-semantics.c new file mode 100644 index 000000000000..4e6e5d7d71bb --- /dev/null +++ b/graphics/tumble/files/patch-semantics.c @@ -0,0 +1,11 @@ +--- semantics.c.orig 2021-08-17 12:37:41 UTC ++++ semantics.c +@@ -119,7 +119,7 @@ typedef struct output_page_t + #endif + + +-FILE *yyin; ++extern FILE *yyin; + int line; /* line number in spec file */ + + int bookmark_level; diff --git a/graphics/tumble/files/patch-tumble__input.h b/graphics/tumble/files/patch-tumble__input.h new file mode 100644 index 000000000000..cbac30796308 --- /dev/null +++ b/graphics/tumble/files/patch-tumble__input.h @@ -0,0 +1,8 @@ +--- tumble_input.h.orig 2021-08-17 12:36:31 UTC ++++ tumble_input.h +@@ -71,4 +71,4 @@ void init_jpeg_handler (void); + void init_pbm_handler (void); + void init_png_handler (void); + +-input_handler_t blank_handler; ++extern input_handler_t blank_handler;