summaryrefslogtreecommitdiff
path: root/net/ORBit/Makefile
blob: 5e646fc99ae7e180743f73e6c6b3fcae89b60041 (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
# $NetBSD: Makefile,v 1.55 2001/06/16 20:02:10 jlam Exp $
#

DISTNAME=		ORBit-0.${ORBIT_MAJOR}.${ORBIT_MINOR}
CATEGORIES=		net
MASTER_SITES=		${MASTER_SITE_GNOME:=stable/sources/ORBit/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		wiz@netbsd.org
HOMEPAGE=		http://www.gnome.org/
COMMENT=		high-performance CORBA ORB with support for the C language

DEPENDS+=		gindent-*:../../devel/gindent
BUILD_DEPENDS+=		autoconf-2.13:../../devel/autoconf
BUILD_DEPENDS+=		automake-1.4:../../devel/automake

BUILD_USES_GETTEXT_M4=	YES
USE_GMAKE=		YES
USE_LIBTOOL=		YES
LTCONFIG_OVERRIDE+=	${WRKSRC}/ltconfig
LTCONFIG_OVERRIDE+=	${WRKSRC}/popt/ltconfig
LTCONFIG_OVERRIDE+=	${WRKSRC}/libIDL/ltconfig

GNU_CONFIGURE=		YES
USE_CONFIG_WRAPPER=	YES

# for DISTNAME, PKGNAME, and PLIST
ORBIT_MAJOR=		5
ORBIT_MINOR=		8
PLIST_SUBST+=		ORBIT_MAJOR=${ORBIT_MAJOR} ORBIT_MINOR=${ORBIT_MINOR}

INFO_FILES=		libIDL.info

.include "../../mk/bsd.prefs.mk"
.include "../../devel/gettext-lib/buildlink.mk"
.include "../../devel/glib/buildlink.mk"
.include "../../security/tcp_wrappers/buildlink.mk"

pre-configure:
	cd ${WRKSRC}/popt && ${LOCALBASE}/bin/autoreconf --include-deps --force

# Fix libIDLConf.sh by removing buildlink directory references.
post-build:
	@cd ${WRKSRC}/libIDL;						\
	${MV} -f libIDLConf.sh libIDLConf.sh.fixme;			\
	${SED}	-e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g"		\
		-e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g"		\
		libIDLConf.sh.fixme > libIDLConf.sh;			\
	${RM} -f libIDLConf.sh.fixme;					\
	${CHMOD} +x libIDLConf.sh

.include "../../mk/bsd.pkg.mk"