Convert to options framework.

This commit is contained in:
wiz 2005-05-31 15:13:57 +00:00
parent 4bc0019fe0
commit ce47c9d25b
2 changed files with 22 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2005/04/11 21:44:53 tv Exp $
# $NetBSD: Makefile,v 1.7 2005/05/31 15:13:57 wiz Exp $
DISTNAME= gqmpeg-0.91.1
PKGREVISION= 2
@ -15,30 +15,21 @@ DEPENDS+= vorbis-tools>=1.0.0.6:../../audio/vorbis-tools
DEPENDS+= xmp>=2.0.2:../../audio/xmp
USE_DIRS+= gnome2-1.5
USE_DIRS+= xdg-1.2
USE_PKGINSTALL= YES
USE_PKGLOCALEDIR= YES
USE_X11= YES
GNU_CONFIGURE= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
.include "../../mk/bsd.prefs.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
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
.include "options.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
# in case gnome isn't installed, we need to create the directories
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,16 @@
# $NetBSD: options.mk,v 1.1 2005/05/31 15:13:57 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