- Add DOCS and EXAMPLES option.

- Staging.
- Replace gcc with $(CC) to fix build on FreeBSD 10.
- Add small patch to fix incorrect use of pthread_join (found by clang).
This commit is contained in:
Tijl Coosemans 2014-03-04 20:01:38 +00:00
parent b45b316fc3
commit ade877f323
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347064
2 changed files with 30 additions and 11 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= gstfs PORTNAME= gstfs
PORTVERSION= 0.1 PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= http://bobcopeland.com/gstfs/releases/ \ MASTER_SITES= http://bobcopeland.com/gstfs/releases/ \
http://mirror.mcx2.org/ http://mirror.mcx2.org/
@ -11,6 +12,8 @@ PKGNAMEPREFIX= fusefs-
MAINTAINER= dhn@FreeBSD.org MAINTAINER= dhn@FreeBSD.org
COMMENT= On-demand, transcoding filesystem (using GStreamer pipeline) COMMENT= On-demand, transcoding filesystem (using GStreamer pipeline)
OPTIONS_DEFINE= DOCS EXAMPLES
USES= fuse pkgconfig USES= fuse pkgconfig
USE_GSTREAMER= yes USE_GSTREAMER= yes
@ -19,17 +22,14 @@ PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README PORTDOCS= README
PORTEXAMPLES= ogg2mp3.sh mp32wav.sh PORTEXAMPLES= ogg2mp3.sh mp32wav.sh
NO_STAGE= yes post-patch:
do-install: @${REINPLACE_CMD} 's/gcc/$$(CC)/' ${WRKSRC}/Makefile
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.if !defined(NOPORTDOCS) do-install:
@${MKDIR} ${DOCSDIR} ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.endif ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.if !defined(NOPORTEXAMPLES) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -0,0 +1,19 @@
--- xcode.c.orig 2014-03-04 20:53:11.000000000 +0100
+++ xcode.c 2014-03-04 20:54:14.000000000 +0100
@@ -41,7 +41,6 @@
struct pipe_params thread_params;
pthread_t thread;
- void *thread_status;
pipeline = gst_parse_launch(pipeline_str, &error);
if (error)
@@ -83,7 +82,7 @@
// close read-side so pipe will terminate
close(pipefds[1]);
- pthread_join(thread, thread_status);
+ pthread_join(thread, NULL);
return 0;
}