aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorTatsuki Makino <tatsuki_makino@hotmail.com>2021-11-08 03:00:00 +0000
committerYasuhiro Kimura <yasu@FreeBSD.org>2021-11-15 03:32:29 +0000
commit3c9bc2e8fb6fa738f9c79950fccebeba4892efd4 (patch)
treed71ce07356e8176ed5aff211065a59e1384cd135 /security
parent7c128489a0c87ffedfc76e429ebf938504bdd166 (diff)
downloadports-3c9bc2e8fb6fa738f9c79950fccebeba4892efd4.tar.gz
ports-3c9bc2e8fb6fa738f9c79950fccebeba4892efd4.zip
security/p5-Mcrypt: Fix link issue and miscellaneous cleanup
* Fix issue that Mcrypt.so is linked with libltdl.so if the port is build under the environment where devel/libltdl is installed * Add TIMESTAMP to distinfo * Switch to DISTVERSION * Regenerate pkg-plist with `make makeplist` * Pet portlint and portclippy PR: 259210 MFH: 2021Q4 (cherry picked from commit e6a10825e4a359c04e254766107ac4769ea60bd1)
Diffstat (limited to 'security')
-rw-r--r--security/p5-Mcrypt/Makefile13
-rw-r--r--security/p5-Mcrypt/distinfo1
-rw-r--r--security/p5-Mcrypt/pkg-plist2
3 files changed, 10 insertions, 6 deletions
diff --git a/security/p5-Mcrypt/Makefile b/security/p5-Mcrypt/Makefile
index 563ecd3cc551..adbf5c381d71 100644
--- a/security/p5-Mcrypt/Makefile
+++ b/security/p5-Mcrypt/Makefile
@@ -1,8 +1,8 @@
# Created by: Tatsuki Makino <tatsuki_makino@hotmail.com>
PORTNAME= Mcrypt
-PORTVERSION= 2.5.7.0
-PORTREVISION= 3
+DISTVERSION= 2.5.7.0
+PORTREVISION= 4
CATEGORIES= security perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:JESUS
@@ -16,11 +16,14 @@ LICENSE_COMB= dual
LIB_DEPENDS= libmcrypt.so:security/libmcrypt
-CONFIGURE_ENV= MCRYPT_CPPFLAGS=${CPPFLAGS}
+USES= localbase:ldflags perl5
USE_PERL5= configure
-USES= perl5
+CONFIGURE_ENV= MCRYPT_CPPFLAGS=${CPPFLAGS:Q} \
+ MCRYPT_LDFLAGS=${LDFLAGS:Q}
-CPPFLAGS+= -I${LOCALBASE}/include
+post-patch:
+ ${REINPLACE_CMD} -e 's, -lltdl,,'\
+ ${WRKSRC}/Makefile.PL
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Mcrypt/Mcrypt.so
diff --git a/security/p5-Mcrypt/distinfo b/security/p5-Mcrypt/distinfo
index 9c016b18999d..8f0ba05b653b 100644
--- a/security/p5-Mcrypt/distinfo
+++ b/security/p5-Mcrypt/distinfo
@@ -1,2 +1,3 @@
+TIMESTAMP = 1636340400
SHA256 (Mcrypt-2.5.7.0.tar.gz) = 998d4b64d3c45ee78edd0ceb8a63f8206a4ab2fb3f4afb26837abcc2697ee48b
SIZE (Mcrypt-2.5.7.0.tar.gz) = 6214
diff --git a/security/p5-Mcrypt/pkg-plist b/security/p5-Mcrypt/pkg-plist
index cbb3814e76af..07c761f663cf 100644
--- a/security/p5-Mcrypt/pkg-plist
+++ b/security/p5-Mcrypt/pkg-plist
@@ -1,4 +1,4 @@
-%%PERL5_MAN3%%/Mcrypt.3.gz
%%SITE_ARCH%%/Mcrypt.pm
%%SITE_ARCH%%/auto/Mcrypt/Mcrypt.so
%%SITE_ARCH%%/auto/Mcrypt/autosplit.ix
+%%PERL5_MAN3%%/Mcrypt.3.gz