freebsd-ports/japanese/dvipdfm/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

60 lines
2.2 KiB
Makefile

# New ports collection makefile for: ja-dvipdfm
# Date created: 07 July 2001
# Whom: HIRATA Yasuyuki <yasu@asuka.net>
#
# $FreeBSD$
#
PORTNAME= dvipdfm
PORTVERSION= 0.13.2c
PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= http://gaspra.kettering.edu/dvipdfm/
PATCH_SITES= http://hamilcar.phys.kyushu-u.ac.jp/~hirata/dvipdfm/distfiles/
PATCHFILES= ${DISTNAME}-jpatch-p1c.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= yasu@asuka.net
COMMENT= DVI to PDF converter (Japanese version)
BUILD_DEPENDS= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/japanese/ptex-base \
${LOCALBASE}/share/doc/cmpsfont/README:${PORTSDIR}/print/cmpsfont
LIB_DEPENDS= png:${PORTSDIR}/graphics/png
RUN_DEPENDS= kpsewhich:${PORTSDIR}/japanese/ptex-base \
${LOCALBASE}/share/doc/cmpsfont/README:${PORTSDIR}/print/cmpsfont
MAN1= dvipdfm.1
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_AUTOCONF_VER= 213
CONFIGURE_ENV+= CPPFLAGS="${CXXFLAGS} -I${PREFIX}/include" \
CFLAGS="${CFLAGS} -I${PREFIX}/include" \
LDFLAGS=-L${PREFIX}/lib
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
pre-install:
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
post-install:
strip ${PREFIX}/bin/dvipdfm
strip ${PREFIX}/bin/ebb
mktexlsr
${MKDIR} ${PREFIX}/share/dvipdfm
${INSTALL_DATA} ${WRKSRC}/latex-support/dvipdfm.def ${PREFIX}/share/dvipdfm
# ${INSTALL_DATA} ${WRKSRC}/latex-support/hdvipdfm.def ${PREFIX}/share/dvipdfm
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/dvipdfm.tex ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/mwicks.bb ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/mwicks.jpeg ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/transistor.bb ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/transistor.eps ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/transistor.fig ${PREFIX}/share/texmf/doc/dvipdfm
${INSTALL_DATA} ${WRKSRC}/doc/transistor.pdf ${PREFIX}/share/texmf/doc/dvipdfm
( cd ${PREFIX}/share/texmf/doc/dvipdfm ; tex dvipdfm ; ${PREFIX}/bin/dvipdfm dvipdfm ; ${RM} dvipdfm.log dvipdfm.dvi )
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>