aboutsummaryrefslogtreecommitdiff
path: root/audio/vorbis-tools/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2000-11-02 21:17:27 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2000-11-02 21:17:27 +0000
commitcace07ca95a538063f74e0c22bf548c9ddf7b845 (patch)
treeb7ccfa7122f8145ebe06fa166b74b813cfaf565a /audio/vorbis-tools/Makefile
parentb2aa1c9be4d8b1779fa5f76b71531e6668e1bd85 (diff)
downloadports-cace07ca95a538063f74e0c22bf548c9ddf7b845.tar.gz
ports-cace07ca95a538063f74e0c22bf548c9ddf7b845.zip
Notes
Diffstat (limited to 'audio/vorbis-tools/Makefile')
-rw-r--r--audio/vorbis-tools/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/audio/vorbis-tools/Makefile b/audio/vorbis-tools/Makefile
new file mode 100644
index 000000000000..1ca246d5bf91
--- /dev/null
+++ b/audio/vorbis-tools/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: vorbis-tools
+# Date created: 18 October 2000
+# Whom: t.vanklaveren@student.utwente.nl
+#
+# $FreeBSD$
+#
+
+PORTNAME= vorbis-tools
+PORTVERSION= 20001018
+CATEGORIES= audio
+MASTER_SITES= http://home.student.utwente.nl/t.vanklaveren/distfiles/
+DISTNAME= vorbis-tools-${PORTVERSION}
+
+MAINTAINER= t.vanklaveren@student.utwente.nl
+
+LIB_DEPENDS= ao.0:${PORTSDIR}/audio/libao \
+ ogg.0:${PORTSDIR}/audio/libogg \
+ vorbis.0:${PORTSDIR}/audio/libvorbis
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+WRKSRC= ${WRKDIR}/vorbis-tools
+ACLOCAL?= ${LOCALBASE}/bin/aclocal
+AUTOHEADER?= ${LOCALBASE}/bin/autoheader
+CFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ARGS+= --with-ogg=${LOCALBASE} \
+ --with-ao=${LOCALBASE}
+
+MAN1= ogg123.1
+
+post-build:
+# This is probably evil, and should be in a Makefile.
+ cd ${WRKSRC}/oggenc && ${CC} ${CFLAGS} -c getopt1.c
+ cd ${WRKSRC}/ogg123 && ${CC} ${CFLAGS} -c ogg123.c -I${LOCALBASE}/include
+ cd ${WRKSRC}/ogg123 && ${CC} ${LDFLAGS} -o ogg123 ogg123.o ../oggenc/getopt.o ../oggenc/getopt1.o -L${LOCALBASE}/lib -logg -lvorbis -lao -lvorbisfile
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ogg123/ogg123 ${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/ogg123/ogg123.1 ${PREFIX}/man/man1/
+
+post-patch:
+ cd ${WRKSRC} && ${ACLOCAL}
+ cd ${WRKSRC} && ${AUTOHEADER}
+ cd ${WRKSRC} && ${AUTOMAKE} --add-missing
+ cd ${WRKSRC} && ${AUTOCONF}
+
+.include <bsd.port.mk>