aboutsummaryrefslogtreecommitdiffstats
path: root/misc/patanjali/Makefile
blob: ef948beb01ade93e0a8c873eebc5cda841c632f3 (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
# New ports collection makefile for:    patanjali
# Date created:             2002-01-09
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   patanjali
PORTVERSION=    1.0
CATEGORIES= misc
MASTER_SITES=   http://www.linuxlabs.com/software/download/
EXTRACT_SUFX=   .src.tar.gz

MAINTAINER= trevor@FreeBSD.org

PLIST=      ${WRKDIR}/pkg-plist

do-patch:
    @${PERL} -pi -e 's:internet:Internet:g' \
        ${WRKSRC}/patanjali-sutras-english.txt

pre-build:
    ${RM} -f ${WRKSRC}/patanjali

do-build:
    ${CC} -DDPPATHNAME=\"${DATADIR}/patanjali-sutras-english.txt\" \
        -DVERSION=\"1.0\" ${WRKSRC}/patanjali.c -o ${WRKSRC}/patanjali

pre-install:
    ${ECHO} bin/patanjali > ${PLIST}
    ${ECHO} share/patanjali/patanjali-sutras-english.txt >> ${PLIST}

do-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/patanjali-sutras-english.txt ${DATADIR}/
    ${INSTALL_PROGRAM} ${WRKSRC}/patanjali ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/display-sutras-patanjali-0.99.lsm ${DOCSDIR}/
.endif

.include <bsd.port.mk>