aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tgif-nls/Makefile
blob: 2330402c10c354b0180776129119448f3d250397 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    tgif-nls
# Date created:         3 May 1999
# Whom:                 one@netlab.is.tsukuba.ac.jp
#
# $FreeBSD$
#

PORTNAME=   tgif
PORTVERSION=    4.1.44
CATEGORIES= graphics
MASTER_SITES=   ftp://bourbon.usc.edu/pub/tgif/ \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tgif
PKGNAMESUFFIX=  -nls
DISTNAME=   ${PORTNAME}-QPL-${PORTVERSION}

MAINTAINER= one@netlab.is.tsukuba.ac.jp
COMMENT=    A two-dimensional drawing tool with NLS message catalogs support

RUN_DEPENDS=    giftopnm:${PORTSDIR}/graphics/netpbm

USE_GETTEXT=    yes
USE_IMAKE=  yes
MAN1=       tgif.1

.if !defined(NOPORTDOCS)
DEMO_FILES= an-sr-flip-flop.obj launch-demo-1.obj \
        fonts.obj launch-demo.obj keys.obj slide-demo.obj example.tex
READMES=    Copyright HISTORY LICENSE.QPL README
SPICE_FILES=    README BZ.mod DN.mod DN.sym MN.mod MN.sym MP.mod MP.sym \
        SN.mod SN.sym SP.mod SP.sym capacitor.sym connection.sym \
        demo.obj gauge.sym ground.sym in.sym out.sym port.sym \
        resistor.0tc.sym resistor.2tc.sym resistor.h.2tc.sym \
        resistor.h.sym resistor.sym
.endif

post-extract:
        ${RM} -f ${WRKDIR}/${DISTNAME}/Tgif.tmpl
        ${CP} ${WRKDIR}/${DISTNAME}/Tgif.tmpl-freebsd \
              ${WRKDIR}/${DISTNAME}/Tgif.tmpl

post-patch:
        ${REINPLACE_CMD} -e 's|.TH tgif n|.TH tgif 1L|' \
            ${WRKSRC}/tgif.man
        ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
            s|/usr/share/lib|${PREFIX}/share/locale|' \
            ${WRKSRC}/tgif.Xdefaults

post-install:
.if !defined(NOPORTDOCS)
        ${MKDIR} ${DOCSDIR}; ${MKDIR} ${EXAMPLESDIR}
        (cd ${WRKSRC} ;\
          ${INSTALL_DATA} ${DEMO_FILES} ${EXAMPLESDIR} ;\
          ${INSTALL_DATA} ${READMES} ${DOCSDIR} \
        )
        ${MKDIR} ${EXAMPLESDIR}/spice
        (cd ${WRKSRC}/spice ;\
          ${INSTALL_DATA} ${SPICE_FILES} ${EXAMPLESDIR}/spice \
        )
.endif
        ${LN} -fs tgif ${PREFIX}/bin/tgif-nls

.include <bsd.port.mk>