summaryrefslogtreecommitdiff
path: root/net/libupnp/Makefile
blob: cb1d64cfe46bff7c7e026de8d9a9ca2f79457042 (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
# $NetBSD: Makefile,v 1.2 2006/10/04 21:53:17 wiz Exp $
#

DISTNAME=		libupnp-1.3.1
CATEGORIES=		net
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=pupnp/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.virtualworlds.de/upnp/
COMMENT=		Portable Universal Plug and Play (UPnP) SDK

USE_LANGUAGES=		c c++
USE_TOOLS+=		pkg-config
USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes

PKGCONFIG_OVERRIDE+=	libupnp.pc.in

pre-configure:
.if !exists(/usr/include/malloc.h)
	${LN} -s /usr/include/stdlib.h ${BUILDLINK_DIR}/include/malloc.h
.endif
.if !exists(/usr/include/sys/sysinfo.h)
	${MKDIR} -p ${BUILDLINK_DIR}/include/sys
	${TOUCH} ${BUILDLINK_DIR}/include/sys/sysinfo.h
.endif
.if !exists(/usr/include/linux/if.h)
	${MKDIR} -p ${BUILDLINK_DIR}/include/linux
	${LN} -s /usr/include/net/if.h ${BUILDLINK_DIR}/include/linux/if.h
.endif

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