diff --git a/textproc/flex/Makefile b/textproc/flex/Makefile index 3531b5ceb45f..907c550523f3 100644 --- a/textproc/flex/Makefile +++ b/textproc/flex/Makefile @@ -8,6 +8,9 @@ MASTER_SITES= https://github.com/westes/flex/releases/download/v${PORTVERSION}/ MAINTAINER= johans@FreeBSD.org COMMENT= Fast lexical analyzer generator +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + BUILD_DEPENDS= help2man:misc/help2man \ gm4:devel/m4 RUN_DEPENDS= gm4:devel/m4 @@ -28,19 +31,15 @@ OPTIONS_SUB= yes NLS_USES= gettext iconv NLS_CONFIGURE_ENABLE= nls -.include - post-patch: .SILENT ${REINPLACE_CMD} -Ee 's/tests//' \ -e '/mode=compile ..CC/s/\\$$/-fPIC -DPIC &/' \ ${WRKSRC}/Makefile.in ${RM} ${WRKSRC}/doc/*.info* -post-install: -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${CP} -r ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/ ${RM} ${STAGEDIR}${EXAMPLESDIR}/Makefile.am -.endif .include diff --git a/textproc/flex/pkg-descr b/textproc/flex/pkg-descr index 3b01acfbc2b5..caac39fe7ad3 100644 --- a/textproc/flex/pkg-descr +++ b/textproc/flex/pkg-descr @@ -10,4 +10,4 @@ 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/ +WWW: https://github.com/westes/flex