shithub: aacdec

Download patch

ref: 65c09c021d39fd35afd6f41e66a32057719bd1e6
parent: f04dced0c0331caf7c6e1dbfb3297221e48d0f06
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Feb 1 09:40:01 EST 2021

do not install libfaad, build arch-specific archive and use it in the header file instead

--- a/frontend/mkfile
+++ b/frontend/mkfile
@@ -1,7 +1,7 @@
 </$objtype/mkfile
 
 TARG=aacdec
-CFLAGS=$CFLAGS -p -D__plan9__
+CFLAGS=$CFLAGS -I../include -p -D__plan9__
 BIN=/$objtype/bin/audio
 
 HFILES=\
--- a/include/neaacdec.h
+++ b/include/neaacdec.h
@@ -31,7 +31,7 @@
 #ifndef __NEAACDEC_H__
 #define __NEAACDEC_H__
 
-#pragma	lib	"libfaad.a"
+#pragma	lib	"../libfaad/libfaad.$M.a"
 
 #ifdef __cplusplus
 extern "C" {
--- a/libfaad/mkfile
+++ b/libfaad/mkfile
@@ -1,12 +1,8 @@
 </$objtype/mkfile
 
-</$objtype/mkfile
-LIB=/$objtype/lib/libfaad.a
+LIB=libfaad.$objtype.a
 CFLAGS=$CFLAGS -I../include -DPACKAGE_VERSION="2.9.2" -p -D__plan9__
 
-HFILES=\
-	/sys/include/neaacdec.h\
-
 OFILES=\
 	bits.$O\
 	cfft.$O\
@@ -47,7 +43,4 @@
 	syntax.$O\
 	tns.$O\
 
-/sys/include/%.h:
-	cp ../include/$stem.h /sys/include/$stem.h
-
-</sys/src/cmd/mksyslib
+</sys/src/cmd/mklib