summaryrefslogtreecommitdiff
path: root/graphics/tgif-nls/Makefile
blob: 118f9271fd9d5382762161700c943df3d0e4e882 (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
# New ports collection makefile for:    tgif-nls
# Version required:     4.1.16
# Date created:         3 May 1999
# Whom:                 one@netlab.is.tsukuba.ac.jp
#
# $FreeBSD$
#

DISTNAME=	tgif-4.1.16
PKGNAME=	tgif-nls-4.1.16
CATEGORIES=	graphics
MASTER_SITES=	ftp://bourbon.cs.umd.edu/pub/tgif/ \
		ftp://ftp.cs.ucla.edu/pub/tgif/

MAINTAINER=	one@netlab.is.tsukuba.ac.jp

LIB_DEPENDS=	intl.1:${PORTSDIR}/devel/gettext
RUN_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm

USE_IMAKE=	yes
XMKMF=		LOCALBASE=${LOCALBASE} xmkmf -a

MAN1=		tgif.1

pre-patch:
		@cd ${WRKSRC}; ${RM} -f Tgif.tmpl; \
		${CP} Tgif.tmpl-freebsd Tgif.tmpl

post-patch:
		@cd ${WRKSRC}; \
		${MV} tgif.Xdefaults tgif.Xdefaults.org; \
		${SED} -e "s#/usr/local#${PREFIX}#" \
			-e "s#/usr/share/lib#${PREFIX}/share/locale#" \
			tgif.Xdefaults.org > tgif.Xdefaults

post-install:
		${MKDIR} ${PREFIX}/lib/X11/ja_JP.EUC/app-defaults
		${INSTALL_DATA} ${FILESDIR}/tgif.Xdefaults.ja \
			${PREFIX}/lib/X11/ja_JP.EUC/app-defaults/Tgif

.include <bsd.port.mk>