]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/libdrm/libdrm.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / libdrm / libdrm.nm
index b2ced13f7411399ddd11e88f6e4d83a5c07a44a8..40efa2a1717029f5b97715b29eda20bf286f33ce 100644 (file)
@@ -1,62 +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
-
-PKG_NAME       = libdrm
-PKG_VER        = 2.4.21
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://dri.freedesktop.org/libdrm/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Direct Rendering Manager runtime library.
-
-PKG_BUILD_DEPS+= automake autoconf libtool libxcb-devel pkg-config libudev-devel
+name       = libdrm
+version    = 2.4.21
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://dri.freedesktop.org/libdrm/
+license    = MIT
+summary    = Direct Rendering Manager runtime library.
 
-define PKG_DESCRIPTION
+description
        Direct Rendering Manager runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --enable-udev \
-       --enable-libkms \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/pthread-stubs//g" -i configure.ac
-       cd $(DIR_APP) && sed -e "s/PKG_CHECK_MODULES(PTHREADSTUBS, )//g" -i configure.ac
-       cd $(DIR_APP) && autoreconf -v --install
-endef
-
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
-       cd $(DIR_APP) && install -m 644 $(DIR_SOURCE)/91-drm-modeset.rules\
-               $(BUILDROOT)/lib/udev/rules.d/
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               automake
+               autoconf
+               libtool
+               libxcb-devel
+               pkg-config
+               libudev-devel
+       end
+
+       configure_options += \
+               --enable-udev \
+               --enable-libkms \
+               --disable-static
+
+       prepare_cmds
+               sed -e "s/pthread-stubs//g" -i configure.ac
+               sed -e "s/PKG_CHECK_MODULES(PTHREADSTUBS, )//g" -i configure.ac
+               autoreconf -v --install
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
+               cd %{DIR_APP} && install -m 644 %{DIR_SOURCE}/91-drm-modeset.rules\
+                       %{BUILDROOT}/lib/udev/rules.d/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end