diff --git a/x11-toolkits/open-motif-devel/Makefile b/x11-toolkits/open-motif-devel/Makefile index 298f7c6f06f1..36f53474ca9d 100644 --- a/x11-toolkits/open-motif-devel/Makefile +++ b/x11-toolkits/open-motif-devel/Makefile @@ -1,58 +1,58 @@ PORTNAME= open-motif PORTVERSION= ${COMMIT_DATE} -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11-toolkits PKGNAMESUFFIX= -devel MAINTAINER= cy@FreeBSD.org COMMENT= Motif X11 Toolkit (industry standard GUI (IEEE 1295)) WWW= https://motif.ics.com/ USE_GITHUB= yes GH_ACCOUNT= cschuber GH_PROJECT= motif GH_TAGNAME= 0f556b08 COMMIT_DATE= 2023.02.16 LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING MAKE_JOBS_UNSAFE= yes CONFLICTS= lesstif CONFLICTS_INSTALL= open-motif USES= autoreconf gmake iconv jpeg libtool:keepla pkgconfig xorg USE_XORG= x11 xaw xbitmaps xext xft xt xmu xrender sm ice LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libpng.so:graphics/png \ libXmu.so:x11-toolkits/libXmu GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --enable-printing=no CPPFLAGS+= -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I${PREFIX}/include USE_CSTD= gnu89 INSTALL_TARGET= install-strip OPTIONS_DEFINE= DOCS post-patch: # fix sections @${FIND} ${WRKSRC}/doc/man/man1 -name '*.1' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|user cmd|1|' @${FIND} ${WRKSRC}/doc/man/man3 -name '*.3' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|library call|3|' # mwmrc is not a kernel interface!! @cd ${WRKSRC}/doc/man && ${CP} -f man4/mwmrc.4 man5/mwmrc.5 @${FIND} ${WRKSRC}/doc/man/man5 -name '*.5' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|special file|5| ; \ s|file formats|5|' @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in BUGREPORT README RELNOTES ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include diff --git a/x11-toolkits/open-motif-devel/files/patch-acinclude.m4 b/x11-toolkits/open-motif-devel/files/patch-acinclude.m4 new file mode 100644 index 000000000000..10b61badcffc --- /dev/null +++ b/x11-toolkits/open-motif-devel/files/patch-acinclude.m4 @@ -0,0 +1,16 @@ +--- acinclude.m4.orig 2023-02-15 16:42:34.000000000 -0800 ++++ acinclude.m4 2023-12-04 15:48:14.815249000 -0800 +@@ -50,7 +50,12 @@ + AC_DEFUN([AM_FUNC_VOID_SPRINTF], + [AC_CACHE_CHECK(whether sprintf returns void, ac_cv_func_void_sprintf, + [AC_TRY_RUN([#include +-int sprintf(); main() { exit(sprintf(".")); }], ++int main() { ++ char buf[1]; ++ int i = sprintf(buf, ""); ++ return 0; ++} ++], + ac_cv_func_void_sprintf=no, ac_cv_func_void_sprintf=yes, ac_cv_func_void_sprintf=yes)]) + if test $ac_cv_func_void_sprintf = no; then + AC_DEFINE(VOID_SPRINTF,1, diff --git a/x11-toolkits/open-motif/Makefile b/x11-toolkits/open-motif/Makefile index e90595a26679..99fa75185d19 100644 --- a/x11-toolkits/open-motif/Makefile +++ b/x11-toolkits/open-motif/Makefile @@ -1,54 +1,54 @@ PORTNAME= open-motif PORTVERSION= 2.3.8 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= x11-toolkits # MASTER_SITES= SF/${PORTNAME}/Motif%202.3.4%20Source%20Code/ MASTER_SITES= SF/motif/Motif%20${PORTVERSION}%20Source%20Code/ DISTNAME= motif-${PORTVERSION} MAINTAINER= cy@FreeBSD.org COMMENT= Motif X11 Toolkit (industry standard GUI (IEEE 1295)) WWW= https://motif.ics.com/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING MAKE_JOBS_UNSAFE= yes CONFLICTS= lesstif CONFLICTS_INSTALL= open-motif-devel USES= autoreconf gmake iconv jpeg libtool:keepla pkgconfig xorg USE_XORG= x11 xaw xbitmaps xext xft xt xmu xrender sm ice LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libpng.so:graphics/png \ libXmu.so:x11-toolkits/libXmu GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --enable-printing=no CPPFLAGS+= -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I${PREFIX}/include USE_CSTD= gnu89 INSTALL_TARGET= install-strip OPTIONS_DEFINE= DOCS post-patch: # fix sections @${FIND} ${WRKSRC}/doc/man/man1 -name '*.1' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|user cmd|1|' @${FIND} ${WRKSRC}/doc/man/man3 -name '*.3' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|library call|3|' # mwmrc is not a kernel interface!! @cd ${WRKSRC}/doc/man && ${CP} -f man4/mwmrc.4 man5/mwmrc.5 @${FIND} ${WRKSRC}/doc/man/man5 -name '*.5' -maxdepth 1 | \ ${XARGS} ${REINPLACE_CMD} -e 's|special file|5| ; \ s|file formats|5|' @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in BUGREPORT README RELNOTES ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include diff --git a/x11-toolkits/open-motif/files/patch-acinclude.m4 b/x11-toolkits/open-motif/files/patch-acinclude.m4 new file mode 100644 index 000000000000..0b2e3c8d1a8f --- /dev/null +++ b/x11-toolkits/open-motif/files/patch-acinclude.m4 @@ -0,0 +1,16 @@ +--- acinclude.m4.orig 2017-08-27 19:29:50.000000000 -0700 ++++ acinclude.m4 2023-12-04 15:48:12.951361000 -0800 +@@ -50,7 +50,12 @@ + AC_DEFUN([AM_FUNC_VOID_SPRINTF], + [AC_CACHE_CHECK(whether sprintf returns void, ac_cv_func_void_sprintf, + [AC_TRY_RUN([#include +-int sprintf(); main() { exit(sprintf(".")); }], ++int main() { ++ char buf[1]; ++ int i = sprintf(buf, ""); ++ return 0; ++} ++], + ac_cv_func_void_sprintf=no, ac_cv_func_void_sprintf=yes, ac_cv_func_void_sprintf=yes)]) + if test $ac_cv_func_void_sprintf = no; then + AC_DEFINE(VOID_SPRINTF,1,