update some devel utils

This commit is contained in:
2022-09-12 09:26:12 +02:00
parent 4338bce9b0
commit 1546a6ec2c
34 changed files with 556 additions and 15 deletions

13
_alpha/cscope/Makefile Normal file
View File

@@ -0,0 +1,13 @@
PORTNAME= cscope
DISTVERSION= 15.9
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
MAINTAINER= moritz@schmi.tt
COMMENT= Interactive C source code browser
USES= cpe ncurses
GNU_CONFIGURE= yes
.include <bsd.port.mk>

3
_alpha/cscope/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1595090614
SHA256 (cscope-15.9.tar.gz) = c5505ae075a871a9cd8d9801859b0ff1c09782075df281c72c23e72115d9f159
SIZE (cscope-15.9.tar.gz) = 613948

View File

@@ -0,0 +1,20 @@
--- src/exec.c.orig 2020-10-05 09:17:52 UTC
+++ src/exec.c
@@ -55,7 +55,7 @@ static sighandler_t oldsigtstp; /* old value of SIGTST
#ifndef __MSDOS__ /* none of these is needed, there */
static int join(pid_t p);
-static int myexecvp(char *a, char **args);
+void myexecvp(char *a, char **args);
static pid_t myfork(void);
#endif
@@ -111,7 +111,7 @@ execute(char *a, ...) /* note: "exec" is already defin
/* myexecvp is an interface to the execvp system call to
* modify argv[0] to reference the last component of its path-name.
*/
-static int
+void
myexecvp(char *a, char **args)
{
char msg[MSGLEN + 1];

View File

@@ -0,0 +1,11 @@
--- src/input.c.orig 2020-10-05 19:47:54 UTC
+++ src/input.c
@@ -45,7 +45,7 @@
#include <stdlib.h>
#include <errno.h>
#if HAVE_SYS_TERMIOS_H
-#include <sys/termios.h>
+#include <termios.h>
#endif
static jmp_buf env; /* setjmp/longjmp buffer */

View File

@@ -0,0 +1,11 @@
--- src/invlib.c.orig 2020-10-05 13:04:06 UTC
+++ src/invlib.c
@@ -103,7 +103,7 @@ static int zipf[ZIPFSIZE + 1];
long
invmake(char *invname, char *invpost, FILE *infile)
{
- unsigned char *s;
+ char *s;
long num;
int i;
long fileindex = 0; /* initialze, to avoid warning */

8
_alpha/cscope/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
cscope is a screen-oriented software development tool that allows the user to
browse through C source files for specified code elements. It can find symbols,
global definitions, functions called by a function, functions calling a
function, arbitrary regexp patterns and much more. cscope can be used for
projects of all sizes. Vim and Emacs integration is available.
WWW: http://cscope.sourceforge.net/
https://sourceforge.net/projects/cscope/

3
_alpha/cscope/pkg-plist Normal file
View File

@@ -0,0 +1,3 @@
bin/cscope
bin/ocs
man/man1/cscope.1.gz

16
_alpha/egypt/Makefile Normal file
View File

@@ -0,0 +1,16 @@
PORTNAME= egypt
PORTVERSION= 1.11
CATEGORIES= devel perl5
MASTER_SITES= http://www.gson.org/egypt/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Create call graphs of C programs
USES= perl5 shebangfix
USE_PERL5= configure
SHEBANG_FILES= egypt
PLIST_FILES= bin/${PORTNAME} ${SITE_MAN1}/egypt.1.gz
.include <bsd.port.mk>

3
_alpha/egypt/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1647569227
SHA256 (egypt-1.11.tar.gz) = a204880539b82c013d991e70b278ef5d4a34cd5b68c14aae0612b16ac92d9ec4
SIZE (egypt-1.11.tar.gz) = 8808

8
_alpha/egypt/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
Egypt is a simple tool for creating call graphs of C programs. Egypt
neither analyzes source code nor lays out graphs. Instead, it leaves
the source code analysis to GCC and the graph layout to Graphviz, both
of which are better at their respective jobs than egypt itself could
ever hope to be. Egypt is simply a very small Perl script that glues
these existing tools together.
WWW: http://www.gson.org/egypt/

View File

@@ -0,0 +1,29 @@
#
# $Id$
#
PORTNAME= gindent
PORTVERSION= 2.2.10
CATEGORIES= devel
MASTER_SITES= GNU/indent
DISTNAME= indent-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU indent
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --program-prefix=g
MAKE_JOBS_UNSAFE= yes
CONFIGURE_ARGS+= --disable-nls
INFO= indent
post-patch:
${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
.include <bsd.port.mk>
#EOF

View File

@@ -0,0 +1,2 @@
SHA256 (indent-2.2.10.tar.gz) = 8a9b41be5bfcab5d8c1be74204b10ae78789fc3deabea0775fdced8677292639
SIZE (indent-2.2.10.tar.gz) = 702667

View File

@@ -0,0 +1,198 @@
--- src/args.c.orig 2008-03-11 19:50:42.000000000 +0100
+++ src/args.c 2013-11-04 07:16:35.000000000 +0100
@@ -163,6 +163,7 @@ static int exp_hnl = 0;
static int exp_i = 0;
static int exp_il = 0;
static int exp_ip = 0;
+static int exp_knf = 0;
static int exp_kr = 0;
static int exp_l = 0;
static int exp_lc = 0;
@@ -237,6 +238,30 @@ typedef struct
static void usage (void);
+#define BSD_PRO_SETTINGS {"orig", PRO_SETTINGS, 0, ONOFF_NA,\
+ (int *) "-nbap\0-nbad\0-bbo\0-hnl\0-bc\0-br\0-brs\0-c33\0-cd33\0-cdb\0-ce\0\
+-ci4\0-cli0\0-cp33\0-di16\0-fc1\0-fca\0-i4\0-l75\0-lp\0-npcs\0-nprs\0-psl\0\
+-sc\0-sai\0-saf\0-saw\0-nsob\0-nss\0-ts8\0",\
+ &exp_orig}
+
+#define KNF_PRO_SETTINGS {"knf", PRO_SETTINGS, 0, ONOFF_NA,\
+ (int *) "-bad\0-bap\0-nbbb\0-nbc\0-bbo\0-br\0-brs\0-nbs\0-c33\0-cd33\0-cdb\0\
+-ce\0-ci4\0-cli0\0-cp33\0-ncs\0-d0\0-di0\0-ndj\0-nfc1\0-nfca\0-hnl\0-i8\0-ip8\0\
+-l79\0-nlp\0-npcs\0-nprs\0-psl\0-sai\0-saf\0-saw\0-sc\0-nsob\0-nss\0",\
+ &exp_knf}
+
+#define KR_PRO_SETTINGS {"kr", PRO_SETTINGS, 0, ONOFF_NA,\
+ (int *) "-nbad\0-bap\0-nbc\0-bbo\0-hnl\0-br\0-brs\0-c33\0-cd33\0\
+-ncdb\0-ce\0-ci4\0-cli0\0-d0\0-di1\0-nfc1\0-i4\0-ip0\0-l75\0-lp\0-npcs\0\
+-nprs\0-npsl\0-sai\0-saf\0-saw\0-cs\0-nsc\0-nsob\0-nfca\0-cp33\0-nss\0",\
+ &exp_kr}
+
+#define GNU_PRO_SETTINGS {"gnu", PRO_SETTINGS, 0, ONOFF_NA,\
+ (int *) "-nbad\0-bap\0-bbo\0-hnl\0-nbc\0-bl\0-bls\0-ncdb\0-cs\0-nce\0-di2\0\
+-ndj\0-nfc1\0-i2\0-ip5\0-lp\0-pcs\0-nprs\0-psl\0-nsc\0-sai\0-saf\0-saw\0\
+-nsob\0-bli2\0-cp1\0-nfca\0",\
+ &exp_gnu}
+
#ifdef BERKELEY_DEFAULTS
/**
@@ -264,63 +289,66 @@ const pro_ty pro[] =
#endif
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi},
{"pcs", PRO_BOOL, false, ON, &settings.proc_calls_space, &exp_pcs},
+ BSD_PRO_SETTINGS,
{"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o},
{"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v},
- {"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut},
- {"nss", PRO_BOOL, false, OFF, &settings.space_sp_semicolon, &exp_ss},
- {"nsob", PRO_BOOL, false, OFF, &settings.swallow_optional_blanklines, &exp_sob},
- {"nsc", PRO_BOOL, true, OFF, &settings.star_comment_cont, &exp_sc},
- {"nsaw", PRO_BOOL, true, OFF, &settings.space_after_while, &exp_saw},
- {"nsai", PRO_BOOL, true, OFF, &settings.space_after_if, &exp_sai},
- {"nsaf", PRO_BOOL, true, OFF, &settings.space_after_for, &exp_saf},
- {"npsl", PRO_BOOL, true, OFF, &settings.procnames_start_line, &exp_psl},
- {"nprs", PRO_BOOL, false, OFF, &settings.parentheses_space, &exp_prs},
+ {"nut", PRO_BOOL, false, OFF, &settings.use_tabs, &exp_ut},
+ {"nss", PRO_BOOL, true, OFF, &settings.space_sp_semicolon, &exp_ss},
+ {"nsob", PRO_BOOL, true, OFF, &settings.swallow_optional_blanklines, &exp_sob},
+ {"nsc", PRO_BOOL, false, OFF, &settings.star_comment_cont, &exp_sc},
+ {"nsaw", PRO_BOOL, false, OFF, &settings.space_after_while, &exp_saw},
+ {"nsai", PRO_BOOL, false, OFF, &settings.space_after_if, &exp_sai},
+ {"nsaf", PRO_BOOL, false, OFF, &settings.space_after_for, &exp_saf},
+ {"npsl", PRO_BOOL, false, OFF, &settings.procnames_start_line, &exp_psl},
+ {"nprs", PRO_BOOL, true, OFF, &settings.parentheses_space, &exp_prs},
{"npro", PRO_IGN, 0, ONOFF_NA, 0, &exp_pro},
#ifdef PRESERVE_MTIME
{"npmt", PRO_BOOL, false, OFF, &settings.preserve_mtime, &exp_pmt},
#endif
- {"npcs", PRO_BOOL, false, OFF, &settings.proc_calls_space, &exp_pcs},
+ {"npcs", PRO_BOOL, true, OFF, &settings.proc_calls_space, &exp_pcs},
{"nlps", PRO_BOOL, false, OFF, &settings.leave_preproc_space, &exp_lps},
{"nlp", PRO_BOOL, true, OFF, &settings.lineup_to_parens, &exp_lp},
- {"nip", PRO_SETTINGS, 0, ONOFF_NA, (int *) "-ip0", &exp_nip},
- {"nhnl", PRO_BOOL, true, OFF, &settings.honour_newlines, &exp_hnl},
+ {"nip", PRO_SETTINGS, 0, ONOFF_NA, (int *) "-ip0\0", &exp_nip},
+ {"nhnl", PRO_BOOL, false, OFF, &settings.honour_newlines, &exp_hnl},
{"nfca", PRO_BOOL, true, OFF, &settings.format_comments, &exp_fca},
{"nfc1", PRO_BOOL, true, OFF, &settings.format_col1_comments, &exp_fc1},
{"neei", PRO_BOOL, false, OFF, &settings.extra_expression_indent, &exp_eei},
- {"ndj", PRO_BOOL, false, OFF, &settings.ljust_decl, &exp_dj},
- {"ncs", PRO_BOOL, true, OFF, &settings.cast_space, &exp_cs},
- {"nce", PRO_BOOL, true, OFF, &settings.cuddle_else, &exp_ce},
+ {"ndj", PRO_BOOL, true, OFF, &settings.ljust_decl, &exp_dj},
+ {"ncs", PRO_BOOL, false, OFF, &settings.cast_space, &exp_cs},
+ {"nce", PRO_BOOL, false, OFF, &settings.cuddle_else, &exp_ce},
{"ncdw", PRO_BOOL, false, OFF, &settings.cuddle_do_while, &exp_cdw},
- {"ncdb", PRO_BOOL, true, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb},
+ {"ncdb", PRO_BOOL, false, OFF, &settings.comment_delimiter_on_blankline, &exp_cdb},
{"nbs", PRO_BOOL, false, OFF, &settings.blank_after_sizeof, &exp_bs},
{"nbfda", PRO_BOOL, false, OFF, &settings.break_function_decl_args, &exp_bfda},
{"nbfde", PRO_BOOL, false, OFF, &settings.break_function_decl_args_end, &exp_bfde},
{"nbc", PRO_BOOL, true, ON, &settings.leave_comma, &exp_bc},
- {"nbbo", PRO_BOOL, true, OFF, &settings.break_before_boolean_operator, &exp_bbo},
- {"nbbb", PRO_BOOL, false, OFF, &settings.blanklines_before_blockcomments, &exp_bbb},
+ {"nbbo", PRO_BOOL, false, OFF, &settings.break_before_boolean_operator, &exp_bbo},
+ {"nbbb", PRO_BOOL, true, OFF, &settings.blanklines_before_blockcomments, &exp_bbb},
{"nbap", PRO_BOOL, false, OFF, &settings.blanklines_after_procs, &exp_bap},
{"nbadp", PRO_BOOL, false, OFF, &settings.blanklines_after_declarations_at_proctop, &exp_badp},
{"nbad", PRO_BOOL, false, OFF, &settings.blanklines_after_declarations, &exp_bad},
{"nbacc", PRO_BOOL, false, OFF, &settings.blanklines_around_conditional_compilation, &exp_bacc},
{"linux", PRO_SETTINGS, 0, ONOFF_NA, LINUX_SETTINGS_STRING, &exp_linux},
{"lps", PRO_BOOL, false, ON, &settings.leave_preproc_space, &exp_lps},
- {"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp},
+ {"lp", PRO_BOOL, false, ON, &settings.lineup_to_parens, &exp_lp},
{"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc},
{"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l},
- {"kr", PRO_SETTINGS, 0, ONOFF_NA, KR_SETTINGS_STRING, &exp_kr},
- {"ip", PRO_INT, 4, ONOFF_NA, &settings.indent_parameters, &exp_ip},
- {"i", PRO_INT, 4, ONOFF_NA, &settings.ind_size, &exp_i},
+ KR_PRO_SETTINGS,
+/* This is now the default. */
+ KNF_PRO_SETTINGS,
+ {"ip", PRO_INT, 8, ONOFF_NA, &settings.indent_parameters, &exp_ip},
{"il", PRO_INT, DEFAULT_LABEL_INDENT, ONOFF_NA, &settings.label_offset, &exp_il},
+ {"i", PRO_INT, 8, ONOFF_NA, &settings.ind_size, &exp_i},
{"hnl", PRO_BOOL, true, ON, &settings.honour_newlines, &exp_hnl},
{"h", PRO_FUNCTION, 0, ONOFF_NA, (int *) usage, &exp_version},
- {"gnu", PRO_SETTINGS, 0, ONOFF_NA, GNU_SETTINGS_STRING, &exp_gnu},
- {"fca", PRO_BOOL, true, ON, &settings.format_comments, &exp_fca},
- {"fc1", PRO_BOOL, true, ON, &settings.format_col1_comments, &exp_fc1},
+ GNU_PRO_SETTINGS,
+ {"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca},
+ {"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1},
{"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei},
{"dj", PRO_BOOL, false, ON, &settings.ljust_decl, &exp_dj},
- {"di", PRO_INT, 16, ONOFF_NA, &settings.decl_indent, &exp_di},
+ {"di", PRO_INT, 0, ONOFF_NA, &settings.decl_indent, &exp_di},
{"d", PRO_INT, 0, ONOFF_NA, &settings.unindent_displace, &exp_d},
- {"cs", PRO_BOOL, true, ON, &settings.cast_space, &exp_cs},
+ {"cs", PRO_BOOL, false, ON, &settings.cast_space, &exp_cs},
{"cp", PRO_INT, 33, ONOFF_NA, &settings.else_endif_col, &exp_cp},
{"cli", PRO_INT, 0, ONOFF_NA, &settings.case_indent, &exp_cli},
{"ci", PRO_INT, 4, ONOFF_NA, &settings.continuation_indent, &exp_ci},
@@ -341,12 +369,12 @@ const pro_ty pro[] =
{"bl", PRO_BOOL, true, OFF, &settings.btype_2, &exp_bl},
{"bfda", PRO_BOOL, false, ON, &settings.break_function_decl_args, &exp_bfda},
{"bfde", PRO_BOOL, false, ON, &settings.break_function_decl_args_end, &exp_bfde},
- {"bc", PRO_BOOL, true, OFF, &settings.leave_comma, &exp_bc},
+ {"bc", PRO_BOOL, false, OFF, &settings.leave_comma, &exp_bc},
{"bbo", PRO_BOOL, true, ON, &settings.break_before_boolean_operator, &exp_bbo},
{"bbb", PRO_BOOL, false, ON, &settings.blanklines_before_blockcomments, &exp_bbb},
- {"bap", PRO_BOOL, false, ON, &settings.blanklines_after_procs, &exp_bap},
- {"badp", PRO_BOOL, false, ON, &settings.blanklines_after_declarations_at_proctop, &exp_badp},
- {"bad", PRO_BOOL, false, ON, &settings.blanklines_after_declarations, &exp_bad},
+ {"bap", PRO_BOOL, true, ON, &settings.blanklines_after_procs, &exp_bap},
+ {"badp", PRO_BOOL, true, ON, &settings.blanklines_after_declarations_at_proctop, &exp_badp},
+ {"bad", PRO_BOOL, true, ON, &settings.blanklines_after_declarations, &exp_bad},
{"bacc", PRO_BOOL, false, ON, &settings.blanklines_around_conditional_compilation, &exp_bacc},
{"T", PRO_KEY, 0, ONOFF_NA, 0, &exp_T},
{"ppi", PRO_INT, 0, ONOFF_NA, &settings.force_preproc_width, &exp_ppi},
@@ -381,7 +409,7 @@ const pro_ty pro[] =
#endif
{"pi", PRO_INT, -1, ONOFF_NA, &settings.paren_indent, &exp_pi},
{"pcs", PRO_BOOL, true, ON, &settings.proc_calls_space, &exp_pcs},
- {"orig", PRO_SETTINGS, 0, ONOFF_NA, ORIG_SETTINGS_STRING, &exp_orig},
+ BSD_PRO_SETTINGS,
{"o", PRO_BOOL, false, ON, &settings.expect_output_file, &exp_o},
{"nv", PRO_BOOL, false, OFF, &settings.verbose, &exp_v},
{"nut", PRO_BOOL, true, OFF, &settings.use_tabs, &exp_ut},
@@ -425,14 +453,15 @@ const pro_ty pro[] =
{"lp", PRO_BOOL, true, ON, &settings.lineup_to_parens, &exp_lp},
{"lc", PRO_INT, DEFAULT_RIGHT_COMMENT_MARGIN, ONOFF_NA, &settings.comment_max_col, &exp_lc},
{"l", PRO_INT, DEFAULT_RIGHT_MARGIN, ONOFF_NA, &settings.max_col, &exp_l},
- {"kr", PRO_SETTINGS, 0, ONOFF_NA, KR_SETTINGS_STRING, &exp_kr},
+ KR_PRO_SETTINGS,
+ KNF_PRO_SETTINGS,
{"il", PRO_INT, DEFAULT_LABEL_INDENT, ONOFF_NA, &settings.label_offset, &exp_il},
{"ip", PRO_INT, 5, ONOFF_NA, &settings.indent_parameters, &exp_ip},
{"i", PRO_INT, 2, ONOFF_NA, &settings.ind_size, &exp_i},
{"hnl", PRO_BOOL, true, ON, &settings.honour_newlines, &exp_hnl},
{"h", PRO_FUNCTION, 0, ONOFF_NA, (int *) usage, &exp_version},
/* This is now the default. */
- {"gnu", PRO_SETTINGS, 0, ONOFF_NA, GNU_SETTINGS_STRING, &exp_gnu},
+ GNU_PRO_SETTINGS,
{"fca", PRO_BOOL, false, ON, &settings.format_comments, &exp_fca},
{"fc1", PRO_BOOL, false, ON, &settings.format_col1_comments, &exp_fc1},
{"eei", PRO_BOOL, false, ON, &settings.extra_expression_indent, &exp_eei},
@@ -593,6 +622,9 @@ const long_option_conversion_ty option_c
{"blank-lines-after-declarations", "bad"},
{"blank-lines-after-commas", "bc"},
{"blank-before-sizeof", "bs"},
+ {"berkeley-kernel-style", "knf"},
+ {"berkeley-kernel-normal-form", "knf"},
+ {"kernel-normal-form", "knf"},
{"berkeley-style", "orig"},
{"berkeley", "orig"},
{"Bill-Shannon", "bs"},
@@ -798,7 +830,7 @@ extern int set_option(
if (!found)
{
- DieError(invocation_error, _("%s: unknown option \"%s\"\n"), option_source, option - 1);
+ DieError(invocation_error, _("%s: unknown option \"%s\"\n"), option_source, option - option_length);
}
else
{

View File

@@ -0,0 +1,17 @@
--- doc/Makefile.in.orig 2008-03-11 19:54:15.000000000 +0100
+++ doc/Makefile.in 2013-11-04 06:57:00.000000000 +0100
@@ -602,10 +602,10 @@ uninstall-am: uninstall-dvi-am uninstall
uninstall-pdf-am uninstall-ps-am
-all-local: html
-install-data-local: install-html
-installdirs-local: installdirs-html
-uninstall-local: uninstall-html
+all-local: # html
+install-data-local: # install-html
+installdirs-local: # installdirs-html
+uninstall-local: # uninstall-html
html: html-$(HTMLSTYLE)
install-html: install-html-$(HTMLSTYLE)

View File

@@ -0,0 +1,14 @@
--- src/indent.h.orig 2008-03-11 19:50:42.000000000 +0100
+++ src/indent.h 2013-11-04 06:57:00.000000000 +0100
@@ -135,9 +135,9 @@ typedef enum bb_code
bb_cast
} bb_code_ty;
-#define DEFAULT_RIGHT_MARGIN 78
+#define DEFAULT_RIGHT_MARGIN 79
-#define DEFAULT_RIGHT_COMMENT_MARGIN 78
+#define DEFAULT_RIGHT_COMMENT_MARGIN 79
#define DEFAULT_LABEL_INDENT -2

View File

@@ -0,0 +1,11 @@
--- src/output.c.orig 2008-03-11 19:50:42.000000000 +0100
+++ src/output.c 2010-06-27 16:29:17.000000000 +0200
@@ -71,7 +71,7 @@
RCSTAG_CC ("$Id$");
-static FILE * output = NULL;
+FILE * output = NULL;
static BOOLEAN inhibited = 0;
static buf_break_st_ty * buf_break_list = NULL;

View File

@@ -0,0 +1,4 @@
The `indent' program changes the appearance of a C program by
inserting or deleting whitespace.
WWW: http://www.gnu.org/software/indent/indent.html

View File

@@ -0,0 +1,2 @@
bin/gindent
man/man1/gindent.1.gz

View File

@@ -10,7 +10,7 @@ MASTER_SITES+= http://ftp.gnu.org/gnu/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
CATEGORIES= devel
PKGNAMEPREFIX= ${TARGET}-
GCC_VERSION= 10.4.0
GCC_VERSION= 10.4.0
MAINTAINER= homeunix7@gmail.com
COMMENT= GNU Compiler Collection for bare metal arm cross-development
@@ -58,9 +58,11 @@ CONFIGURE_ARGS+= --disable-shared
CONFIGURE_ARGS+= --infodir=${LOCALBASE}/info/${TARGET}
CONFIGURE_ARGS+= --with-as=${LOCALBASE}/bin/${TARGET}-as
CONFIGURE_ARGS+= --with-ld=${LOCALBASE}/bin/${TARGET}-ld
MAKE_ARGS+= AWK=${LOCALBASE}/bin/gawk
MAKE_ARGS+= INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
CONFIGURE_ARGS+= --disable-decimal-float
CONFIGURE_ARGS+= --disable-libffi
CONFIGURE_ARGS+= --disable-libgomp
@@ -78,16 +80,6 @@ CONFIGURE_ENV+= ac_cv_path_SED=${LOCALBASE}/bin/gsed
CONFIGURE_ARGS+= --disable-libstdcxx
CONFIGURE_ARGS+= --with-newlib
CONFIGURE_ARGS+= --disable-decimal-float
CONFIGURE_ARGS+= --disable-libffi
CONFIGURE_ARGS+= --disable-libgomp
CONFIGURE_ARGS+= --disable-libmudflap
CONFIGURE_ARGS+= --disable-libquadmath
CONFIGURE_ARGS+= --disable-libssp
CONFIGURE_ARGS+= --disable-libstdcxx-pch
CONFIGURE_ARGS+= --disable-threads
CONFIGURE_ARGS+= --disable-tls
PATCH_STRIP= -p2
CONFIGURE_WRKSRC= ${WRKSRC}/build

View File

@@ -32,7 +32,7 @@ CONFIGURE_ARGS+= --enable-multilib
##CONFIGURE_ARGS+= --disable-newlib-supplied-syscalls
#CONFIGURE_ARGS+= --enable-newlib-io-long-long
#CONFIGURE_ARGS+= --enable-newlib-io-c99-formats
CONFIGURE_ARGS+= --enable-newlib-io-c99-formats
#CONFIGURE_ARGS+= --enable-newlib-register-fini
#CONFIGURE_ARGS+= --enable-newlib-retargetable-locking
#CONFIGURE_ARGS+= --disable-newlib-supplied-syscalls
@@ -46,9 +46,9 @@ CONFIGURE_ARGS+= --disable-newlib-wide-orient
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --enable-lite-exit
CONFIGURE_ARGS+= --enable-newlib-global-atexit
CONFIGURE_ARGS+= --enable-newlib-nano-formatted-io
CONFIGURE_ARGS+= --enable-newlib-nano-malloc
CONFIGURE_ARGS+= --enable-newlib-reent-small
#CONFIGURE_ARGS+= --enable-newlib-nano-formatted-io
#CONFIGURE_ARGS+= --enable-newlib-nano-malloc
#CONFIGURE_ARGS+= --enable-newlib-reent-small
CONFIGURE_ARGS+= --enable-newlib-retargetable-locking
#post-extract:

23
devel/capstone5/Makefile Normal file
View File

@@ -0,0 +1,23 @@
PORTNAME= capstone
DISTVERSION= 5.0-rc2
CATEGORIES= devel
PKGNAMESUFFIX= 5
MAINTAINER= bofh@FreeBSD.org
COMMENT= Multi-platform, multi-architecture disassembly framework
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= capstone-engine
USE_LDCONFIG= yes
MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" INSTALL_LIB="${INSTALL_LIB}"
TEST_ENV= ${MAKE_ENV} LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib
TEST_TARGET= check
pre-test:
# Disable broken tests.
${REINPLACE_CMD} -E 's|^(check:.*)fuzzallcorp|\1|' ${WRKSRC}/Makefile
.include <bsd.port.mk>

3
devel/capstone5/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1647203530
SHA256 (capstone-engine-capstone-5.0-rc2_GH0.tar.gz) = 869d94813a887329bc11b4bf1f4410a7a2b7f270176439e90b158127d5a215dd
SIZE (capstone-engine-capstone-5.0-rc2_GH0.tar.gz) = 5761725

16
devel/capstone5/pkg-descr Normal file
View File

@@ -0,0 +1,16 @@
Capstone is a lightweight multi-platform, multi-architecture disassembly
framework.
Features:
* Supported architectures: ARM, ARM64 (aka ARMv8), Mips, PowerPC & X86
* Clean/simple/lightweight/intuitive architecture-neutral API
* Provide details on disassembled instruction (called "decomposer")
* Provide some semantics of the disassembled instruction, such as list of
implicit registers read & written.
* Implemented in pure C language, with bindings for Python, Ruby, C#, Java,
GO, OCaml & Vala available.
* Native support for Windows & *nix (including MacOSX, Linux, *BSD & Solaris)
* Thread-safe by design
* Distributed under the open source BSD license
WWW: http://capstone-engine.org/

25
devel/capstone5/pkg-plist Normal file
View File

@@ -0,0 +1,25 @@
bin/cstool
include/capstone/arm.h
include/capstone/arm64.h
include/capstone/bpf.h
include/capstone/capstone.h
include/capstone/evm.h
include/capstone/m680x.h
include/capstone/m68k.h
include/capstone/mips.h
include/capstone/mos65xx.h
include/capstone/platform.h
include/capstone/ppc.h
include/capstone/riscv.h
include/capstone/sparc.h
include/capstone/systemz.h
include/capstone/tms320c64x.h
include/capstone/wasm.h
include/capstone/x86.h
include/capstone/xcore.h
lib/libcapstone.a
lib/libcapstone.so
lib/libcapstone.so.5
libdata/pkgconfig/capstone.pc
@dir include/capstone
@dir libdata/pkgconfig

16
devel/genromfs/Makefile Normal file
View File

@@ -0,0 +1,16 @@
PORTNAME= genromfs
PORTVERSION= 0.5.7
CATEGORIES= devel
MAINTAINER= tomek@cedro.info
COMMENT= Mkfs equivalent for romfs filesystem
USE_GITHUB= yes
GH_ACCOUNT= chexum
MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
PLIST_FILES= bin/genromfs \
man/man8/genromfs.8.gz
.include <bsd.port.mk>

3
devel/genromfs/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1634516173
SHA256 (chexum-genromfs-0.5.7_GH0.tar.gz) = 2d16d217b11a28809454ddab0cd7c1c0865af8ea79ac0e86af03ab82320f02ab
SIZE (chexum-genromfs-0.5.7_GH0.tar.gz) = 27929

View File

@@ -0,0 +1,36 @@
--- Makefile.orig 2009-02-15 10:48:15 UTC
+++ Makefile
@@ -5,7 +5,7 @@ all: genromfs
PACKAGE = genromfs
VERSION = 0.5.7
-CC = gcc
+CC = cc
CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\"#-g#
LDFLAGS = -s#-g
@@ -17,9 +17,9 @@ FILES = COPYING NEWS ChangeLog Makefile \
checkdist \
.gitignore selftest
-prefix = /usr
-bindir = $(prefix)/bin
-mandir = $(prefix)/man
+PREFIX ?= /usr
+bindir = /bin
+mandir = /man
genromfs: genromfs.o
$(CC) $(LDFLAGS) genromfs.o -o genromfs
@@ -53,11 +53,6 @@ install-bin:
install -m 755 genromfs $(PREFIX)$(bindir)/
install-man:
- # genromfs 0.5 installed the man page in this file,
- # remove it before someone notices :)
- if [ -f $(PREFIX)$(bindir)/man8 ]; then \
- rm -f $(PREFIX)$(bindir)/man8; \
- fi
mkdir -p $(PREFIX)$(mandir)/man8
install -m 644 genromfs.8 $(PREFIX)$(mandir)/man8/

8
devel/genromfs/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
The mkfs equivalent for romfs filesystem. Port created for NuttX RTOS.
ROM FileSystem (ROMFS), read only filesystem, mainly for initial RAM
disks of installation disks. Using this filesystem, you get a very
similar feature, and even the possibility of a small kernel, with a
file system which doesn't take up useful memory from the router
functions in the basement of your office.
WWW: https://github.com/chexum/genromfs

16
devel/stm32flash/Makefile Normal file
View File

@@ -0,0 +1,16 @@
PORTNAME= stm32flash
DISTVERSION= 0.7
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Flash program for STM32 using the ST serial bootloader
GNU_CONFIGURE= yes
USES= gmake autoreconf
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/stm32flash
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1650429705
SHA256 (stm32flash-0.7.tar.gz) = c4c9cd8bec79da63b111d15713ef5cc2cd947deca411d35d6e3065e227dc414a
SIZE (stm32flash-0.7.tar.gz) = 380166

View File

@@ -0,0 +1,10 @@
--- ./Makefile.am.orig 2021-09-05 13:11:40.000000000 +0200
+++ ./Makefile.am 2022-07-31 15:23:15.685984000 +0200
@@ -55,5 +55,7 @@
all:
+man1_MANS = stm32flash.1
+
.PHONY: all
.SILENT: all

View File

@@ -0,0 +1,4 @@
Open source cross platform flash program for the STM32 ARM microcontrollers
using the built-in ST serial bootloader over UART or I2C.
WWW: https://sourceforge.net/projects/stm32flash/

View File

@@ -0,0 +1,2 @@
bin/stm32flash
man/man1/stm32flash.1.gz

View File

@@ -0,0 +1,11 @@
--- ./data/filedefs/filetypes.c.orig 2020-11-08 19:14:52.000000000 +0200
+++ ./data/filedefs/filetypes.c 2022-06-25 09:53:36.719681000 +0200
@@ -33,7 +33,7 @@
[keywords]
# all items must be in one line
-primary=asm auto break case char const continue default do double else enum extern float for goto if inline int long register restrict return short signed sizeof static struct switch typedef union unsigned void volatile while _Alignas _Alignof _Atomic _Bool _Complex _Generic _Imaginary _Noreturn _Static_assert _Thread_local FALSE NULL TRUE
+primary=asm auto bool break case char const continue default do double else enum extern float for goto if inline int long register restrict return short signed sizeof static struct switch typedef union unsigned void volatile while _Alignas _Alignof _Atomic _Bool _Complex _Generic _Imaginary _Noreturn _Static_assert _Thread_local FALSE NULL TRUE
secondary=
# these are the Doxygen keywords
docComment=a addindex addtogroup anchor arg attention author authors b brief bug c callergraph callgraph category cite class code cond copybrief copydetails copydoc copyright date def defgroup deprecated details dir dontinclude dot dotfile e else elseif em endcode endcond enddot endhtmlonly endif endinternal endlatexonly endlink endmanonly endmsc endrtfonly endverbatim endxmlonly enum example exception extends file fn headerfile hideinitializer htmlinclude htmlonly if ifnot image implements include includelineno ingroup interface internal invariant latexonly li line link mainpage manonly memberof msc mscfile n name namespace nosubgrouping note overload p package page par paragraph param post pre private privatesection property protected protectedsection protocol public publicsection ref related relatedalso relates relatesalso remark remarks result return returns retval rtfonly sa section see short showinitializer since skip skipline snippet struct subpage subsection subsubsection tableofcontents test throw throws todo tparam typedef union until var verbatim verbinclude version warning weakgroup xmlonly xrefitem