1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/sysutils/tclsyslog/Makefile
Pietro Cerutti ac1131c62c - Convert to USES=tcl
- STAGE-clean
2014-01-13 12:05:03 +00:00

34 lines
873 B
Makefile

# 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
USES= tcl
WRKSRC= ${WRKDIR}/tclsyslog
PLIST_FILES= lib/syslog/libsyslog.so.2.1 \
lib/syslog/pkgIndex.tcl \
man/mann/syslog.n.gz
PLIST_DIRS= lib/syslog
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=${STAGEDIR}${PREFIX}|' \
-e 's|INCLUDES=-I/usr/local/include|INCLUDES=-I${TCL_INCLUDEDIR}|' \
-e 's|LOADLIBES=-ltclstub8.2|LOADLIBES=-ltclstub${TCL_SHLIB_VER}|' \
${WRKSRC}/Makefile
.include <bsd.port.mk>