summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-27 13:25:13 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-27 13:25:13 +0000
commit3e89133621bf5292ebf3c6fff3c03872189001e3 (patch)
treef9518e9907336c7962371a41a969938c7fadf6bf
parent96482374100a2cc249053ef8048b3ba4c189eccf (diff)
downloadFreeBSD-ports-3e89133621bf5292ebf3c6fff3c03872189001e3.zip
FreeBSD-ports-3e89133621bf5292ebf3c6fff3c03872189001e3.tar.gz
- Switch to USES=localbase
- Switch to options helpers
-rw-r--r--sysutils/lineakd/Makefile13
-rw-r--r--sysutils/lineakd/pkg-plist4
2 files changed, 7 insertions, 10 deletions
diff --git a/sysutils/lineakd/Makefile b/sysutils/lineakd/Makefile
index dd4cf08..827bee1 100644
--- a/sysutils/lineakd/Makefile
+++ b/sysutils/lineakd/Makefile
@@ -11,16 +11,15 @@ DIST_SUBDIR= lineak
MAINTAINER= ports@FreeBSD.org
COMMENT= Lineakd is a daemon which enables special keys on internet keyboards
-USES= gmake libtool
+USES= gmake libtool localbase
USE_LDCONFIG= yes
USE_XORG= x11 xext xt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= kde_cv_prog_cxx_fno_check_new=no
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
-DOCS= README TODO AUTHORS
+PORTDOCS= README TODO AUTHORS
+PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
@@ -29,11 +28,13 @@ post-patch:
${WRKSRC}/lineak/Makefile.in ${WRKSRC}/lineakd/Makefile.in
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${DOCS}
+.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/lineakd.conf.example ${STAGEDIR}${EXAMPLESDIR}
diff --git a/sysutils/lineakd/pkg-plist b/sysutils/lineakd/pkg-plist
index 5043cfe..2919532 100644
--- a/sysutils/lineakd/pkg-plist
+++ b/sysutils/lineakd/pkg-plist
@@ -29,8 +29,4 @@ lib/liblineak.so
lib/liblineak.so.0
lib/liblineak.so.0.8.0
man/man1/lineakd.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lineakd.conf.example
@dir lib/lineakd/plugins
OpenPOWER on IntegriCloud