summaryrefslogtreecommitdiff
path: root/devel/rudiments/Makefile
blob: c1d0cea4a3b064ca70fe9564c33bb10e0765d36a (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
48
49
50
51
52
53
54
# New ports collection makefile for:	rudiments
# Date created:		2 July 2001
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	rudiments
PORTVERSION=	0.32
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A utility C++ class library for daemons, clients, servers and more

USE_GNOME=	gnometarget pkgconfig
USE_OPENSSL=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:22
CONFIGURE_ENV=	PTHREADINCLUDES="${PTHREAD_CFLAGS}" \
		PTHREADLIB="${PTHREAD_LIBS}"
CONFIGURE_ARGS=	--with-ssl-includes=-I${OPENSSLINC} \
		--with-ssl-libs=-L${OPENSSLLIB} \
		--disable-pcre
USE_LDCONFIG=	yes

ROOTDIRS=	classes css programming programming/parts

post-patch:
	${REINPLACE_CMD} -e 's,/usr/bin/perl,${PREFIX}/bin/perl,g' \
		${WRKSRC}/doc/programming/insert.pl
post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for dirs in ${ROOTDIRS}
	@${MKDIR} ${DOCSDIR}/${dirs}
.endfor
	@${INSTALL_DATA} ${WRKSRC}/doc/classes/*.html \
		${DOCSDIR}/classes
	@${INSTALL_DATA} ${WRKSRC}/doc/css/*.css \
		${DOCSDIR}/css
	@${INSTALL_DATA} ${WRKSRC}/doc/programming/*.html \
		${DOCSDIR}/programming
	@${INSTALL_SCRIPT} ${WRKSRC}/doc/programming/*.pl \
		${DOCSDIR}/programming
	@${INSTALL_DATA} ${WRKSRC}/doc/programming/parts/*.html \
		${DOCSDIR}/programming/parts
	@${INSTALL_DATA} ${WRKSRC}/doc/*.html \
		${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/doc/*.gif \
		${DOCSDIR}
.endif

.include <bsd.port.mk>