diff options
-rw-r--r-- | devel/libslang2-devel/Makefile | 7 | ||||
-rw-r--r-- | devel/libslang2/Makefile | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/devel/libslang2-devel/Makefile b/devel/libslang2-devel/Makefile index bd16700a725a..8974146b9315 100644 --- a/devel/libslang2-devel/Makefile +++ b/devel/libslang2-devel/Makefile @@ -28,10 +28,15 @@ INSTALL_TARGET= install install-elf MAN1= slsh.1 DOCSDIR= ${PREFIX}/share/doc/slang +OPTIONS= PCRE "Include pcre support" on \ + PNG "Include png support" on + .if !defined(NOPORTDOCS) PORTDOCS= * .endif +.include <bsd.port.pre.mk> + .if !defined(WITHOUT_PCRE) LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre PLIST_SUB+= PCRE="" @@ -48,8 +53,6 @@ CONFIGURE_ARGS+= --disable-png PLIST_SUB+= PNG="@comment " .endif -.include <bsd.port.pre.mk> - post-patch: .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e 's, install_docs,,g' ${WRKSRC}/src/Makefile.in diff --git a/devel/libslang2/Makefile b/devel/libslang2/Makefile index bd16700a725a..8974146b9315 100644 --- a/devel/libslang2/Makefile +++ b/devel/libslang2/Makefile @@ -28,10 +28,15 @@ INSTALL_TARGET= install install-elf MAN1= slsh.1 DOCSDIR= ${PREFIX}/share/doc/slang +OPTIONS= PCRE "Include pcre support" on \ + PNG "Include png support" on + .if !defined(NOPORTDOCS) PORTDOCS= * .endif +.include <bsd.port.pre.mk> + .if !defined(WITHOUT_PCRE) LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre PLIST_SUB+= PCRE="" @@ -48,8 +53,6 @@ CONFIGURE_ARGS+= --disable-png PLIST_SUB+= PNG="@comment " .endif -.include <bsd.port.pre.mk> - post-patch: .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e 's, install_docs,,g' ${WRKSRC}/src/Makefile.in |