aboutsummaryrefslogtreecommitdiffstats
path: root/audio/sbagen/Makefile
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-03-31 11:45:43 +0800
committerkris <kris@FreeBSD.org>2002-03-31 11:45:43 +0800
commit2109e3d724b41a16acd8d6e9be93d84d254d9110 (patch)
treedb54f92929b42727e0203ae9a0a589a7353145c0 /audio/sbagen/Makefile
parentc240fb7747a4a2905e1af91913203ac2d2214a63 (diff)
downloadfreebsd-ports-gnome-2109e3d724b41a16acd8d6e9be93d84d254d9110.tar.gz
freebsd-ports-gnome-2109e3d724b41a16acd8d6e9be93d84d254d9110.tar.zst
freebsd-ports-gnome-2109e3d724b41a16acd8d6e9be93d84d254d9110.zip
Remove #include <malloc.h>
Reorder do-build target in temporal order
Diffstat (limited to 'audio/sbagen/Makefile')
-rw-r--r--audio/sbagen/Makefile8
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