aboutsummaryrefslogtreecommitdiff
path: root/devel/omniORB/Makefile
blob: cfb6218320bf0dd4fb82401139e609b448b1ec46 (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
58
59
60
61
# New ports collection makefile for:	omniORB
# Date created:		14 May 1997
# Whom:			ejc@bazzle.com
#
# $FreeBSD$
#

PORTNAME=	omniORB
PORTVERSION=	2.8.0
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.orl.co.uk/pub/omniORB/
DISTNAME=	${PORTNAME}_${PORTVERSION:S/.//g}

MAINTAINER=	ejc@bazzle.com

MAN1=		catior.1 genior.1 nameclt.1 obuildtree.1 ols.1 omake.1 \
		omniNames.1 omniidl2.1 opriv.1 oshadow.1

WRKSRC=		${WRKDIR}/${DISTNAME}/src

USE_NEWGCC=	YES
USE_GMAKE=	YES
MAKEFILE=	GNUmakefile
ALL_TARGET=	export
MAKE_ENV=	CDEBUGFLAGS="${CFLAGS}" CXXDEBUGFLAGS="${CXXFLAGS}" \
		MKDIRHIER="${WRKSRC}/../bin/scripts/omkdirhier"
ONLY_FOR_ARCHS=	i386
CONFIG_TARGET=	x86_freebsd_3.2

post-patch:
	@${SETENV} LANG=C ${PERL} -pi -e 's/__PLATFORM__/${CONFIG_TARGET}/;' \
		${WRKSRC}/../config/config.mk
	@${SETENV} LANG=C ${PERL} -pi -e 's/^(MKDIRHIER[^=]*)=/$$1?=/;' \
		${WRKSRC}/../mk/unix.mk

do-install:
	cd ${WRKSRC}/../bin && \
		${INSTALL_PROGRAM} ${CONFIG_TARGET}/* ${PREFIX}/bin
	cd ${WRKSRC}/../lib/${CONFIG_TARGET} && \
		find . |cpio -pdum -R ${BINOWN}:${BINGRP} ${PREFIX}/lib
.for m in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/../man/man1/${m} ${PREFIX}/man/man1
.endfor
	${MKDIR} ${PREFIX}/include/omniORB2
	${MKDIR} ${PREFIX}/include/omnithread
	${INSTALL_DATA} ${WRKSRC}/../include/omnithread.h ${PREFIX}/include
	cd ${WRKSRC}/../include && \
		${INSTALL_DATA} omnithread/* ${PREFIX}/include/omnithread; \
		${INSTALL_DATA} omniORB2/* ${PREFIX}/include/omniORB2
	@ cd ${.CURDIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/omniORB
	${INSTALL_DATA} ${WRKSRC}/../README.unix ${PREFIX}/share/doc/omniORB
	${INSTALL_DATA} ${WRKSRC}/../README.FreeBSD ${PREFIX}/share/doc/omniORB
	${INSTALL_DATA} ${WRKSRC}/../ReleaseNote_omniORB_280 ${PREFIX}/share/doc/omniORB
	cd ${WRKSRC}/../doc && \
		find . |cpio -pdum -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/omniORB
.endif
	@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.mk>