summaryrefslogtreecommitdiff
path: root/devel/smpeg
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-28 21:48:15 +0000
committerjlam <jlam>2001-06-28 21:48:15 +0000
commite07dfc7142f3e9dc4d77e82ab7fe484ba6f1285b (patch)
tree271d296d8967ec585765926bda345d4483ae947a /devel/smpeg
parentd59782eec37cec487da63929afb9c590a5c9cf41 (diff)
downloadpkgsrc-e07dfc7142f3e9dc4d77e82ab7fe484ba6f1285b.tar.gz
- Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY.
- Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'devel/smpeg')
-rw-r--r--devel/smpeg/Makefile13
-rw-r--r--devel/smpeg/buildlink.mk45
2 files changed, 54 insertions, 4 deletions
diff --git a/devel/smpeg/Makefile b/devel/smpeg/Makefile
index 5e54e3bdf55..5be47617551 100644
--- a/devel/smpeg/Makefile
+++ b/devel/smpeg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2001/06/28 21:29:29 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2001/06/28 21:48:15 jlam Exp $
#
DISTNAME= smpeg-0.4.3
@@ -10,13 +10,18 @@ MAINTAINER= wulf@netbsd.org
HOMEPAGE= http://www.lokigames.com/development/smpeg.php3
COMMENT= SDL MPEG Player Library
-DEPENDS+= SDL>=1.1.5nb1:../../devel/SDL
-DEPENDS+= gtk+-1.*:../../x11/gtk
-
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+USE_BUILDLINK_ONLY= yes
+USE_CONFIG_WRAPPER= yes
+REPLACE_BUILDLINK= smpeg-config
+
+CPPFLAGS+= -Dunix=1
+
+.include "../../devel/SDL/buildlink.mk"
+.include "../../x11/gtk/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/smpeg/buildlink.mk b/devel/smpeg/buildlink.mk
new file mode 100644
index 00000000000..69546a16f8b
--- /dev/null
+++ b/devel/smpeg/buildlink.mk
@@ -0,0 +1,45 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/28 21:48:15 jlam Exp $
+#
+# This Makefile fragment is included by packages that use smpeg.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.smpeg to the dependency pattern
+# for the version of smpeg 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(SMPEG_BUILDLINK_MK)
+SMPEG_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.smpeg?= smpeg>=1.2.8
+DEPENDS+= ${BUILDLINK_DEPENDS.smpeg}:../../devel/smpeg
+
+BUILDLINK_PREFIX.smpeg= ${LOCALBASE}
+BUILDLINK_FILES.smpeg= include/smpeg/*
+BUILDLINK_FILES.smpeg+= lib/libsmpeg-*
+BUILDLINK_FILES.smpeg+= lib/libsmpeg.*
+
+.include "../../devel/SDL/buildlink.mk"
+
+BUILDLINK_TARGETS.smpeg= smpeg-buildlink
+BUILDLINK_TARGETS.smpeg+= smpeg-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.smpeg}
+
+BUILDLINK_CONFIG.smpeg= ${LOCALBASE}/bin/smpeg-config
+BUILDLINK_CONFIG_WRAPPER.smpeg= ${BUILDLINK_DIR}/bin/smpeg-config
+
+.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE)
+CONFIGURE_ENV+= SMPEG_CONFIG="${BUILDLINK_CONFIG_WRAPPER.smpeg}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.smpeg}
+smpeg-buildlink: _BUILDLINK_USE
+smpeg-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # SMPEG_BUILDLINK_MK