blob: 46c9cde181e8f9d0ae30c6bce7d41f2b7ebf76a2 (
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
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: tgif
# Date created: 30 Jan 1999
# Whom: bmc@WillsCreek.COM
#
# $FreeBSD$
#
PORTNAME= tgif
PORTVERSION= 4.2.2
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://bourbon.usc.edu/pub/tgif/ \
http://groups.yahoo.com/group/tgif4-announce/files/ \
SF
DISTNAME= ${PORTNAME}-QPL-${PORTVERSION}
MAINTAINER= bmc@clapper.org
COMMENT= An Xlib-based two-dimensional drawing tool and hyper-object browser
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm
OPTIONS= NLS "Enable native language support" on \
A4SIZE "Set default paper size to A4" off
USE_IMAKE= yes
PORTDOCS= HISTORY README
USE_XORG= x11 xext xt sm ice
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
CFLAGS+= ${PTHREAD_CFLAGS}
MAN1= tgif.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
IMAKEDEFINES+= WITH_NLS
PLIST_SUB= NLS=""
.else
PLIST_SUB= NLS="@comment "
.endif
.if defined(WITH_A4SIZE)
IMAKEDEFINES+= WITH_A4SIZE
.endif
EXAMPLES.demo= an-sr-flip-flop.obj launch-demo-1.obj \
fonts.obj launch-demo.obj keys.obj slide-demo.obj example.tex
EXAMPLES.spice= 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
pre-configure:
cd ${WRKSRC} && ${INSTALL_DATA} Tgif.tmpl-freebsd Tgif.tmpl
( for D in ${IMAKEDEFINES}; do \
${ECHO_CMD} "#define $${D}"; \
done; \
${CAT} ${FILESDIR}/Tgif.tmpl-freebsdports; \
) > ${WRKSRC}/Tgif.tmpl-freebsdports
post-install:
.for D in demo spice
${MKDIR} ${EXAMPLESDIR}/${D}
cd ${WRKSRC}/${D:S/demo//} \
&& ${INSTALL_DATA} ${EXAMPLES.${D}} ${EXAMPLESDIR}/${D}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|