2002-08-04 09:31:27 +02:00
|
|
|
# New ports collection makefile for: upnp
|
|
|
|
# Date created: 02 August 2002
|
|
|
|
# Whom: Yen-Ming Lee <leeym@leeym.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= upnp
|
2003-04-05 18:17:07 +02:00
|
|
|
PORTVERSION= 1.2.1
|
2002-08-04 09:31:27 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-04-05 18:17:07 +02:00
|
|
|
DISTNAME= lib${PORTNAME}-${PORTVERSION}
|
2002-08-04 09:31:27 +02:00
|
|
|
|
2002-08-19 10:01:34 +02:00
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
2003-02-15 12:33:52 +01:00
|
|
|
COMMENT= Universal Plug and Play Software Development Kit
|
2002-08-04 09:31:27 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= uuid.1:${PORTSDIR}/sysutils/e2fsprogs
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
2003-04-05 18:17:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/upnp
|
|
|
|
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
2002-08-04 09:31:27 +02:00
|
|
|
MAKEFILE= makefile
|
|
|
|
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
2003-02-15 12:33:52 +01:00
|
|
|
NOT_FOR_ARCHS= sparc64
|
2002-08-04 09:31:27 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
post-patch:
|
2003-04-05 18:17:07 +02:00
|
|
|
@${FIND} ${PATCH_WRKSRC} -name "*.[ch]" | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,'
|
|
|
|
@${FIND} ${PATCH_WRKSRC} -name "[Mm]akefile" | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's,lpthread,pthread, ; s,/usr,,g ; s,1\.2\.1,1,g' \
|
|
|
|
-e 's,MAKE = make,MAKE = ${GMAKE},' \
|
|
|
|
-e 's,install bin,${INSTALL_PROGRAM} bin,g' \
|
|
|
|
-e 's,install inc,${INSTALL_DATA} inc,g'
|
|
|
|
@${REINPLACE_CMD} -e 's,MSG_NOSIGNAL,0,' ${PATCH_WRKSRC}/upnp/src/genlib/net/sock.c
|
|
|
|
@${REINPLACE_CMD} -e 's,linux/if,net/if,' ${PATCH_WRKSRC}/upnp/src/api/upnpapi.c
|
2002-08-04 09:31:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|