summaryrefslogtreecommitdiff
path: root/graphics/tgif/Makefile
blob: 20fa341e314c4faf76becb8f968c63a29b6df85e (plain)
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
# $NetBSD: Makefile,v 1.67 2013/04/08 11:17:14 rodent Exp $
#

DISTNAME=		tgif-4.2.5
PKGREVISION=		1
CATEGORIES=		graphics
MASTER_SITES=		ftp://bourbon.usc.edu/pub/tgif/free-of-charge/

MAINTAINER=		dmcmahill@NetBSD.org
HOMEPAGE=		http://bourbon.usc.edu/tgif/tgif.html
COMMENT=		Fully-featured X11 drawing program

USE_IMAKE=		yes

PTHREAD_OPTS+=		require

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "DragonFly"
OS_TEMPLATE=	${WRKSRC}/Tgif.tmpl-freebsd
.else
OS_TEMPLATE=	${WRKSRC}/Tgif.tmpl-${LOWER_OPSYS}
.endif

post-patch::
	@${RM} -f ${WRKSRC}/Tgif.tmpl
	@${CP}  ${OS_TEMPLATE} ${WRKSRC}/Tgif.tmpl

.if ${OPSYS} == "Linux"
.include "../../devel/libidn/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.endif
.include "../../mk/jpeg.buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

# avoid "xmkmf -a" on Solaris which runs makedepend because the
# openwindows makedepend program can't handle the number of
# files.  We should probably have a replacement makedepend in
# pkgsrc.
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
XMKMF=			${XMKMF_CMD}
.endif