diff options
author | leeym <leeym@FreeBSD.org> | 2004-04-01 22:32:47 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-04-01 22:32:47 +0800 |
commit | b9d685861cc98f4b6999454aa48169442429eaab (patch) | |
tree | fc27e778ae43b72be93622bacf8f5cdd642ef2cd | |
parent | bd54de6b668bf5cbd8379ad8c139a5108c5e47b3 (diff) | |
download | freebsd-ports-gnome-b9d685861cc98f4b6999454aa48169442429eaab.tar.gz freebsd-ports-gnome-b9d685861cc98f4b6999454aa48169442429eaab.tar.zst freebsd-ports-gnome-b9d685861cc98f4b6999454aa48169442429eaab.zip |
- Respect CC & CFLAGS [1]
- Utilize PORTDOCS
PR: [1] 65031
Submitted by: [1] michael johnson <ahze@ahze.net>
-rw-r--r-- | textproc/antiword/Makefile | 7 | ||||
-rw-r--r-- | textproc/antiword/pkg-plist | 16 |
2 files changed, 6 insertions, 17 deletions
diff --git a/textproc/antiword/Makefile b/textproc/antiword/Makefile index 2d095aa915f9..f1ab5bdb4473 100644 --- a/textproc/antiword/Makefile +++ b/textproc/antiword/Makefile @@ -17,17 +17,22 @@ USE_REINPLACE= yes INSTALL_TARGET= global_install MAN1= antiword.1 +PORTDOCS= COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \ + QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc post-patch: @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' \ -e 's,/usr/share,${PREFIX}/share,g' \ ${WRKSRC}/Makefile.* ${WRKSRC}/*.[ch] + @${REINPLACE_CMD} -e 's,gcc,${CC},g' \ + -e 's,-O2,${CFLAGS},g' \ + ${WRKSRC}/${MAKEFILE} ${WRKSRC}/Makefile.* post-install: @${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/Docs/* ${DOCSDIR} + @cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/textproc/antiword/pkg-plist b/textproc/antiword/pkg-plist index 2392b3042550..b7b61ef3f086 100644 --- a/textproc/antiword/pkg-plist +++ b/textproc/antiword/pkg-plist @@ -28,20 +28,4 @@ bin/kantiword %%DATADIR%%/koi8-r.txt %%DATADIR%%/koi8-u.txt %%DATADIR%%/roman.txt -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/Emacs -%%PORTDOCS%%%%DOCSDIR%%/Exmh -%%PORTDOCS%%%%DOCSDIR%%/FAQ -%%PORTDOCS%%%%DOCSDIR%%/History -%%PORTDOCS%%%%DOCSDIR%%/Mozilla -%%PORTDOCS%%%%DOCSDIR%%/Mutt -%%PORTDOCS%%%%DOCSDIR%%/Netscape -%%PORTDOCS%%%%DOCSDIR%%/QandA -%%PORTDOCS%%%%DOCSDIR%%/ReadMe -%%PORTDOCS%%%%DOCSDIR%%/antiword.1 -%%PORTDOCS%%%%DOCSDIR%%/antiword.man -%%PORTDOCS%%%%DOCSDIR%%/antiword.php -%%PORTDOCS%%%%DOCSDIR%%/testdoc.doc -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% |