1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/print/jadetex/Makefile
Nik Clayton 5038cf5e2c From the PR:
mktexlsr is well called from Makefile but not from the pkg-plist.
        this cause jadetex to not be recognized by tex at runtime.

        Makefile
                MAINTAINER email adress fixed
                PREFIX changed to LOCALBASE where needed
                pkg-message handling added
                do-install rewritten (long lines wrapped)
        pkg-message
                /usr/local changed to LOCALBASE
        pkg-plist
                @comment $FreeBSD$ added
                @exec mktexlsr added

PR:		ports/31151
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-12-03 20:15:59 +00:00

53 lines
1.4 KiB
Makefile

# New ports collection makefile for: jadetex
# Date created: 5 December 1998
# Whom: Sean Kelly <kelly@ad1440.net>
#
# $FreeBSD$
#
PORTNAME= jadetex
PORTVERSION= 3.11
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jadetex
MAINTAINER= nik@FreeBSD.org
BUILD_DEPENDS= hugelatex:${PORTSDIR}/print/hugelatex
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX
MAKE_ENV= TEXMFCNF=${FILESDIR}:${LOCALBASE}/share/texmf/web2c
WRKSRC= ${WRKDIR}/${PORTNAME}
MESSAGE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
post-patch: patch-makefile patch-message
patch-makefile:
@${ECHO} all: betterdefault > ${WRKSRC}/Makefile.tmp
@${ECHO} betterdefault: jadetex.fmt pdfjadetex.fmt >> ${WRKSRC}/Makefile.tmp
@${CAT} ${WRKSRC}/Makefile >> ${WRKSRC}/Makefile.tmp
@${MV} ${WRKSRC}/Makefile.tmp ${WRKSRC}/Makefile
patch-message:
@${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${MESSAGE} > ${PKGMESSAGE}
do-install:
@cd ${WRKSRC}; TEXMFMAIN=$$(kpsewhich -expand-var '$$TEXMFMAIN'); \
${INSTALL_DATA} jadetex.fmt pdfjadetex.fmt $$TEXMFMAIN/web2c; \
${MKDIR} -m 555 $$TEXMFMAIN/tex/jadetex; \
${INSTALL_DATA} dsssl.def jadetex.ltx $$TEXMFMAIN/tex/jadetex
post-install: rebuild-tex-database display-message
rebuild-tex-database:
${LOCALBASE}/bin/mktexlsr
display-message:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>