ports/176282: bsd.owfs.mk
Mikhail T.
mi at aldan.algebra.com
Wed Feb 20 05:40:01 UTC 2013
>Number: 176282
>Category: ports
>Synopsis: bsd.owfs.mk
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 20 05:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mikhail T.
>Release: FreeBSD 9.1-PRERELEASE amd64
>Organization:
Virtual Estates, Inc. http://sybpipe.com/
>Environment:
>Description:
I'd like to add the family of One-Wire File System (owfs) ports.
http://owfs.org/
Not unlike KDE or PostgreSQL the software comes in a single
tarball, but the various components are best build individually.
I'm not sure, what is supposed to be in a package-specific
makefile included by bsd.port.mk, so below is the minimum I'd
like to see there.
>How-To-Repeat:
>Fix:
Index: bsd.owfs.mk
===================================================================
--- bsd.owfs.mk (revision 0)
+++ bsd.owfs.mk (working copy)
@@ -0,0 +1,18 @@
+#
+# #FreeBSD$
+#
+
+PORTVERSION= ${OWVERSION}
+OWVERSION= 2.9p0
+MASTER_SITES= SF/owfs/owfs/${OWVERSION}
+DISTNAME= owfs-${OWVERSION}
+OWCOMPONENTS:= src/man ${OWCOMPONENTS:S|^|module/|}
+EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude 'Makefile.*' \
+ --exclude 'compat_*.h' ${OWCOMPONENTS:S|^|${DISTNAME}/|}
+REINPLACE_ARTS= -i ""
+MAKE_JOBS_SAFE= yes
+
+post-patch:
+ ${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
+ ${REINPLACE_CMD} -e '/#include <config.h>/d' \
+ -e '/#include "compat_/d'
Index: bsd.port.mk
===================================================================
--- bsd.port.mk (revision 311890)
+++ bsd.port.mk (working copy)
@@ -1511,6 +1511,10 @@
.include "${PORTSDIR}/Mk/bsd.ncurses.mk"
.endif
+.if defined(OWCOMPONENTS)
+.include "${PORTSDIR}/Mk/bsd.owfs.mk"
+.endif
+
.include "${PORTSDIR}/Mk/bsd.pbi.mk"
# You can force skipping these test by defining IGNORE_PATH_CHECKS
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list