pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/gqmpeg Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d474884f0ffb
branches: trunk
changeset: 494820:d474884f0ffb
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue May 31 12:20:11 2005 +0000
description:
Convert to options framework.
While here, clean up gnome1 directory creation.
diffstat:
audio/gqmpeg/Makefile | 16 +++-------------
audio/gqmpeg/options.mk | 16 ++++++++++++++++
2 files changed, 19 insertions(+), 13 deletions(-)
diffs (61 lines):
diff -r 251bb17188e7 -r d474884f0ffb audio/gqmpeg/Makefile
--- a/audio/gqmpeg/Makefile Tue May 31 12:10:07 2005 +0000
+++ b/audio/gqmpeg/Makefile Tue May 31 12:20:11 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.84 2005/04/11 21:44:52 tv Exp $
+# $NetBSD: Makefile,v 1.85 2005/05/31 12:20:11 wiz Exp $
DISTNAME= gqmpeg-0.20.0
PKGREVISION= 8
@@ -15,6 +15,7 @@
DEPENDS+= xmp>=2.0.2:../../audio/xmp
USE_DIRS+= gnome1-1.5
+USE_DIRS+= xdg-1.2
USE_PKGINSTALL= YES
USE_PKGLOCALEDIR= YES
USE_X11= YES
@@ -22,22 +23,11 @@
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
-.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
-.if !defined(GQMPEG_NO_JAPANESE)
-CONFIGURE_ARGS+= --enable-japanese
-.endif
-.if !defined(GQMPEG_NO_RUSSIAN)
-CONFIGURE_ARGS+= --enable-russian
-.endif
CONFIGURE_ARGS+= --without-included-gettext
CONFIGURE_ENV+= GNOME_DATADIR=${PREFIX}/share
-# in case gnome isn't installed, we need to create the directories
-pre-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/gnome/apps/Multimedia
- ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
-
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/gdk-pixbuf/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
diff -r 251bb17188e7 -r d474884f0ffb audio/gqmpeg/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/gqmpeg/options.mk Tue May 31 12:20:11 2005 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 12:20:11 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gqmpeg
+PKG_SUPPORTED_OPTIONS= gqmpeg-japanese gqmpeg-russian
+PKG_SUGGESTED_OPTIONS= gqmpeg-japanese gqmpeg-russian
+PKG_OPTIONS_LEGACY_VARS+= GQMPEG_NO_JAPANESE:-gqmpeg-japanese GQMPEG_NO_RUSSIAN:-gqmpeg-russian
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgqmpeg-japanese)
+CONFIGURE_ARGS+= --enable-japanese
+.endif
+
+.if !empty(PKG_OPTIONS:Mgqmpeg-russian)
+CONFIGURE_ARGS+= --enable-russian
+.endif
Home |
Main Index |
Thread Index |
Old Index