summaryrefslogtreecommitdiff
path: root/net/openh323/Makefile
blob: efcf65fc97c42954a220d9f20c379844ac150597 (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
# $NetBSD: Makefile,v 1.29 2005/04/11 21:46:52 tv Exp $

DISTNAME=	openh323-v1_15_2-src
PKGNAME=	openh323-1.15.2
CATEGORIES=	net
MASTER_SITES=	http://www.voxgratia.org/releases/
EXTRACT_SUFX=	-tar.gz

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.openh323.org/
COMMENT=	Open H.323 library

WRKSRC=			${WRKDIR}/openh323
USE_GNU_TOOLS+=		make
USE_LIBTOOL=		yes
USE_PKGINSTALL=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	PWLIBDIR=${PREFIX}

BUILD_TARGET=		opt apps
MAKE_ENV+=		PWLIBDIR=${PREFIX}/share/pwlib OPENH323DIR=${WRKSRC}
MAKE_ENV+=		SYSLIBDIR=${PREFIX}/lib

post-extract:
	cd ${WRKDIR}; ${TAR} -xf ${DISTNAME:S/$/-tar/}

post-patch:
	cd ${WRKSRC}/include; ${LN} -s . openh323
	${_PKG_SILENT}cd ${WRKSRC};			\
	for f in openh323u.mak.in; do			\
		${SED} ${FILES_SUBST_SED} $$f > $$f.sed;\
		${MV} -f $$f.sed $$f;			\
	done

# override the openh323 install - it uses cp -d, and isn't libtool-aware
do-install:
	cd ${WRKSRC}/src; ${MAKE_ENV} ${GMAKE} install
	${INSTALL_DATA_DIR} ${PREFIX}/include/openh323
	cd ${WRKSRC}/include;				\
		for f in \*.h ; \
			do ${INSTALL_DATA} $$f ${PREFIX}/include/openh323; done
	cd ${WRKSRC}; ${INSTALL_DATA} version.h ${PREFIX}/include/openh323
	cd ${WRKSRC}/samples/simple; ${MAKE_ENV} ${GMAKE} install
	${INSTALL_DATA_DIR} ${PREFIX}/share/openh323
	cd ${WRKSRC}; ${INSTALL_DATA} openh323u.mak ${PREFIX}/share/openh323
	cd ${WRKSRC}/plugins; ${GMAKE} install

.include "../../devel/pwlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"