summaryrefslogtreecommitdiff
path: root/sysutils/tclsyslog/Makefile
blob: be31adf0587ef286d9a012f86667366b2aa00471 (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
# Created by: Frank Fenor <frank@fenor.de>
# $FreeBSD$

PORTNAME=	tclsyslog
PORTVERSION=	2.1
PORTREVISION=	1
CATEGORIES=	sysutils tcl
MASTER_SITES=	http://ftp.wagner.pp.ru/pub/tcl/tclsyslog/

MAINTAINER=	frank@fenor.de
COMMENT=	Tcl Interface to Syslog

USE_TCL=	84+
MANN=		syslog.n
MANCOMPRESSED=	no

WRKSRC=		${WRKDIR}/tclsyslog

PLIST_FILES=	lib/syslog/libsyslog.so.2.1 \
		lib/syslog/pkgIndex.tcl
PLIST_DIRS=	lib/syslog

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -E \
		-e 's|CC=gcc|CC=${CC}|' \
		-e 's|	gcc|	$${CC} $${CFLAGS}|' \
		-e 's|CFLAGS=|CFLAGS=${CFLAGS} |' \
		-e 's|LDFLAGS=-shared -L/usr/local/lib|LDFLAGS=-shared -L${PREFIX}/lib|' \
		-e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|' \
		-e 's|INCLUDES=-I/usr/local/include|INCLUDES=-I${TCL_INCLUDEDIR}|' \
		-e 's|LOADLIBES=-ltclstub8.2|LOADLIBES=-ltclstub${TCL_VER:S/.//}|' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>