1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Define DOCS
- Don't use -Werror
- Fully respect CFLAGS
This commit is contained in:
Emanuel Haupt 2014-02-21 08:27:11 +00:00
parent 482e4e92eb
commit 6ca3fbc2af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345325
2 changed files with 15 additions and 9 deletions

View File

@ -4,7 +4,6 @@
PORTNAME= altermime
PORTVERSION= 0.3.11.a1
CATEGORIES= mail textproc
#MASTER_SITES= http://www.pldaniels.com/altermime/ \
MASTER_SITES= http://T32.tecnik93.com/FreeBSD/ports/altermime/sources/
MAINTAINER= itetcu@FreeBSD.org
@ -13,17 +12,13 @@ COMMENT= Small C program which is used to alter your mime-encoded mailpacks
PLIST_FILES= bin/altermime
PORTDOCS= CHANGELOG LICENCE README
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s#CFLAGS=-Wall -g#CFLAGS=-Wall ${CFLAGS}#" ${WRKSRC}/Makefile
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- ./Makefile.orig 2014-02-21 09:23:27.770189581 +0100
+++ ./Makefile 2014-02-21 09:24:23.114185601 +0100
@@ -9,7 +9,7 @@
# opposite of a disclaimer.
#ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT
ALTERMIME_OPTIONS=
-CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS)
+CFLAGS=-I.
OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o