freebsd-ports/textproc/bibtool/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

33 lines
845 B
Makefile

# Created by: Rong-En Fan <rafan@infor.org>
# $FreeBSD$
PORTNAME= bibtool
PORTVERSION= 2.59
CATEGORIES= textproc print
MASTER_SITES= TEX_CTAN/biblio/bibtex/utils/${PORTNAME}
DISTNAME= BibTool-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= Command line manipulation of BibTeX files
USE_TEX= latex:build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-kpathsea
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
WRKSRC= ${WRKDIR}/BibTool
MAKEFILE= makefile
EXTRACT_AFTER_ARGS=-k # work around bad symlink in 2.58 tarfile
INSTALL_TARGET= install install.man
PORTDOCS= bibtool.pdf ref_card.pdf c_lib.pdf
post-build:
cd ${WRKSRC} && ${MAKE} doc && ${MAKE} doc
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>