aboutsummaryrefslogtreecommitdiffstats
path: root/mail/crm114
diff options
context:
space:
mode:
authorlawrance <lawrance@FreeBSD.org>2005-06-10 20:02:43 +0800
committerlawrance <lawrance@FreeBSD.org>2005-06-10 20:02:43 +0800
commitfb5268f85da31beb8c6c2e894bb678732f5af551 (patch)
treeafaca7d96d585f9ee9470c813bed464d943d786e /mail/crm114
parenta430203aa80c52f51c00c535dfff4441d30a0018 (diff)
downloadfreebsd-ports-gnome-fb5268f85da31beb8c6c2e894bb678732f5af551.tar.gz
freebsd-ports-gnome-fb5268f85da31beb8c6c2e894bb678732f5af551.tar.zst
freebsd-ports-gnome-fb5268f85da31beb8c6c2e894bb678732f5af551.zip
Add post-patch reinplace to fix a few of my botches
- don't static link (PORTREVISION++ for this) - obey CFLAGS, LDFLAGS - allow it to build on 4.x as a result of PR: ports/79345 Approved by: maintainer (timeout, 2 months)
Diffstat (limited to 'mail/crm114')
-rw-r--r--mail/crm114/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/crm114/Makefile b/mail/crm114/Makefile
index f0a579d5b153..f49b9e540f29 100644
--- a/mail/crm114/Makefile
+++ b/mail/crm114/Makefile
@@ -7,6 +7,7 @@
PORTNAME= crm114
PORTVERSION= 20041231
+PORTREVISION= 1
# WARNING change versionname in CRM114RELEASENAME too.
# portlint didn't like this variable at this place.
# So I have to put it down in this file.
@@ -17,7 +18,6 @@ MASTER_SITE_SUBDIR= crm114
# to avoid the reduncany of the CRM114RELEASENAME and .src and
# .css extention.
DISTNAME= ${PORTNAME}-${PORTVERSION}.${CRM114RELEASENAME}.src
-DISTFILES= ${DISTNAME}.tar.gz
MAINTAINER= Meno.Abels@Adviser.com
COMMENT= An Markov based SpamFilter
@@ -30,6 +30,7 @@ CRM114RELEASENAME=BlameSanAndreas
USE_GETTEXT= yes
USE_ICONV= yes
+USE_REINPLACE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" \
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
@@ -44,6 +45,10 @@ CRM_FILES= classifytest.crm exectest.crm inserttest_a.crm \
matchtest.crm overalterisolatedtest.crm \
windowtest.crm
+post-patch:
+ @${REINPLACE_CMD} -Ee 's,^((LD|C)FLAGS.*),#\1,;;s,^(prefix=.*),#\1,' \
+ ${WRKSRC}/Makefile
+
# Peter Jeremy recommended the use of b64decode and md5 20040302
post-build:
${MKDIR} ${WRKSRC}/fbsdinstall
@@ -53,7 +58,7 @@ post-build:
${SED} "1s|/usr/bin/crm|${PREFIX}/bin/crm|g" ${WRKSRC}/${i} > ${WRKSRC}/fbsdinstall/${i}
.endfor
${SED} 's|/md5sum/|/md5 -r/|' ${WRKSRC}/mailfilter.crm > ${WRKSRC}/fbsdinstall/mailfilter.crm.md5
- mv ${WRKSRC}/fbsdinstall/mailfilter.crm.md5 ${WRKSRC}/fbsdinstall/mailfilter.crm
+ ${MV} ${WRKSRC}/fbsdinstall/mailfilter.crm.md5 ${WRKSRC}/fbsdinstall/mailfilter.crm
post-install:
.if !defined(NOPORTDOCS)