diff options
-rw-r--r-- | audio/sbagen/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/sbagen/Makefile b/audio/sbagen/Makefile index d80907cd319e..04d67c1d7168 100644 --- a/audio/sbagen/Makefile +++ b/audio/sbagen/Makefile @@ -24,14 +24,18 @@ SHAREFILES= t-alpha t-beta t-calm t-calm2 t-delta t-focus t-focus-1 \ DOCFILES= sbagen.txt theory.txt theory2.txt -do-build: - (cd ${WRKSRC} && ${CC} ${CFLAGS} sbagen.c -o sbagen -lm) +pre-patch: + @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \ + ${WRKSRC}/sbagen.c post-patch: .for F in ${SHAREFILES} @${PERL} -pi -e 's,/bin/bash,/bin/sh,g' ${WRKSRC}/$F .endfor +do-build: + (cd ${WRKSRC} && ${CC} ${CFLAGS} sbagen.c -o sbagen -lm) + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sbagen ${PREFIX}/bin ${MKDIR} ${PREFIX}/share/sbagen |