- Add STAGEDIR support.

- Fix build on stable/10 and head.
- Style clean-ups.
This commit is contained in:
Hiroki Sato 2013-10-17 07:37:29 +00:00
parent ebddbe9787
commit c57a9101a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330614
4 changed files with 30 additions and 9 deletions

View file

@ -1,4 +1,3 @@
# Created by: hrs
# $FreeBSD$
PORTNAME= flvstreamer
@ -12,7 +11,7 @@ DISTNAME= ${PORTNAME}-2.1c1
MAINTAINER= hrs@FreeBSD.org
COMMENT= An open source command-line RTMP client
USE_GMAKE= yes
USES= gmake
ALL_TARGET= posix
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ARGS= THREADLIB="${PTHREAD_LIBS}" \
@ -21,15 +20,16 @@ MAKE_ARGS= THREADLIB="${PTHREAD_LIBS}" \
PLIST_FILES= bin/flvstreamer bin/streams
PORTDOCS= ChangeLog ChangeLog.rtmpdump README
NO_STAGE= yes
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PLIST_FILES:S,^bin/,,} \
${PREFIX}/bin
${STAGEDIR}${PREFIX}/bin
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -1,5 +1,5 @@
--- Makefile.orig 2010-02-15 10:06:20.000000000 +0900
+++ Makefile 2011-12-14 03:51:16.000000000 +0900
+++ Makefile 2013-10-17 09:16:18.000000000 +0900
@@ -1,12 +1,12 @@
-CC=$(CROSS_COMPILE)gcc
-LD=$(CROSS_COMPILE)ld
@ -17,3 +17,13 @@
SLIBS=$(THREADLIB) $(LIBS)
EXT=
@@ -18,8 +18,7 @@
progs: flvstreamer streams rtmpsrv rtmpsuck
-posix linux unix osx:
- @$(MAKE) $(MAKEFLAGS) progs
+posix linux unix osx: progs
mingw:
@$(MAKE) CROSS_COMPILE=mingw32- LIBS="$(LIBS) -lws2_32 -lwinmm -lgdi32" THREADLIB= EXT=.exe $(MAKEFLAGS) progs

View file

@ -0,0 +1,11 @@
--- bytes.h.orig 2013-10-17 16:32:03.000000000 +0900
+++ bytes.h 2010-02-12 06:31:58.000000000 +0900
@@ -35,7 +35,7 @@
typedef unsigned char uint8_t;
-#elif (defined(__FreeBSD__) && __FreeBSD_version >= 470000) || defined(__OpenBSD__) || defined(__NetBSD__) // *BSD
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) // *BSD
#include <sys/endian.h>
#define __BIG_ENDIAN BIG_ENDIAN
#define __LITTLE_ENDIAN LITTLE_ENDIAN

View file

@ -7,4 +7,4 @@ on the internet today. It was developed entirely by reverse
engineering methods and without access to any proprietary or
restrictive-license protocol specifications.
WWW: http://savannah.nongnu.org/projects/flvstreamer/
WWW: http://savannah.nongnu.org/projects/flvstreamer/