aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-04-24 21:07:06 +0800
committergahr <gahr@FreeBSD.org>2013-04-24 21:07:06 +0800
commit6222afa5530cf792d0a6727546cf4cca3ce5d4dc (patch)
tree2ec9387411f0f99fdc55477a995b58468cd335b6 /devel
parent6398636c364db789384c5c96033de94504b34e79 (diff)
downloadfreebsd-ports-gnome-6222afa5530cf792d0a6727546cf4cca3ce5d4dc.tar.gz
freebsd-ports-gnome-6222afa5530cf792d0a6727546cf4cca3ce5d4dc.tar.zst
freebsd-ports-gnome-6222afa5530cf792d0a6727546cf4cca3ce5d4dc.zip
- Take maintainership (tcltk@)
- Trim Makefile headers - Use the port's build infrastructure instead of providing a custom Makefile
Diffstat (limited to 'devel')
-rw-r--r--devel/tclcheck/Makefile37
-rw-r--r--devel/tclcheck/files/Makefile7
-rw-r--r--devel/tclcheck/pkg-plist4
3 files changed, 24 insertions, 24 deletions
diff --git a/devel/tclcheck/Makefile b/devel/tclcheck/Makefile
index 29fd538dc786..27c026b115c0 100644
--- a/devel/tclcheck/Makefile
+++ b/devel/tclcheck/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: TclCheck
-# Date created: 28 June 1997
-# Whom: Sander Vesik <sander@haldjas.folklore.ee>
-#
+# Created by: Sander Vesik <sander@haldjas.folklore.ee>
# $FreeBSD$
-#
PORTNAME= tclcheck
PORTVERSION= 1.1.13
@@ -12,19 +8,34 @@ CATEGORIES= devel
MASTER_SITES= ftp://catless.ncl.ac.uk/pub/
DISTNAME= tclCheck-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A program to check the nesting of parenthesis in tcl scripts
+MAINTAINER= tcltk@FreeBSD.org
+COMMENT= Program to check the nesting of parenthesis in tcl scripts
+
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
MAN1= tclCheck.1
-MANCOMPRESSED= yes
+PLIST_FILES= bin/tclCheck
+PORTDOCS= *
+
+.include <bsd.port.options.mk>
-pre-build:
- @${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+post-patch:
+ ${REINPLACE_CMD} \
+ -e '/^BIN/s|=.*|=${PREFIX}/bin|' \
+ -e '/^CC/s|=.*|=${CC}|' \
+ -e '/^CFLAGS/s|=.*|=${CFLAGS}|' \
+ ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} \
+ -e '25s|^|#include <unistd.h>|' \
+ ${WRKSRC}/tclCheck.c
-post-install:
-.if !defined(NOPORTDOCS)
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tclCheck ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/tclCheck.1 ${MANPREFIX}/man/man1/
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/devel/tclcheck/files/Makefile b/devel/tclcheck/files/Makefile
deleted file mode 100644
index d25384e340d2..000000000000
--- a/devel/tclcheck/files/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-PROG= tclCheck
-
-PREFIX?= /usr/local
-BINDIR= ${PREFIX}/bin
-MANDIR= ${PREFIX}/man/man
-
-.include <bsd.prog.mk>
diff --git a/devel/tclcheck/pkg-plist b/devel/tclcheck/pkg-plist
deleted file mode 100644
index a384343e2cda..000000000000
--- a/devel/tclcheck/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/tclCheck
-%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%