summaryrefslogtreecommitdiff
path: root/print/tex-bibtex8/Makefile
diff options
context:
space:
mode:
authorcheusov <cheusov>2012-01-22 16:21:33 +0000
committercheusov <cheusov>2012-01-22 16:21:33 +0000
commit5bce40db1de999f815446adb1ce03b5caa4825a1 (patch)
tree0c6eaf16306693f5e82d7c3963569a525ae03504 /print/tex-bibtex8/Makefile
parent0a669d172a33cbc54a9fd7d8ce1f72516642454e (diff)
downloadpkgsrc-5bce40db1de999f815446adb1ce03b5caa4825a1.tar.gz
A multilanguage implementation of BibTeX 0.99.
(v3.71) "big" BibTeX with full support of 8-bit encodings An enhanced, portable C version of BibTeX. Enhanced by conversion to "big" (32-bit) capacity, addition of run-time selectable capacity and 8-bit support extensions. National character set and sorting order are controlled by an external configuration file. Various examples are included.
Diffstat (limited to 'print/tex-bibtex8/Makefile')
-rw-r--r--print/tex-bibtex8/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/print/tex-bibtex8/Makefile b/print/tex-bibtex8/Makefile
new file mode 100644
index 00000000000..308891b98cb
--- /dev/null
+++ b/print/tex-bibtex8/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/01/22 16:21:33 cheusov Exp $
+#
+
+DISTNAME= tex-bibtex8-3.71
+CATEGORIES= print
+MASTER_SITES= http://mirrors.ctan.org/biblio/bibtex/8-bit/
+DISTFILES= bt371src.zip bt371csf.zip
+
+MAINTAINER= cheusov@NetBSD.org
+HOMEPAGE= http://mirrors.ctan.org/biblio/bibtex/8-bit/
+COMMENT= 8-bit Implementation of BibTeX 0.99 with multilanguage support
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR} # More than one possibility -- please check manually.
+
+MAKE_FILE= unix.mak
+BUILD_TARGET= bibtex-exe
+MAKE_FLAGS+= CFLAGS=${CFLAGS.${PKGSRC_COMPILER}:Q}
+MAKE_FLAGS+= CSF_INPUT_PATH=${PREFIX}/${TEXMFDIR}/bibtex/csf
+MAKE_FLAGS+= BIB_INPUT_PATH=${PREFIX}/${TEXMFDIR}/bibtex/bib
+MAKE_FLAGS+= BST_INPUT_PATH=${PREFIX}/${TEXMFDIR}/bibtex/bst
+
+CFLAGS.gcc= -Wall -Wno-char-subscripts -funsigned-char
+CFLAGS.pcc= ${CFLAGS.gcc}
+CFLAGS.icc= ${CFLAGS.gcc}
+CFLAGS.clang= ${CFLAGS.gcc}
+CFLAGS.sunpro= -xchar=u
+CFLAGS.xlc= -qchars=unsigned
+
+TEXMFDIR= share/texmf-dist
+INSTALLATION_DIRS= bin ${TEXMFDIR}/bibtex/csf
+
+post-build:
+ set -e; cd ${WRKSRC}; \
+ iconv -f cp866 -t koi8-r cp866rus.csf > koi8r.csf; \
+ iconv -f cp866 -t cp1251 cp866rus.csf > cp1251rus.csf
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bibtex ${DESTDIR}${PREFIX}/bin/bibtex8
+ ${INSTALL_DATA} ${WRKSRC}/*.csf ${DESTDIR}${PREFIX}/${TEXMFDIR}/bibtex/csf
+
+.include "../../mk/bsd.pkg.mk"