summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11/xvattr/Makefile20
-rw-r--r--x11/xvattr/pkg-plist3
2 files changed, 19 insertions, 4 deletions
diff --git a/x11/xvattr/Makefile b/x11/xvattr/Makefile
index af9c358..739b8be 100644
--- a/x11/xvattr/Makefile
+++ b/x11/xvattr/Makefile
@@ -8,20 +8,32 @@
PORTNAME= xvattr
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_X_PREFIX= yes
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" INCDIRS="-I${X11BASE}/include" \
+ LIBDIRS="-L${X11BASE}/lib"
ALL_TARGET= ${PORTNAME}
-post-patch:
- @${PERL} -pi -e "s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
+.include <bsd.port.pre.mk>
+
+.if ${XFREE86_VERSION} == 3
+IGNORE= "Require Xv Extension"
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11/xvattr/pkg-plist b/x11/xvattr/pkg-plist
index 0ac8871..e622243 100644
--- a/x11/xvattr/pkg-plist
+++ b/x11/xvattr/pkg-plist
@@ -1 +1,4 @@
bin/xvattr
+%%PORTDOCS%%share/doc/xvattr/ChangeLog
+%%PORTDOCS%%share/doc/xvattr/README
+%%PORTDOCS%%@dirrm share/doc/xvattr
OpenPOWER on IntegriCloud