aboutsummaryrefslogtreecommitdiffstats
path: root/print/guitartex/Makefile
blob: df01a4316998ac0f5da706f1a1e187ceaebe8b27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: ijliao
# $FreeBSD$

PORTNAME=   guitartex
PORTVERSION=    2.8.2
PORTREVISION=   3
CATEGORIES= print
MASTER_SITES=   SF/${PORTNAME}/GuitarTeX/GuitarTeX-${PORTVERSION}
## Hack just for this "fix version"
DISTNAME=   ${PORTNAME}-${PORTVERSION}-fix1
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    GuitarTeX converts the Chord format into "normal" LaTeX format

RUN_DEPENDS=    p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
        latex:${PORTSDIR}/print/latex

USES=       perl5
NO_BUILD=   yes

NO_STAGE=   yes
do-configure:
    @${REINPLACE_CMD} -e 's!/usr/local/lib/guitartex!${DATADIR}!g' ${WRKSRC}/gtx2tex.pl
    @${REINPLACE_CMD} -e 's!/usr/local/lib/guitartex!${DATADIR}!g' ${WRKSRC}/guitartex.pl

do-install:
    ${INSTALL} ${WRKSRC}/gtx2tex.pl ${PREFIX}/bin
    ${INSTALL} ${WRKSRC}/guitartex.pl ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/guitartex.conf ${DATADIR}
    @${MKDIR} ${DATADIR}/images
    ${INSTALL_DATA} ${WRKSRC}/images/* ${DATADIR}/images
    @${MKDIR} ${DATADIR}/language
    ${INSTALL_DATA}  ${WRKSRC}/language/* ${DATADIR}/language/
    @${MKDIR} ${DATADIR}/templates
    ${INSTALL_DATA} ${WRKSRC}/templates/* ${DATADIR}/templates

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${CP} -Rp ${WRKSRC}/doc/* ${DOCSDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>