@ -1,26 +1,24 @@
#
# Copyright (C) 2010-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
LOWFAT_VERSION = 0.30
PKG_NAME := libowfat
PKG_VERSION := $( LOWFAT_VERSION)
PKG_VERSION := 0.31
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := http://www.fefe.de/libowfat
PKG_MD5SUM := f0119532ea834ce9e80afe49d7d855 12
PKG_HASH := d1e4ac1cfccbb7dc51d77d96398e6302d229ba7538158826c84cb4254c7e8a 12
PKG_MAINTAINER := Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE := GPL-2.0
PKG_LICENSE_FILES := COPYING
PKG_BUILD_DEPENDS += libowfat/host
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
# set to 1 to enable debugging
DEBUG =
@ -39,7 +37,13 @@ TARGET_CFLAGS += $(FPIC)
LOWFAT_MAKEOPTS = $( TARGET_CONFIGURE_OPTS) \
CFLAGS = " $( TARGET_CFLAGS) -I $( PKG_BUILD_DIR) -I $( STAGING_DIR) /usr/include " \
DEBUG = " $( DEBUG) " \
VERSION = " $( LOWFAT_VERSION) " \
VERSION = " $( PKG_VERSION) " \
OS = "Linux"
LOWFAT_HOST_MAKEOPTS = $( HOST_CONFIGURE_OPTS) \
CFLAGS = " $( HOST_CFLAGS) -I $( HOST_BUILD_DIR) -I $( STAGING_DIR_HOSTPKG) /include " \
DEBUG = " $( DEBUG) " \
VERSION = " $( PKG_VERSION) " \
OS = "Linux"
# work around a nasty gcc bug
@ -51,6 +55,15 @@ define Build/Compile
$( MAKE) -C $( PKG_BUILD_DIR) $( LOWFAT_MAKEOPTS)
e n d e f
d e f i n e H o s t / C o m p i l e
$( MAKE) -C $( HOST_BUILD_DIR) $( LOWFAT_HOST_MAKEOPTS) ent
e n d e f
d e f i n e H o s t / I n s t a l l
$( INSTALL_DIR) $( STAGING_DIR_HOSTPKG) /bin
$( CP) $( HOST_BUILD_DIR) /ent $( STAGING_DIR_HOSTPKG) /bin/libowfat-ent
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
mkdir -p $( 1) /usr/include/libowfat
$( CP) $( PKG_BUILD_DIR) /*.h $( 1) /usr/include/libowfat
@ -58,4 +71,5 @@ define Build/InstallDev
$( CP) $( PKG_BUILD_DIR) /*.a $( 1) /usr/lib
e n d e f
$( eval $ ( call HostBuild ) )
$( eval $ ( call BuildPackage ,libowfat ) )