Date: Sat, 17 May 2014 13:03:53 -0500 (CDT) From: Corey Halpin <chalpin@cs.wisc.edu> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/189892: mail/crm114: STAGE support [PATCH] Message-ID: <1061077747612897480.enqueue@spiff.home.crhalpin.org> Resent-Message-ID: <201405171810.s4HIA0F5073951@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 189892 >Category: ports >Synopsis: mail/crm114: STAGE support [PATCH] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat May 17 18:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Corey Halpin >Release: FreeBSD 9.2-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD spiff.home.crhalpin.org 9.2-RELEASE-p4 FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:05:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: Staging support for mail/crm114, better portlint compliance, fix building with clang. >How-To-Repeat: NA >Fix: --- crm_stage.patch begins here --- diff -ruN crm114.orig/Makefile crm114/Makefile --- crm114.orig/Makefile 2014-05-16 18:27:52.996241376 -0500 +++ crm114/Makefile 2014-05-17 08:57:41.775262819 -0500 @@ -17,13 +17,19 @@ MAINTAINER= chalpin@cs.wisc.edu COMMENT= A Markov based SpamFilter -LIB_DEPENDS= tre.5:${PORTSDIR}/textproc/libtre +LICENSE= GPLv2 + +LIB_DEPENDS= libtre.so:${PORTSDIR}/textproc/libtre CRM114RELEASENAME=BlameMichelson USES= gettext iconv +USE_CSTD=gnu89 + +OPTIONS_DEFINE= NORMALIZEMIME +NORMALIZEMIME_DESC= Normalize MIME encoding -MAKE_ARGS= CC="${CC}" prefix="${PREFIX}" \ +MAKE_ARGS= CC="${CC}" prefix="${STAGEDIR}${PREFIX}" \ LIBS="${LIBS}" \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" @@ -43,31 +49,16 @@ blacklist.mfp.example whitelist.mfp.example crm114-mode.el \ reto_procmailrc.recipe -OPTIONS_DEFINE= PGO - -NO_STAGE= yes .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MPGO} -MAKE_ARGS+= CFLAGS="${CFLAGS} -fprofile-use" \ - LDFLAGS="${LDFLAGS} -fprofile-use" -.else MAKE_ARGS+= CFLAGS="${CFLAGS}" \ LDFLAGS="${LDFLAGS}" -.endif post-patch: @${REINPLACE_CMD} -Ee \ 's,^((LD|C)FLAGS),#\1,;;s,^(prefix=),#\1,;;s,^(.*-install),#\1,' \ ${WRKSRC}/Makefile -.if ${PORT_OPTIONS:MPGO} -.if target(pre-build) -.error Makefile error since pre-build target has already been defined -.endif -pre-build: pgo -.endif - # Peter Jeremy recommended the use of b64decode and md5 20040302 post-install: @${REINPLACE_CMD} -Ee 's|^(.*/openssl base64 -d/)|#\1|' \ @@ -87,30 +78,15 @@ @${REINPLACE_CMD} -Ee 's|^#(.*/b64decode -pr/)|\1|' \ ${WRKSRC}/mailfilter.cf .endif - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} for i in ${CRM_FILES}; do \ - ${INSTALL_DATA} ${WRKSRC}/$${i} ${EXAMPLESDIR}; \ + ${INSTALL_DATA} ${WRKSRC}/$${i} ${STAGEDIR}${EXAMPLESDIR}; \ done -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} @for i in ${WRKSRC}/[^G]*.txt ${WRKSRC}/README; do \ - ${INSTALL_DATA} $${i} ${DOCSDIR}; \ + ${INSTALL_DATA} $${i} ${STAGEDIR}${DOCSDIR}; \ done .endif -.if ${PORT_OPTIONS:MPGO} -pgo: pgo-build pgo-run pgo-clean - -pgo-build: - @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} CFLAGS="${CFLAGS} -fprofile-generate" LDFLAGS="${LDFLAGS} -fprofile-generate" ${ALL_TARGET}) - -pgo-run: -# Check everything to generate profiling information. -# We will ignore any errors. - @-(cd ${BUILD_WRKSRC}; ${MAKE} megatest) - -pgo-clean: - @(cd ${BUILD_WRKSRC}; ${MAKE} clean) -.endif # if ${PORT_OPTIONS:MPGO} - .include <bsd.port.mk> --- crm_stage.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1061077747612897480.enqueue>