summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2013-06-20 20:14:03 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2013-06-20 20:14:03 +0000
commit7577c36b6c0ff936fbf5c429311637b89db04568 (patch)
tree38b0d3cbb2203832036e787fdd57189e8f4b7842 /comms
parent. remove shlib ABI version numbers from LIB_DEPENDS; (diff)
. add license (GPLv2);
. bump PORTREVISION; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . mute mkdir command; . do not surround PORTDOCS with .if operator; . trim Makefile headers.
Notes
Notes: svn path=/head/; revision=321420
Diffstat (limited to 'comms')
-rw-r--r--comms/sredird/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/comms/sredird/Makefile b/comms/sredird/Makefile
index 53ca935610b6..3f4cb889741c 100644
--- a/comms/sredird/Makefile
+++ b/comms/sredird/Makefile
@@ -1,12 +1,9 @@
-# New ports collection makefile for: sredird
-# Date created: 19 Dec 1999
-# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
-#
+# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= sredird
PORTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/serial
@@ -14,19 +11,23 @@ MASTER_SITE_SUBDIR= system/serial
MAINTAINER= ports@FreeBSD.org
COMMENT= RFC 2217 compliant serial port redirector
+LICENSE= GPLv2
+
PLIST_FILES= libexec/sredird
-.if !defined(NOPORTDOCS)
-PORTDOCS= README COPYING
-.endif
+PORTDOCS= README
+
+OPTIONS_DEFINE= DOCS
do-build:
${CC} ${CFLAGS} -Wall -o ${WRKSRC}/sredird ${WRKSRC}/sredird.c
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sredird ${PREFIX}/libexec
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/README ${WRKSRC}/COPYING ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>