summaryrefslogtreecommitdiffstats
path: root/net/papaya-plugins/Makefile
blob: 81ef4940ef4db1f21f8a101c906f4e49b8cec793 (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
# New ports collection makefile for:	papaya-plugins
# Date created:		23 August 2001
# Whom:			Edwin Groothuis <edwin@mavetju.org>
#
# $FreeBSD$
#

PORTNAME=	papaya-plugins
PORTVERSION=	0.90
CATEGORIES=	net
MASTER_SITES=	http://www.gtk-papaya.org/downloads/plugins/source/
DISTNAME=	papaya-plugins-src-${PORTVERSION}

MAINTAINER=	adam-ports@blacktabby.org
COMMENT=	Plugins for papaya, a graphical GTK mud client

# We need the source for papaya to build the plugins.
BUILD_DEPENDS=	${PORTSDIR}/net/papaya/work/papaya-src-${PORTVERSION}/src/h:${PORTSDIR}/net/papaya
RUN_DEPENDS=	papaya:${PORTSDIR}/net/papaya

USE_SUBMAKE=	yes
IS_INTERACTIVE=	yes
USE_GMAKE=	yes
USE_GNOMENG=	yes
USE_GNOME=	gnomehack gnomeprefix gnomelibs
GNU_CONFIGURE=	yes
MAKE_ARGS+=	CXX="${CXX}"

PLIST=	${WRKSRC}/pkg-plist

post-patch:
	@${PERL} -pi -e 's,g\+\+,${CXX},g' ${WRKSRC}/Makefile.in
	@${PERL} -pi -e 's,malloc.h,stdlib.h,' ${WRKSRC}/PythonPlugin.cpp \
		${WRKSRC}/TurfProtocol.cpp
	@${PERL} -pi -e 's,stdint.h,sys/types.h,' ${WRKSRC}/SpellStacker.h

pre-configure:
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.papaya-plugins
	${RM} ${WRKSRC}/config.cache

post-configure:
	${LN} -fs ${PORTSDIR}/net/papaya/work/papaya-src-${PORTVERSION}/src/h ${WRKSRC}/h

post-build:
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/add-plugins

.include <bsd.port.mk>

.if exists(${WRKDIR}/Makefile.inc)
.include "${WRKDIR}/Makefile.inc"
.endif
OpenPOWER on IntegriCloud