notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Ukraine
Some details on the 2023-01-16 website outage.
We just rebooted with several updates: * new HMTLify code * no port maintainer is now highly visible (e.g. https://freshports.org/security/sssd/) * fixed search logic error when using plain/ text details at https://github.com/FreshPorts/freshports/releases/tag/2.2.34
Port details
flex Fast lexical analyzer generator
2.6.4_2 textproc on this many watch lists=33 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Version of this port present on the latest quarterly branch.
Maintainer: mandree@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2006-08-13 15:57:21
Last Update: 2022-09-07 21:58:51
Commit Hash: fb16dfe
People watching this port, also watch:: bison, fontconfig, libgcrypt, m4, glib
Also Listed In: devel
License: BSD3CLAUSE
Description:
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
pkg-plist: as obtained via: make generate-plist
Expand this list (34 items)
Collapse this list.
  1. /usr/local/share/licenses/flex-2.6.4_2/catalog.mk
  2. /usr/local/share/licenses/flex-2.6.4_2/LICENSE
  3. /usr/local/share/licenses/flex-2.6.4_2/BSD3CLAUSE
  4. bin/flex
  5. bin/flex++
  6. include/flex/FlexLexer.h
  7. lib/libfl.a
  8. man/man1/flex.1.gz
  9. share/locale/ca/LC_MESSAGES/flex.mo
  10. share/locale/da/LC_MESSAGES/flex.mo
  11. share/locale/de/LC_MESSAGES/flex.mo
  12. share/locale/en@boldquot/LC_MESSAGES/flex.mo
  13. share/locale/en@quot/LC_MESSAGES/flex.mo
  14. share/locale/eo/LC_MESSAGES/flex.mo
  15. share/locale/es/LC_MESSAGES/flex.mo
  16. share/locale/fi/LC_MESSAGES/flex.mo
  17. share/locale/fr/LC_MESSAGES/flex.mo
  18. share/locale/ga/LC_MESSAGES/flex.mo
  19. share/locale/hr/LC_MESSAGES/flex.mo
  20. share/locale/ko/LC_MESSAGES/flex.mo
  21. share/locale/nl/LC_MESSAGES/flex.mo
  22. share/locale/pl/LC_MESSAGES/flex.mo
  23. share/locale/pt_BR/LC_MESSAGES/flex.mo
  24. share/locale/ro/LC_MESSAGES/flex.mo
  25. share/locale/ru/LC_MESSAGES/flex.mo
  26. share/locale/sr/LC_MESSAGES/flex.mo
  27. share/locale/sv/LC_MESSAGES/flex.mo
  28. share/locale/tr/LC_MESSAGES/flex.mo
  29. share/locale/vi/LC_MESSAGES/flex.mo
  30. share/locale/zh_CN/LC_MESSAGES/flex.mo
  31. share/locale/zh_TW/LC_MESSAGES/flex.mo
  32. @owner
  33. @group
  34. @mode
Collapse this list.
Dependency lines:
  • flex>0:textproc/flex
To install the port:
cd /usr/ports/textproc/flex/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/flex
  • pkg install flex
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: flex
Flavors: there is no flavor information for this port.
distinfo:

Packages (timestamps in pop-ups are UTC):
flex
ABIlatestquarterly
FreeBSD:11:aarch642.6.42.6.4_2
FreeBSD:11:amd642.6.4_22.6.4_2
FreeBSD:11:armv62.6.12.6.4_2
FreeBSD:11:i3862.6.4_22.6.4_2
FreeBSD:11:mipspkg-falloutpkg-fallout
FreeBSD:11:mips642.6.12.6.4_2
FreeBSD:12:aarch642.6.42.6.4_2
FreeBSD:12:amd642.6.4_22.6.4_2
FreeBSD:12:armv62.6.42.6.4_2
FreeBSD:12:armv72.6.42.6.4_2
FreeBSD:12:i3862.6.4_22.6.4_2
FreeBSD:12:mipspkg-falloutpkg-fallout
FreeBSD:12:mips642.6.42.6.4_2
FreeBSD:12:powerpc64pkg-fallout2.6.4_2
FreeBSD:13:aarch642.6.4_22.6.4_2
FreeBSD:13:amd642.6.4_22.6.4_2
FreeBSD:13:armv62.6.4_22.6.4_2
FreeBSD:13:armv72.6.4_22.6.4_2
FreeBSD:13:i3862.6.4_22.6.4_2
FreeBSD:13:mipspkg-falloutpkg-fallout
FreeBSD:13:mips642.6.4_22.6.4_2
FreeBSD:13:powerpc642.6.4_22.6.4_2
FreeBSD:13:riscv64pkg-fallout2.6.4_2
FreeBSD:14:aarch642.6.4_2pkg-fallout
FreeBSD:14:amd642.6.4_2pkg-fallout
FreeBSD:14:armv62.6.4_2pkg-fallout
FreeBSD:14:armv72.6.4_2pkg-fallout
FreeBSD:14:i3862.6.4_2pkg-fallout
FreeBSD:14:mipspkg-falloutpkg-fallout
FreeBSD:14:mips642.6.4_2pkg-fallout
FreeBSD:14:powerpc642.6.4_2pkg-fallout
FreeBSD:14:riscv642.6.4_2pkg-fallout
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. help2man : misc/help2man
  2. gmake>=4.3 : devel/gmake
  3. makeinfo : print/texinfo
  4. msgfmt : devel/gettext-tools
Runtime dependencies:
  1. indexinfo : print/indexinfo
Library dependencies:
  1. libintl.so : devel/gettext-runtime
This port is required by:
for Build
  1. cad/cascade-compiler
  2. databases/mdbtools
  3. databases/slony1v2
  4. databases/virtuoso
  5. devel/cdecl
  6. devel/creduce
  7. devel/ghidra
Expand this list (54 items / 47 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. devel/ispc
  3. devel/kdevelop-pg-qt
  4. devel/libmatheval
  5. devel/netsurf-buildsystem
  6. devel/nsgenbind
  7. editors/libreoffice
  8. emulators/wine
  9. emulators/wine-devel
  10. emulators/wine-proton
  11. games/dreamchess
  12. lang/basic256
  13. lang/maude
  14. lang/parrot
  15. mail/filtermail
  16. math/openturns
  17. multimedia/libaacs
  18. net/daq
  19. net/libpcap
  20. net-mgmt/docsis
  21. science/rdkit
  22. security/openvas
  23. security/pkcs11-tools
  24. security/zeek
  25. sysutils/grub2-bhyve
  26. sysutils/grub2-efi
  27. sysutils/grub2-pcbsd
  28. textproc/confetti
  29. textproc/libcue
  30. textproc/libwapcaplet
  31. Collapse this list.

Deleted ports which required this port:

Expand this list of 18 deleted ports
  1. devel/kBuild-devel*
  2. devel/kdevelop-pg-qt-kde4*
  3. devel/ruby-langscan*
  4. dns/knot*
  5. dns/knot1*
  6. editors/libreoffice6*
  7. emulators/wine-compholio*
  8. emulators/wine-staging*
  9. graphics/ender*
  10. lang/hiphop-php*
  11. lang/qore*
  12. lang/rakudo*
  13. mail/libmapi*
  14. math/abakus*
  15. net/opensips*
  16. sysutils/grub2*
  17. www/egueb*
  18. www/webkit-qt5*
  19. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
Options name:
USES:
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://github.com/westes/flex/releases/download/v2.6.4/
Collapse this list.

Number of commits found: 50

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
07 Sep 2022 21:58:51
commit hash:fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash:fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash:fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash:fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.6.4_2
07 Sep 2022 21:10:59
commit hash:b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash:b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash:b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash:b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.6.4_2
14 Oct 2021 11:02:06
commit hash:ceea17788aa3235a4b7bc41eb39cf44ae118600ccommit hash:ceea17788aa3235a4b7bc41eb39cf44ae118600ccommit hash:ceea17788aa3235a4b7bc41eb39cf44ae118600ccommit hash:ceea17788aa3235a4b7bc41eb39cf44ae118600c files touched by this commit
Stefan Eßer (se) search for other commits by this committer
textproc/flex: Add CPE information

Approved by:	portmgr (blanket)
2.6.4_2
05 Aug 2021 12:07:23
commit hash:828ef20174745ff612b26c16e17a40f458854ab2commit hash:828ef20174745ff612b26c16e17a40f458854ab2commit hash:828ef20174745ff612b26c16e17a40f458854ab2commit hash:828ef20174745ff612b26c16e17a40f458854ab2 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
textproc/flex: set *_FOR_BUILD variables...

...to unbreak the build when ax_prog_cc_for_build.m4 hunts a host
compiler in path, pushing CC aside.

PR:		257622
Reported by:	Evgeniy Khramtsov
2.6.4_2
07 Apr 2021 08:09:01
commit hash:cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash:cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash:cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash:cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2.6.4_2
06 Apr 2021 14:31:07
commit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344ebcommit hash:305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
2.6.4_2
22 Mar 2020 23:12:35
Revision:528943Original commit files touched by this commit
mandree search for other commits by this committer
textproc/flex: Remove GNU m4 and GNU bison requisites

...bapt@ reports this port works perfectly with base yacc and m4.

Submitted by:	bapt@ (Baptiste Daroussin)
Differential Revision:	https://reviews.freebsd.org/D24016
2.6.4_1
21 Dec 2019 18:23:20
Revision:520576Original commit files touched by this commit
mandree search for other commits by this committer
Take maintainership.
2.6.4_1
04 Nov 2019 21:21:04
Revision:516744Original commit files touched by this commit
rene search for other commits by this committer
Returns johans's ports to the pool after safekeeping his commit bit.
2.6.4_1
10 Nov 2018 18:12:58
Revision:484628Original commit files touched by this commit
bapt search for other commits by this committer
Install texinfo files (GNU info) into ${PREFIX}/share/info

After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2.6.4
23 Jun 2018 17:48:52
Revision:473146Original commit files touched by this commit
yuri search for other commits by this committer
textproc/flex: Update 2.6.1 -> 2.6.4

Changelog:
https://github.com/westes/flex/releases/tag/v2.6.4

PR:		226546
Approved by:	johans@FreeBSD.org (maintainer timeout; 103 days)
2.6.1
20 Apr 2018 09:03:45
Revision:467814Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Add LICENSE
- Switch to options helpers
- Update WWW

Approved by:	portmgr blanket
2.6.1
28 Jul 2017 21:45:20
Revision:446854Original commit files touched by this commit
jkim search for other commits by this committer
Set MAKEINFO to the full path of makeinfo when USES=makeinfo is set.

PR:		221027
Reviewed by:	mat
Approved by:	portmgr (antoine)
2.6.1
21 Oct 2016 12:51:41
Revision:424411Original commit files touched by this commit Sanity Test Failure
mat search for other commits by this committer
${RM} already has -f.

PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2.6.1
01 Apr 2016 14:25:18
Revision:412349Original commit files touched by this commit
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.

With hat:	portmgr
Sponsored by:	Absolight
2.6.1
10 Mar 2016 21:46:53
Revision:410797Original commit files touched by this commit
johans search for other commits by this committer
Update flex to 2.6.1
2.6.0
18 Nov 2015 08:08:44
Revision:401847Original commit files touched by this commit
johans search for other commits by this committer
Update to flex 2.6.0
Announcement: http://sourceforge.net/p/flex/mailman/message/34626590/
Add port examples
2.5.39_2
15 Nov 2014 16:26:33
Revision:372605Original commit files touched by this commit
antoine search for other commits by this committer
Cleanup plist
2.5.39_2
01 Sep 2014 07:26:15
Revision:366840Original commit files touched by this commit
tijl search for other commits by this committer
Add USES=libtool
2.5.39_1
20 Aug 2014 00:25:18
Revision:365430Original commit files touched by this commit
grembo search for other commits by this committer
Remove deletion of LC_MESSAGES directories that are owned by devel/gettext

Reviewed by:	bdrewery
Approved by:	bdrewery
2.5.39_1
25 Jun 2014 08:58:09
Revision:359209Original commit files touched by this commit
bapt search for other commits by this committer
Fix build on system built WITHOUT_INFO

With hat:	portmgr
2.5.39_1
05 May 2014 15:51:04
Revision:353028Original commit files touched by this commit
johans search for other commits by this committer
Make sure static library libfl_pic.a contains position independent code.
This fixes compilation of ports that insist on linking this library
into a shared object file (specifically devel/libmatheval).

While here, remove unused ranlib patch lines.

PR:		ports/189323
Submitted by:	tijl
2.5.39
28 Mar 2014 08:56:42
Revision:349396Original commit files touched by this commit
johans search for other commits by this committer
Update to flex 2.5.39
2.5.38_2
21 Feb 2014 09:35:23
Revision:345345Original commit files touched by this commit
johans search for other commits by this committer
Disable installation of shared libraries.
These cause problems with several ports.

PR:		ports/186790
Submitted by:	Matthew Rezny <matthew@reztek.cz> and others
2.5.38_1
16 Feb 2014 15:55:37
Revision:344588Original commit files touched by this commit
johans search for other commits by this committer
Add missing .la files to plist

Reported by:	miwi
2.5.38
13 Feb 2014 18:21:10
Revision:344136Original commit files touched by this commit
johans search for other commits by this committer
Update to flex 2.5.38
2.5.37_1
13 Jan 2014 05:41:30
Revision:339569Original commit files touched by this commit
johans search for other commits by this committer
Avoid running ranlib again during installation phase,
this fixes packaging as a regular user

Submitted by:	antoine
2.5.37_1
11 Jan 2014 20:47:00
Revision:339454Original commit files touched by this commit
johans search for other commits by this committer
Enable stage support + minor cleanups
2.5.37_1
20 Sep 2013 23:17:32
Revision:327773Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
textproc)
2.5.37_1
11 Jul 2013 04:54:06
Revision:322739Original commit files touched by this commit
johans search for other commits by this committer
Add GNU m4 as run dependency of flex

Submitted by:	antoine
2.5.37
27 Apr 2013 18:25:25
Revision:316683Original commit files touched by this commit
mva search for other commits by this committer
- Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig and
  USE_GETTEXT=yes to USES=gettext while here
2.5.37
26 Apr 2013 10:44:29
Revision:316596Original commit files touched by this commit
ak search for other commits by this committer
- Convert USE_GETTEXT to USES (part 4)

Approved by:	portmgr (bapt)
2.5.37
08 Mar 2013 11:32:12
Revision:313635Original commit files touched by this commit
bapt search for other commits by this committer
Convert USE_BISON to USES= bison

It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the
following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2.5.37
02 Sep 2012 11:48:12
Revision:303545Original commit files touched by this commit
johans search for other commits by this committer
- Update flex to 2.5.37
- Reduce Makefile header
2.5.36
23 Jul 2012 20:54:13
Original commit files touched by this commit
johans search for other commits by this committer
Update flex to 2.5.36 (bugfix release)
2.5.35_4
27 Jun 2012 19:52:13
Original commit files touched by this commit
johans search for other commits by this committer
Convert to new options framework
2.5.35_4
03 Jul 2011 14:40:25
Original commit files touched by this commit
ohauer search for other commits by this committer
-remove MD5
2.5.35_4
31 May 2010 02:01:56
Original commit files touched by this commit
ade search for other commits by this committer
Bounce PORTREVISION for gettext-related ports.  Have fun, ya'll.
2.5.35_3
26 Feb 2010 11:35:01
Original commit files touched by this commit
johans search for other commits by this committer
Fix build breakage caused by missing -E in previous commit. Oops.

Feature safe:   yes
2.5.35_3
26 Feb 2010 08:12:39
Original commit files touched by this commit
johans search for other commits by this committer
Fix port installation for the INSTALL_AS_USER case.
This doesn't affect regular (root) installs.

PR:             ports/143933
Submitted by:   gerald
Feature safe:   yes
2.5.35_3
23 Feb 2010 18:07:14
Original commit files touched by this commit
johans search for other commits by this committer
Update my mail address to @FreeBSD.org

Feature safe:   yes
2.5.35_3
27 Dec 2009 23:26:17
Original commit files touched by this commit
johans search for other commits by this committer
- Enable NLS
- Claim maintainership
2.5.35_2
07 Dec 2009 19:12:01
Original commit files touched by this commit
johans search for other commits by this committer
Install additional info file.
The flex man page is very brief and points to this info file.

PR:             ports/139163
Submitted by:   Anonymous <swell.k@gmail.com>
2.5.35_1
22 Aug 2009 00:37:17
Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Switch SourceForge ports to the new File Release System: categories starting
with T,U,V
2.5.35_1
05 Jan 2009 08:35:39
Original commit files touched by this commit
makc search for other commits by this committer
install flex header to include/flex, thus resolve build problem for those, who
use system flex (e.g. ports/126520)

Submitted by:   Andy Fawcett via irc
Approved by:    miwi (mentor)
2.5.35
07 Sep 2008 00:19:05
Original commit files touched by this commit
linimon search for other commits by this committer
Reset infofarmer due to maintainer-timeouts and no response to email.

Hat:    portmgr
2.5.35
28 Feb 2008 13:24:48
Original commit files touched by this commit
sat search for other commits by this committer
- Update to 2.5.35
2.5.34
13 Dec 2007 09:22:30
Original commit files touched by this commit
sat search for other commits by this committer
- Update to 2.5.34
2.5.33_1
17 Oct 2007 10:13:01
Original commit files touched by this commit
ade search for other commits by this committer
Migration from bison 1.x to 2.x

PR:             117086
Tested by:      -exp runs
2.5.33
13 Aug 2006 15:30:22
Original commit files touched by this commit
sat search for other commits by this committer
Add port textproc/flex:

Flex is a tool for generating scanners. A scanner, sometimes called a
tokenizer, is a program which recognizes lexical patterns in text. The
flex program reads user-specified input files, or its standard input
if no file names are given, for a description of a scanner to generate.
The description is in the form of pairs of regular expressions and C
code, called rules. Flex generates a C source file named, "lex.yy.c",
which defines the function yylex(). The file "lex.yy.c" can be compiled
and linked to produce an executable. When the executable is run, it
analyzes its input for occurrences of text matching the regular
expressions for each rule. Whenever it finds a match, it executes the
corresponding C code.

WWW: http://flex.sourceforge.net/

Note that there's flex 2.5.4 in the base system. This port provides
a newer version for programs that require it, textproc/xxdiff for one.

Number of commits found: 50