summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-06-26 13:07:37 +0000
committerzuntum <zuntum>2001-06-26 13:07:37 +0000
commita973f6783ff216f5fb0346206fb53f7221b4dd0a (patch)
tree5adecc7aea3c6875cc00be3250810d92b9ec9742 /audio
parent9cb323c03756d951e80dcbf867c36e77f40026a8 (diff)
downloadpkgsrc-a973f6783ff216f5fb0346206fb53f7221b4dd0a.tar.gz
o convert to use buildlink.mk
o add buildlink.mk for use by other packages
Diffstat (limited to 'audio')
-rw-r--r--audio/libvorbis/Makefile6
-rw-r--r--audio/libvorbis/buildlink.mk37
2 files changed, 40 insertions, 3 deletions
diff --git a/audio/libvorbis/Makefile b/audio/libvorbis/Makefile
index e120f290854..52885da61f8 100644
--- a/audio/libvorbis/Makefile
+++ b/audio/libvorbis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2001/04/11 09:00:45 tron Exp $
+# $NetBSD: Makefile,v 1.5 2001/06/26 13:07:37 zuntum Exp $
DISTNAME= libvorbis-1.0beta4
PKGNAME= libvorbis-1.0.0.4
@@ -9,15 +9,15 @@ MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://www.xiph.org/ogg/vorbis/
COMMENT= Library for the Ogg Vorbis audio encoding format
+USE_BUILDLINK_ONLY= YES
BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf
BUILD_DEPENDS+= automake-1.4:../../devel/automake
-DEPENDS+= libogg>=1.0.0.4:../../audio/libogg
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
-CONFIGURE_ARGS= --with-ogg-prefix=${PREFIX}
PLIST_SUBST+= DISTNAME=${DISTNAME}
+.include "../../audio/libogg/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libvorbis/buildlink.mk b/audio/libvorbis/buildlink.mk
new file mode 100644
index 00000000000..94e052653ab
--- /dev/null
+++ b/audio/libvorbis/buildlink.mk
@@ -0,0 +1,37 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/26 13:07:37 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use libvorbis.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libvorbis to the dependency pattern
+# for the version of libvorbis desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBVORBIS_BUILDLINK_MK)
+LIBVORBIS_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.libvorbis?= libvorbis>=1.0.0.4
+DEPENDS+= ${BUILDLINK_DEPENDS.libvorbis}:../../databases/libvorbis
+
+BUILDLINK_PREFIX.libvorbis= ${LOCALBASE}
+BUILDLINK_FILES.libvorbis= include/vorbis/*
+BUILDLINK_FILES.libvorbis+= lib/libvorbis.*
+BUILDLINK_FILES.libvorbis+= lib/libvorbisenc.*
+BUILDLINK_FILES.libvorbis+= lib/libvorbisfile.*
+
+.include "../../audio/libogg/buildlink.mk"
+
+BUILDLINK_TARGETS.libvorbis= libvorbis-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libvorbis}
+
+pre-configure: ${BUILDLINK_TARGETS.libvorbis}
+libvorbis-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBVORBIS_BUILDLINK_MK