notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
This referral link gives you 10% off a Fastmail.com account and gives me a discount on my Fastmail account.

Get notified when packages are built

A new feature has been added. FreshPorts already tracks package built by the FreeBSD project. This information is displayed on each port page. You can now get an email when FreshPorts notices a new package is available for something on one of your watch lists. However, you must opt into that. Click on Report Subscriptions on the right, and New Package Notification box, and click on Update.

FInally, under Watch Lists, click on ABI Package Subscriptions to select your ABI (e.g. FreeBSD:14:amd64) & package set (latest/quarterly) combinatio for a given watch list. This is what FreshPorts will look for.

Port details
flex Fast lexical analyzer generator
2.6.4_3 textproc on this many watch lists=32 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 2.6.4_2Version 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: 2024-01-23 21:51:25
Commit Hash: 2f9710a
People watching this port, also watch:: fontconfig, libgcrypt, m4, bison, tiff
Also Listed In: devel
License: BSD3CLAUSE
WWW:
https://github.com/westes/flex
Description:
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
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_3/catalog.mk
  2. /usr/local/share/licenses/flex-2.6.4_3/LICENSE
  3. /usr/local/share/licenses/flex-2.6.4_3/BSD3CLAUSE
  4. bin/flex
  5. bin/flex++
  6. include/flex/FlexLexer.h
  7. lib/libfl.a
  8. share/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:
TIMESTAMP = 1529775608 SHA256 (flex-2.6.4.tar.gz) = e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 SIZE (flex-2.6.4.tar.gz) = 1419096

Packages (timestamps in pop-ups are UTC):
flex
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.6.4_32.6.4_32.6.4_22.6.4_32.6.4_3-2.6.4_2-
FreeBSD:13:quarterly2.6.4_22.6.4_22.6.4_22.6.4_22.6.4_22.6.4_22.6.4_22.6.4_2
FreeBSD:14:latest2.6.4_32.6.4_32.6.4_22.6.4_32.6.4_32.6.4_2-2.6.4_2
FreeBSD:14:quarterly2.6.4_22.6.4_2-2.6.4_22.6.4_22.6.4_22.6.4_22.6.4_2
FreeBSD:15:latest2.6.4_32.6.4_3n/a2.6.4_3n/a2.6.4_32.6.4_32.6.4_3
FreeBSD:15:quarterly--n/a-n/a---
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. gettext-runtime>=0.22_1 : devel/gettext-runtime
  5. 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. devel/cbmc
  5. devel/cdecl
  6. devel/creduce
  7. devel/ghidra
Expand this list (58 items / 51 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. emulators/wine8
  12. games/dreamchess
  13. lang/basic256
  14. lang/maude
  15. lang/parrot
  16. math/igraph
  17. math/openturns
  18. math/py-igraph
  19. multimedia/libaacs
  20. net/daq
  21. net/libpcap
  22. net-mgmt/docsis
  23. science/rdkit
  24. security/openvas
  25. security/pkcs11-tools
  26. security/zeek
  27. sysutils/grub2-bhyve
  28. sysutils/grub2-efi
  29. sysutils/grub2-pcbsd
  30. textproc/confetti
  31. textproc/libcue
  32. textproc/libwapcaplet
  33. Collapse this list.

Deleted ports which required this port:

Expand this list of 20 deleted ports
  1. databases/virtuoso*
  2. devel/kBuild-devel*
  3. devel/kdevelop-pg-qt-kde4*
  4. devel/ruby-langscan*
  5. dns/knot*
  6. dns/knot1*
  7. editors/libreoffice6*
  8. emulators/wine-compholio*
  9. emulators/wine-staging*
  10. emulators/wine7*
  11. graphics/ender*
  12. lang/hiphop-php*
  13. lang/qore*
  14. lang/rakudo*
  15. mail/libmapi*
  16. math/abakus*
  17. net/opensips*
  18. sysutils/grub2*
  19. www/egueb*
  20. www/webkit-qt5*
  21. 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:
===> The following configuration options are available for flex-2.6.4_3: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples NLS=on: Native Language Support ===> Use 'make config' to modify these settings
Options name:
textproc_flex
USES:
bison:alias cpe gmake libtool makeinfo gettext iconv
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: 51

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.6.4_3
23 Jan 2024 21:51:25
commit hash: 2f9710aa91f0b13940e6852462c7d275d751a392commit hash: 2f9710aa91f0b13940e6852462c7d275d751a392commit hash: 2f9710aa91f0b13940e6852462c7d275d751a392commit hash: 2f9710aa91f0b13940e6852462c7d275d751a392 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
textproc/flex: Impelled to share/man

Approved by:    portmgr (blanket)
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: 51