aboutsummaryrefslogtreecommitdiff
path: root/net/Sockets/Makefile
blob: fa3086fa4a96a7868172e5441193cc15bef1cbcb (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>

PORTNAME=	Sockets
PORTVERSION=	2.3.9.9
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.alhem.net/Sockets/ \
		https://www.netfence.it/Sockets/

MAINTAINER=	ml@netfence.it
COMMENT=	C++ wrapper for BSD-style sockets

USES+=		gmake gnome ssl
USE_GNOME=	libxml2
USE_LDCONFIG=	yes
CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}

ALL_TARGET=	all shared
INSTALL_TARGET=	install_shared

post-patch:
# PREFIX safeness
	@${CP} ${PATCHDIR}/Makefile.Defines.freebsd ${WRKSRC}
	@${REINPLACE_CMD} -E \
		-e 's|linux-x86-32|freebsd|' \
		-e 's|^PREFIX.+$$|PREFIX=${PREFIX}|' \
		${BUILD_WRKSRC}/${MAKEFILE}

.include <bsd.port.mk>