summaryrefslogtreecommitdiff
path: root/www/amaya/Makefile
blob: ed69822f8d661f28dfc995b9223b512922ff0dc4 (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
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.12 2001/09/08 19:55:47 jlam Exp $

DISTNAME=	amaya-src-5.1
PKGNAME=	amaya-5.1
WRKSRC=		${WRKDIR}/Amaya/work
CATEGORIES=	www
MASTER_SITES=	http://www.w3.org/Amaya/Distribution/ \
		ftp://ftp.w3.org/pub/amaya/ \
		ftp://mirror.aarnet.edu.au/pub/amaya/
EXTRACT_SUFX=	.tgz

MAINTAINER=	drochner@netbsd.org
HOMEPAGE=	http://www.w3.org/Amaya/
COMMENT=	Web Browser/Editor from the World Wide Web Consortium

EXTRACT_ELEMENTS=	Amaya
USE_BUILDLINK_ONLY=	yes
USE_GMAKE=		yes

GNU_CONFIGURE=		yes
CONFIGURE_SCRIPT=	../configure
CONFIGURE_ARGS+=	--without-graphic-libs	# use pkgsrc libraries
CONFIGURE_ARGS+=	--with-motif
CONFIGURE_ENV+=		ac_cv_path_motif="${ac_cv_path_motif}"
CFLAGS+=		-Dunix

# Craft the ac_cv_path_motif variable so that configure "finds" the Motif
# files in the right place.
#
ac_cv_path_motif=	no_motif=
ac_cv_path_motif+=	ac_motif_includes=${BUILDLINK_DIR}/include
ac_cv_path_motif+=	ac_motif_libraries=${BUILDLINK_DIR}/lib

post-extract:
	${MKDIR} ${WRKSRC}

# Install into ${PREFIX}/lib/Amaya instead of ${PREFIX}/Amaya.
post-patch:
	cd ${WRKSRC}/..;						\
	files="amaya/Makefile.in";					\
	for file in $${files}; do					\
		${MV} $${file} $${file}.fixme;				\
		${SED}	-e "s|\$$(prefix)/Amaya|\$$(prefix)/lib/Amaya|g" \
			$${file}.fixme >  $${file};			\
	done

pre-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/Amaya

.include "../../graphics/jpeg/buildlink.mk"
.include "../../graphics/png/buildlink.mk"
.include "../../www/libwww/buildlink.mk"
.include "../../mk/motif.buildlink.mk"
.include "../../mk/bsd.pkg.mk"