###############################################################################
-# #
-# 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 = libjpeg-turbo
-PKG_VER = 1.0.0
-PKG_REL = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS = System/Libraries
-PKG_URL = http://sourceforge.net/projects/libjpeg-turbo
-PKG_LICENSE = wxWidgets
-PKG_SUMMARY = A MMX/SSE2 accelerated library for manipulating JPEG image files.
+name = libjpeg-turbo
+version = 1.0.0
+release = 1
-PKG_PACKAGES += $(PKG_NAME_REAL)-devel
+groups = System/Libraries
+url = http://sourceforge.net/projects/libjpeg-turbo
+license = wxWidgets
+summary = A MMX/SSE2 accelerated library for manipulating JPEG image files.
-PKG_BUILD_DEPS+= autoconf automake gcc-c++ libtool nasm
-
-define PKG_DESCRIPTION
+description
The libjpeg-turbo-utils package contains simple client programs for \
accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,\
rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. \
can perform various useful transformations on JPEG files. Rdjpgcom \
displays any text comments included in a JPEG file. Wrjpgcom inserts \
text comments into a JPEG file.
-endef
-
-PKG_TARBALL = $(PKG_NAME)-$(PKG_VER).tar.gz
-
-CONFIGURE_OPTIONS += \
- --enable-shared
-
-define STAGE_PREPARE_CMDS
- cd $(DIR_APP) && autoreconf -vfi
-endef
-
-define STAGE_INSTALL_CMDS
- # Remove non-versioned libjpegturbo.
- rm -vf $(BUILDROOT)/usr/include/turbojpeg.h
- rm -vf $(BUILDROOT)/usr/lib/libturbojpeg.so
-endef
+end
+
+source_dl =
+sources = %{name}-%{version}.tar.gz
+
+build
+ requires
+ autoconf
+ automake
+ gcc-c++
+ libtool
+ nasm
+ end
+
+ configure_options += \
+ --enable-shared
+
+ prepare_cmds
+ autoreconf -vfi
+ end
+
+ install_cmds
+ # Remove non-versioned libjpegturbo.
+ rm -vf %{BUILDROOT}/usr/include/turbojpeg.h
+ rm -vf %{BUILDROOT}/usr/lib/libturbojpeg.so
+ end
+end
+
+packages
+ package %{name}
+ end
+
+ package %{name}-devel
+ template DEVEL
+ end
+end