d70523df21
Shared directories can now be created independently by the pacakges needing them and will be removed automatically by pkg_delete when empty. Packages needing empty directories can use the @pkgdir command in PLIST. Discussed and ok'd in thread starting at http://mail-index.netbsd.org/tech-pkg/2009/06/30/msg003546.html
37 lines
1,008 B
Makefile
37 lines
1,008 B
Makefile
# $NetBSD: options.mk,v 1.4 2009/07/22 09:01:36 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.celestia
|
|
PKG_SUPPORTED_OPTIONS= # empty
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= gui
|
|
PKG_OPTIONS_GROUP.gui= glut gnome gtk kde
|
|
PKG_SUGGESTED_OPTIONS= gtk
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mglut)
|
|
CONFIGURE_ARGS+= --with-glut
|
|
. include "../../graphics/glut/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk)
|
|
CONFIGURE_ARGS+= --with-gtk
|
|
PLIST_SRC= ${PKGDIR}/PLIST.gtk
|
|
. include "../../graphics/gtkglext/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
CONFIGURE_ARGS+= --with-gnome
|
|
PLIST_SRC= ${PKGDIR}/PLIST.gtk
|
|
. include "../../devel/GConf/schemas.mk"
|
|
. include "../../devel/libgnomeui/buildlink3.mk"
|
|
. include "../../graphics/gtkglext/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mkde)
|
|
CONFIGURE_ARGS+= --with-kde
|
|
PLIST_SRC= ${PKGDIR}/PLIST.kde
|
|
. include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
. include "../../x11/kdelibs3/buildlink3.mk"
|
|
.endif
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|