]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/dbus-glib/dbus-glib.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / dbus-glib / dbus-glib.nm
index 319cc01c14b4970d20c0f96f46cac844533b0a34..c80decc2741b37f346b3690e11204c6512aedf33 100644 (file)
@@ -1,64 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dbus-glib
+version    = 0.94
+release    = 1
 
-PKG_NAME       = dbus-glib
-PKG_VER        = 0.94
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://www.freedesktop.org/software/dbus/
+license    = GPLv2+ AFL
+summary    = Glib bindings for D-Bus.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.freedesktop.org/software/dbus/
-PKG_LICENSE    = GPLv2+ AFL
-PKG_SUMMARY    = Glib bindings for D-Bus.
-
-PKG_BUILD_DEPS+= dbus dbus-devel expat-devel gettext glib2-devel
-PKG_DEPS-$(PKG_NAME)-devel = glib2-devel
-
-define PKG_DESCRIPTION
+description
        D-Bus add-on library to integrate the standard D-Bus library with \
        the GLib thread abstraction and main loop.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libdir=/lib \
-       --libexecdir=/usr/lib \
-       --mandir=/usr/share/man
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-
-       rm -vf $(BUILDROOT)/lib/libdbus-glib-1.so
-       ln -svf ../../lib/libdbus-glib-1.so.2 $(BUILDROOT)/usr/lib/libdbus-glib-1.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               dbus
+               dbus-devel
+               expat-devel
+               gettext
+               glib2-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --mandir=/usr/share/man
+
+       test
+               make check
+       end
+
+       install_cmds
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+
+               rm -vf %{BUILDROOT}/lib/libdbus-glib-1.so
+               ln -svf ../../lib/libdbus-glib-1.so.2 %{BUILDROOT}/usr/lib/libdbus-glib-1.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = glib2-devel
+       end
+end