pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio Use USE_CMAKE rather that doing same explicitly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ba60a808dd3
branches:  trunk
changeset: 537199:6ba60a808dd3
user:      markd <markd%pkgsrc.org@localhost>
date:      Fri Jan 04 20:10:10 2008 +0000

description:
Use USE_CMAKE rather that doing same explicitly.
Package supports DESTDIR.

diffstat:

 audio/libmusicbrainz/Makefile |  14 +++++---------
 audio/mppenc/Makefile         |   8 +++-----
 2 files changed, 8 insertions(+), 14 deletions(-)

diffs (56 lines):

diff -r 37c5ef8bd3eb -r 6ba60a808dd3 audio/libmusicbrainz/Makefile
--- a/audio/libmusicbrainz/Makefile     Fri Jan 04 20:05:11 2008 +0000
+++ b/audio/libmusicbrainz/Makefile     Fri Jan 04 20:10:10 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/06/08 07:02:15 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2008/01/04 20:10:10 markd Exp $
 
 DISTNAME=      libmusicbrainz-3.0.0
 CATEGORIES=    audio
@@ -8,20 +8,16 @@
 HOMEPAGE=      http://musicbrainz.org/doc/libmusicbrainz
 COMMENT=       MusicBrainz (user-maintained community music metadatabase) library
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_CMAKE=             yes
 USE_LANGUAGES=         c c++
 PKGCONFIG_OVERRIDE=    libmusicbrainz3.pc.cmake
 
-do-configure:
-       cd ${WRKSRC} && cmake . -DCMAKE_INSTALL_PREFIX:STRING=${PREFIX:Q} \
-               -DNEON_INCLUDE_DIR:PATH=${PREFIX:Q}/include/neon \
-               -DCMAKE_INSTALL_RPATH:STRING=${PREFIX:Q}/lib \
-               -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON \
-               -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-               -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON
+CMAKE_ARGS+=   -DNEON_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.neon}/include/neon
 
 # XXX: should be a dependency, but doesn't work on enough platforms
 #.include "../../audio/libdiscid/buildlink3.mk"
-.include "../../devel/cmake/buildlink3.mk"
 BUILDLINK_API_DEPENDS.neon+=   neon>=0.25.0
 .include "../../www/neon/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 37c5ef8bd3eb -r 6ba60a808dd3 audio/mppenc/Makefile
--- a/audio/mppenc/Makefile     Fri Jan 04 20:05:11 2008 +0000
+++ b/audio/mppenc/Makefile     Fri Jan 04 20:10:10 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/01/25 19:34:22 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2008/01/04 20:17:47 markd Exp $
 #
 
 DISTNAME=      mppenc-1.16
@@ -10,10 +10,8 @@
 HOMEPAGE=      http://www.musepack.net/
 COMMENT=       Musepack encoder
 
-BUILD_DEPENDS+=        cmake-[0-9]*:../../devel/cmake
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-do-configure:
-       (cd ${WRKSRC} && ${LOCALBASE}/bin/cmake \
-        -DCMAKE_INSTALL_PREFIX:STRING=${PREFIX})
+USE_CMAKE=     yes
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index