aboutsummaryrefslogtreecommitdiff
path: root/sysutils/uhidd/Makefile
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-08-03 10:37:12 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-08-03 10:37:12 +0000
commit59168d1ba975ee12dbc1c498c1e5843030a6c355 (patch)
tree18e59cc217da386d6e1b7400126170b70575165e /sysutils/uhidd/Makefile
parentacdd31a3f392e683fafa81011e1d1af79b872a05 (diff)
Notes
Diffstat (limited to 'sysutils/uhidd/Makefile')
-rw-r--r--sysutils/uhidd/Makefile35
1 files changed, 10 insertions, 25 deletions
diff --git a/sysutils/uhidd/Makefile b/sysutils/uhidd/Makefile
index f32908188851..942e5c97ab13 100644
--- a/sysutils/uhidd/Makefile
+++ b/sysutils/uhidd/Makefile
@@ -16,18 +16,15 @@ LICENSE= BSD2CLAUSE
BUILD_DEPENDS= cuse4bsd-kmod>=0.1.24:${PORTSDIR}/multimedia/cuse4bsd-kmod
LIB_DEPENDS= libcuse4bsd.so:${PORTSDIR}/multimedia/cuse4bsd-kmod
-OPTIONS_DEFINE= DEVD
-OPTIONS_DEFAULT= DEVD
-
USE_RC_SUBR= uhidd
SUB_FILES= pkg-message
-MAN5= uhidd.conf.5
-MAN8= uhidd.8
-
LIBDIR= ${PREFIX}/lib
-NO_STAGE= yes
+OPTIONS_DEFINE= DEVD
+OPTIONS_DEFAULT= DEVD
+OPTIONS_SUB= yes
+
.include <bsd.port.pre.mk>
LIBCUSE= ${LIBDIR}/libcuse4bsd.so
@@ -42,34 +39,22 @@ IGNORE= does not build with the old USB stack
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-uhidd-parser.y
.endif
-.if ${PORT_OPTIONS:MDEVD}
-PLIST_SUB+= PL_DEVD=""
-.else
-PLIST_SUB+= PL_DEVD="@comment "
-.endif
-
post-patch: .SILENT
${FIND} ${WRKSRC}/uhidd -type f -not -name Makefile \
-exec ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/uhidd/uhidd ${PREFIX}/sbin/uhidd
- ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.8 ${PREFIX}/man/man8/uhidd.8
- ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.conf.5 ${PREFIX}/man/man5/uhidd.conf.5
+ ${INSTALL_PROGRAM} ${WRKSRC}/uhidd/uhidd ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/uhidd/uhidd.conf.5 ${STAGEDIR}${PREFIX}/man/man5
.if ${PORT_OPTIONS:MDEVD}
- ${MKDIR} ${PREFIX}/etc/devd
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/devd
${REINPLACE_CMD} -E \
-e "s|%%PREFIX%%|${PREFIX}|" \
-e "s|%%LIBCUSE%%|${LIBCUSE}|" \
${WRKSRC}/uhidd/uhidd-devd.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/uhidd/uhidd-devd.conf.sample ${PREFIX}/etc/devd/
- @if [ ! -f ${PREFIX}/etc/devd/uhidd-devd.conf ]; then \
- ${CP} -p ${PREFIX}/etc/devd/uhidd-devd.conf.sample \
- ${PREFIX}/etc/devd/uhidd-devd.conf; \
- fi
+ ${INSTALL_DATA} ${WRKSRC}/uhidd/uhidd-devd.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc/devd
.endif
-post-install:
- @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
-
.include <bsd.port.post.mk>