aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/xforms/Makefile
blob: fb4e9e69ab97d04231aecac52905aaf46025b8d7 (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
# New ports collection makefile for:	xforms
# Date created:		28 March 1997
# Whom:			gena
#
# $FreeBSD$
#

PORTNAME=	xforms
PORTVERSION=	1.0
PORTREVISION=	6
PORTEPOCH=	1
CATEGORIES=	x11-toolkits graphics
MASTER_SITES=	${MASTER_SITE_SAVANNAH:S/$/:savannah/} \
		${MASTER_SITE_LOCAL:S/$/:local/}
MASTER_SITE_SUBDIR=	${PORTNAME}/stable.pkg/${PORTVERSION}/:savannah \
			mikeh/:local
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:savannah,local

REINPLACE_ARGS=	-i ""

MAINTAINER?=	ports@FreeBSD.ORG
COMMENT?=	A graphical user interface toolkit for X Window System

LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff

.if defined(WITH_I18N)
PKGNAMESUFFIX=	-i18n
PATCH_SITES=	ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/ \
		http://www.otaru-uc.ac.jp/~yokota/comp/
PATCHFILES=	xforms-1.0-i18n_7.patch
PATCH_DIST_STRIP=	-p1
.endif

USE_XORG=	xpm
USE_GL=		gl
USE_IMAKE=	yes
USE_LDCONFIG=	yes

MAN1=		fdesign.1 fd2ps.1

post-patch:
	${REINPLACE_CMD} -e 's|-O4||' ${WRKSRC}/Imakefile
.if defined(LOCALBASE)
.	if ${LOCALBASE} != "/usr/X11R6"
	${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
		${WRKSRC}/image/rgb_db.c
.	endif
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900000
BROKEN=	does not build
.endif

.include <bsd.port.post.mk>