summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-05-31 12:20:11 +0000
committerwiz <wiz@pkgsrc.org>2005-05-31 12:20:11 +0000
commita9d9817e6c9668c4590ccd723775e36c2f8075af (patch)
treeafacfcab879f3334eb189db38f687b007da49b71 /audio
parent8cda01260185cf009f3b29ebe9b4abc1371e3489 (diff)
downloadpkgsrc-a9d9817e6c9668c4590ccd723775e36c2f8075af.tar.gz
Convert to options framework.
While here, clean up gnome1 directory creation.
Diffstat (limited to 'audio')
-rw-r--r--audio/gqmpeg/Makefile16
-rw-r--r--audio/gqmpeg/options.mk16
2 files changed, 19 insertions, 13 deletions
diff --git a/audio/gqmpeg/Makefile b/audio/gqmpeg/Makefile
index 2991995ac91..aa861188cef 100644
--- a/audio/gqmpeg/Makefile
+++ b/audio/gqmpeg/Makefile
@@ -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+= vorbis-tools>=1.0.0.6:../../audio/vorbis-tools
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 @@ GNU_CONFIGURE= YES
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 --git a/audio/gqmpeg/options.mk b/audio/gqmpeg/options.mk
new file mode 100644
index 00000000000..d4485e0b46f
--- /dev/null
+++ b/audio/gqmpeg/options.mk
@@ -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