freebsd-ports/print/xtexsh/Makefile
Hiroki Sato 4e09def2d4 Rectify USE_TEX to support both of teTeX and TeXLive.
TEX_DEFAULT:
	A knob to choose teTeX or TeXLive.  One can specify in /etc/make.conf.

USE_TEX:
	A knob for port developers.  Valid keywords are listed in
	bsd.tex.mk.
2013-05-11 17:58:55 +00:00

58 lines
1.6 KiB
Makefile

# New ports collection makefile for: xtexsh
# Date created: 11 August 2001
# Whom: Jean-Sebastien Roy <js@jeannot.org>
#
# $FreeBSD$
#
PORTNAME= xtexsh
PORTVERSION= 1.4.2
PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= http://www.mat.univie.ac.at/~gerald/ftp/xtexsh/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk-based simple TeX interface
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
NO_BUILD= yes
USE_TEX= latex
USE_TK_WRAPPER= yes
INSTALLS_ICONS= yes
MAN1= xtexsh.1
MANCOMPRESSED= yes
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin|${LOCALBASE}/bin|g ; \
s|"/etc|"${PREFIX}/etc| ; \
s|exec bash|exec sh|' ${WRKSRC}/xtexsh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/xtexshrc ${PREFIX}/etc
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/xtexsh.desktop ${PREFIX}/share/applications
@${MKDIR} ${PREFIX}/share/icons/locolor/16x16/apps
${INSTALL_DATA} ${WRKSRC}/xtexsh-mini.png \
${PREFIX}/share/icons/locolor/16x16/apps/xtexsh.png
@${MKDIR} ${PREFIX}/share/icons/locolor/32x32/apps
${INSTALL_DATA} ${WRKSRC}/xtexsh.png \
${PREFIX}/share/icons/locolor/32x32/apps/xtexsh.png
@${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/xtexsh.png ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR}
.endif
.include <bsd.port.mk>