Skip to content

Commit

Permalink
www/p5-HTTP-MHTTP: Unbreak on HEAD
Browse files Browse the repository at this point in the history
- Add LICENSE ART10 GPLv1+
- Pet portclippy
  • Loading branch information
5u623l20 committed May 2, 2023
1 parent 5660b20 commit 10cb055
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions www/p5-HTTP-MHTTP/Makefile
Expand Up @@ -9,15 +9,28 @@ MAINTAINER= perl@FreeBSD.org
COMMENT= Low level access to the HTTP protocol
WWW= https://metacpan.org/release/HTTP-MHTTP

LICENSE= ART10 GPLv1+
LICENSE_COMB= dual

USES= perl5 ssl
USE_PERL5= configure patch
CONFIGURE_ENV= GOTSSL=yes

CONFIGURE_ARGS= --default
CONFIGURE_ENV= GOTSSL=yes

MAKE_JOBS_UNSAFE= yes

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
CFLAGS+= -Wno-error=int-conversion
.endif

post-patch:
@${PERL} -pi -e 's!(?<=POSSIBLE_SSL_DIRS = qw\().*(?=\);)!${OPENSSLBASE}!;' \
${WRKSRC}/Makefile.PL

.include <bsd.port.mk>
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/HTTP/MHTTP/MHTTP.so

.include <bsd.port.post.mk>

0 comments on commit 10cb055

Please sign in to comment.