aboutsummaryrefslogtreecommitdiff
path: root/net/miniupnpc/Makefile
blob: 14191dfc22ec04ae91ae65aea660fcec2d13c187 (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
# New ports collection makefile for:    miniupnpc
# Date created:         31 Oct 2007
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=	miniupnpc
PORTVERSION=	1.3
PORTREVISION=	1
CATEGORIES?=	net
MASTER_SITES=	http://miniupnp.free.fr/files/

MAINTAINER=	dinoex@FreeBSD.org
COMMENT?=	UPnP IGD client lightweight library

HAS_CONFIGURE=	yes
USE_GMAKE=	yes
USE_LDCONFIG=	yes

CONFIGURE_SCRIPT=	updateminiupnpcstrings.sh
MAKE_ENV+=	INSTALLPREFIX=${PREFIX}
CFLAGS+=	-fPIC

.include <bsd.port.pre.mk>

.if !defined(SLAVE_PORT)
MAN3=		miniupnpc.3
.endif

.if defined(WITH_DEBUG)
CFLAGS+=	-DDEBUG
.endif

.if !defined(SLAVE_PORT)
post-install:
	${INSTALL_MAN} ${WRKSRC}/man3/miniupnpc.3 ${PREFIX}/man/man3/
.endif

.include <bsd.port.post.mk>