summaryrefslogtreecommitdiff
path: root/net/openh323/Makefile
blob: 434713b3bf3b02b767f291f03aae1404d943161b (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
# $NetBSD: Makefile,v 1.48 2014/02/12 23:18:24 tron Exp $

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

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	#http://www.h323plus.org/
#successor	http://www.openh323.org/
COMMENT=	Open H.323 library

PKG_DESTDIR_SUPPORT=	destdir

WRKSRC=			${WRKDIR}/openh323
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake tar
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	PWLIBDIR=${PREFIX:Q}

BUILD_TARGET=		opt apps
MAKE_ENV+=		PWLIBDIR=${PREFIX}/share/pwlib OPENH323DIR=${WRKSRC:Q}
MAKE_ENV+=		SYSLIBDIR=${PREFIX}/lib
INSTALL_MAKE_FLAGS+=	INSTALL_DIR=${DESTDIR}${PREFIX}

MAKE_JOBS_SAFE=		no

INSTALL_DIRS=		src plugins samples/simple
INSTALLATION_DIRS+=	bin include/openh323 lib share/openh323

post-patch:
	cd ${WRKSRC}/include; ${LN} -s . openh323

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

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