freebsd-ports/net/DarwinStreamingServer/files/patch-Buildit
Norikatsu Shigemura 0f2af23cec Update to 6.0.3.
2008-06-01 09:46:18 +00:00

92 lines
1.8 KiB
Text

--- Buildit.orig 2008-03-26 09:42:48.000000000 +0900
+++ Buildit 2008-06-01 04:24:51.000000000 +0900
@@ -9,19 +9,19 @@
fi
SHOW_HELP=0
-if [ "$1" = "-v" ] ; then
+if [ x"$1" = x"-v" ] ; then
SHOW_HELP=1
fi
-if [ "$1" = "-h" ] ; then
+if [ x"$1" = x"-h" ] ; then
SHOW_HELP=1
fi
-if [ "$1" = "?" ] ; then
+if [ x"$1" = x"?" ] ; then
SHOW_HELP=1
fi
-if [ "$1" = "help" ] ; then
+if [ x"$1" = x"help" ] ; then
SHOW_HELP=1
fi
@@ -42,7 +42,7 @@
fi
-if [ "$1" = "install" ] ; then
+if [ x"$1" = x"install" ] ; then
if [ $PLATFORM = dss ] ; then
echo "OS X Darwin Streaming Server"
./BuildOSXInstallerPkg $2 $3
@@ -128,20 +128,20 @@
fi
;;
- FreeBSD.i386)
+ FreeBSD.*)
echo "Configuring for the "$OSNAME" "$HARDWARENAME" platform"
- CPLUS=gcc
- CCOMP=gcc
- LINKER="gcc"
- MAKE=make
+ CPLUS=${CXX}
+ CCOMP=${CC}
+ LINKER="${CXX}"
+ MAKE=${MAKE}
- COMPILER_FLAGS=
- INCLUDE_FLAG="-include"
+ COMPILER_FLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -fPIC -funsigned-char"
+ INCLUDE_FLAG="-include"
- CORE_LINK_LIBS="-pthread -lm -lcrypt"
+ CORE_LINK_LIBS="${PTHREAD_LIBS} -lm -lcrypt"
SHARED=-shared
- MODULE_LIBS="-lgcc -lstdc++"
+ MODULE_LIBS=""
;;
# SunOS.sun4m | \
@@ -241,7 +241,7 @@
;;
esac
-if [ "$*" = "install" ] ; then
+if [ x"$1" = x"install" ] ; then
if [ `uname` != "SunOS" ]; then
USERID=`id -u`
@@ -329,7 +329,7 @@
echo Building QTFileLib internal for $PLAT with $CPLUS
cd ../QTFileLib/
- if [ "$*" = "clean" ] ; then
+ if [ x"$*" = x"clean" ] ; then
$MAKE -f Makefile.POSIX $*
else
$MAKE -f Makefile.POSIX all $*
@@ -421,7 +421,7 @@
$MAKE -f Makefile.POSIX $*
fi
- if [ "$*" = "install" ] ; then
+ if [ x"$1" = x"install" ] ; then
cd ..
pwdi
echo