mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- update to 0.32
- update MAINTAINER email address - sort pkg-plist - support NOPORTDOCS - respect CC/CFLAGS PR: 31522 Submitted by: maintainer (partially)
This commit is contained in:
parent
db768b64c0
commit
d3609fcba7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50281
6 changed files with 88 additions and 39 deletions
|
@ -6,25 +6,28 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= antiword
|
PORTNAME= antiword
|
||||||
PORTVERSION= 0.31
|
PORTVERSION= 0.32
|
||||||
CATEGORIES= textproc
|
CATEGORIES= textproc
|
||||||
MASTER_SITES= http://www.winfield.demon.nl/linux/
|
MASTER_SITES= http://www.winfield.demon.nl/linux/
|
||||||
|
|
||||||
MAINTAINER= leeym@cae.ce.ntu.edu.tw
|
MAINTAINER= leeym@leeym.com
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}
|
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}
|
||||||
|
|
||||||
MAN1= antiword.1
|
MAN1= antiword.1
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${PERL5} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/antiword.h
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/antiword ${PREFIX}/bin
|
@${INSTALL_PROGRAM} ${WRKSRC}/antiword ${PREFIX}/bin
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/kantiword ${PREFIX}/bin
|
@${INSTALL_SCRIPT} ${WRKSRC}/kantiword ${PREFIX}/bin
|
||||||
@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
|
@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
|
||||||
|
@${MKDIR} ${DATADIR}
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/Resources/* ${DATADIR}
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${PREFIX}/share/doc/antiword
|
@${MKDIR} ${DOCSDIR}
|
||||||
.for file in COPYING ChangeLog FAQ History Netscape QandA ReadMe
|
@${INSTALL_DATA} ${WRKSRC}/Docs/* ${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/Docs/${file} ${PREFIX}/share/doc/antiword
|
|
||||||
.endfor
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
MD5 (antiword-0.31.tar.gz) = bacc1727e44453f8ae38f2cdb7b7c54d
|
MD5 (antiword-0.32.tar.gz) = bbbef871b7e7bea4df2102c8f634f81e
|
||||||
|
|
29
textproc/antiword/files/patch-Makefile.Linux
Normal file
29
textproc/antiword/files/patch-Makefile.Linux
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- Makefile.Linux.orig Sat Jul 21 15:58:03 2001
|
||||||
|
+++ Makefile.Linux Sat Nov 3 15:30:36 2001
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
# Makefile for antiword (Linux version)
|
||||||
|
#
|
||||||
|
|
||||||
|
-CC = gcc
|
||||||
|
+CC ?= gcc
|
||||||
|
LD = gcc
|
||||||
|
|
||||||
|
# must be equal to DEBUG or NDEBUG
|
||||||
|
@@ -12,7 +12,7 @@
|
||||||
|
|
||||||
|
LDLIBS =
|
||||||
|
|
||||||
|
-CFLAGS = -Wall -pedantic $(OPT) -D$(DB)
|
||||||
|
+CFLAGS += -Wall -pedantic -D$(DB)
|
||||||
|
LDFLAGS =
|
||||||
|
|
||||||
|
OBJS =\
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
antiword\
|
||||||
|
kantiword
|
||||||
|
|
||||||
|
-INSTALL_DIR = $(HOME)/bin
|
||||||
|
+INSTALL_DIR = $(PREFIX)/bin
|
||||||
|
|
||||||
|
all: $(PROGS)
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
--- antiword.h.orig Thu Nov 30 03:54:14 2000
|
|
||||||
+++ antiword.h Sun Dec 17 05:44:49 2000
|
|
||||||
@@ -41,7 +41,9 @@
|
|
||||||
#endif /* __riscos */
|
|
||||||
#endif /* !PATH_MAX */
|
|
||||||
|
|
||||||
+#ifndef SIZE_T_MAX
|
|
||||||
#define SIZE_T_MAX (size_t)UINT_MAX
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#if defined(__riscos)
|
|
||||||
#define FILE_SEPARATOR "."
|
|
||||||
--- Makefile.orig Sun Dec 17 05:45:07 2000
|
|
||||||
+++ Makefile Sun Dec 17 05:45:47 2000
|
|
||||||
@@ -43,8 +43,7 @@
|
|
||||||
|
|
||||||
kantiword: Unix-only/KDE-only/kantiword.sh
|
|
||||||
@rm -f $@
|
|
||||||
- echo "#!/bin/sh" > $@
|
|
||||||
- cat $? >> $@
|
|
||||||
+ @cat $? >> $@
|
|
||||||
@chmod 750 $@
|
|
||||||
|
|
||||||
.c.o:
|
|
11
textproc/antiword/files/patch-antiword.h
Normal file
11
textproc/antiword/files/patch-antiword.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- antiword.h.orig Sat Oct 27 08:35:52 2001
|
||||||
|
+++ antiword.h Sat Oct 27 08:36:13 2001
|
||||||
|
@@ -143,7 +143,7 @@
|
||||||
|
#define ANTIWORD_DIR "antiword"
|
||||||
|
#define FONTNAMES_FILE "fontname.txt"
|
||||||
|
#else
|
||||||
|
-#define GLOBAL_ANTIWORD_DIR "/opt/antiword/share"
|
||||||
|
+#define GLOBAL_ANTIWORD_DIR "%%PREFIX%%/share/antiword"
|
||||||
|
#define ANTIWORD_DIR ".antiword"
|
||||||
|
#define FONTNAMES_FILE "fontnames"
|
||||||
|
#endif /* __dos */
|
|
@ -1,10 +1,40 @@
|
||||||
bin/antiword
|
bin/antiword
|
||||||
bin/kantiword
|
bin/kantiword
|
||||||
share/doc/antiword/COPYING
|
share/antiword/8859-1.txt
|
||||||
share/doc/antiword/ChangeLog
|
share/antiword/8859-10.txt
|
||||||
share/doc/antiword/FAQ
|
share/antiword/8859-13.txt
|
||||||
share/doc/antiword/History
|
share/antiword/8859-14.txt
|
||||||
share/doc/antiword/Netscape
|
share/antiword/8859-15.txt
|
||||||
share/doc/antiword/QandA
|
share/antiword/8859-2.txt
|
||||||
share/doc/antiword/ReadMe
|
share/antiword/8859-3.txt
|
||||||
@dirrm share/doc/antiword
|
share/antiword/8859-4.txt
|
||||||
|
share/antiword/8859-5.txt
|
||||||
|
share/antiword/8859-6.txt
|
||||||
|
share/antiword/8859-7.txt
|
||||||
|
share/antiword/8859-8.txt
|
||||||
|
share/antiword/8859-9.txt
|
||||||
|
share/antiword/Default
|
||||||
|
share/antiword/Example
|
||||||
|
share/antiword/MacRoman.txt
|
||||||
|
share/antiword/UTF-8.txt
|
||||||
|
share/antiword/Unicode
|
||||||
|
share/antiword/cp1250.txt
|
||||||
|
share/antiword/cp1251.txt
|
||||||
|
share/antiword/cp1252.txt
|
||||||
|
share/antiword/fontnames
|
||||||
|
share/antiword/fontnames.russian
|
||||||
|
share/antiword/koi8-r.txt
|
||||||
|
share/antiword/roman.txt
|
||||||
|
%%PORTDOCS%%share/doc/antiword/COPYING
|
||||||
|
%%PORTDOCS%%share/doc/antiword/ChangeLog
|
||||||
|
%%PORTDOCS%%share/doc/antiword/Exmh
|
||||||
|
%%PORTDOCS%%share/doc/antiword/FAQ
|
||||||
|
%%PORTDOCS%%share/doc/antiword/History
|
||||||
|
%%PORTDOCS%%share/doc/antiword/Netscape
|
||||||
|
%%PORTDOCS%%share/doc/antiword/Mutt
|
||||||
|
%%PORTDOCS%%share/doc/antiword/QandA
|
||||||
|
%%PORTDOCS%%share/doc/antiword/ReadMe
|
||||||
|
%%PORTDOCS%%share/doc/antiword/antiword.1
|
||||||
|
%%PORTDOCS%%share/doc/antiword/antiword.man
|
||||||
|
%%PORTDOCS%%@dirrm share/doc/antiword
|
||||||
|
@dirrm share/antiword
|
||||||
|
|
Loading…
Add table
Reference in a new issue