shithub: alienpatch

Download patch

ref: 391eeaa542c89456b2684963e6f543c8c9ffec7c
parent: 92b96b040f20370acdd79b218342500fd7b693d2
author: qwx <qwx@sciops.net>
date: Sat Feb 1 15:35:50 EST 2020

libopusenc: fix mkfile

--- a/libopusenc
+++ b/libopusenc
@@ -1,19 +1,10 @@
---- /dev/null	Wed Dec 11 10:26:09 2019
-+++ mkfile	Sat Jan 11 02:42:30 2020
-@@ -0,0 +1,34 @@
-+</$objtype/mkfile
+--- /dev/null	Wed Jan  8 06:24:14 2020
++++ mkfile	Sat Feb  1 20:37:33 2020
+@@ -0,0 +1,39 @@
++APE=/sys/src/ape
++<$APE/config
 +
-+CC=pcc
-+CFLAGS=-Iinclude \
-+	-I/sys/src/cmd/audio/libogg \
-+	-I/sys/include/ape/opus \
-+	-DPACKAGE_VERSION="fuckoff" \
-+	-DPACKAGE_NAME="libopusenc" \
-+	-DOUTSIDE_SPEEX \
-+	-DRANDOM_PREFIX=opusenc \
-+	-D_POSIX_SOURCE \
-+	-c
-+LIB=libopusenc.a
++LIB=/$objtype/lib/ape/libopusenc.a
 +
 +OFILES=\
 +	ogg_packer.$O \
@@ -23,15 +14,29 @@
 +	resample.$O \
 +	unicode_support.$O \
 +
-+</sys/src/cmd/mklib
++HFILES=\
++	/sys/include/ape/opus/opusenc.h \
 +
-+LIBDIR=/$objtype/lib/ape
++UPDATE=\
++	mkfile\
++	$HFILES\
++	${OFILES:%.$O=%.c}\
 +
++</sys/src/cmd/mksyslib
++
++CFLAGS=$CFLAGS -c \
++	-Iinclude \
++	-I/sys/src/cmd/audio/libogg \
++	-I/sys/include/ape/opus \
++	-DPACKAGE_VERSION="fuckoff" \
++	-DPACKAGE_NAME="libopusenc" \
++	-DOUTSIDE_SPEEX \
++	-DRANDOM_PREFIX=opusenc \
++	-D_POSIX_SOURCE
++
 +%.$O:	src/%.c
 +	$CC $CFLAGS src/$stem.c
 +
-+installheaders:V:
++$HFILES:
 +	mkdir -p /sys/include/ape/opus
 +	dircp include /sys/include/ape/opus
-+
-+install:VQ:	installheaders