@ -8,21 +8,20 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := giflib
PKG_VERSION := 5.1.4
PKG_VERSION := 5.2.1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := @SF/giflib
PKG_HASH := df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5
PKG_HASH := 31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
PKG_MAINTAINER := Ted Hess <thess@kitschensync.net>
PKG_LICENSE := MIT
PKG_LICENSE_FILES := COPYING
PKG_CPE_ID := cpe:/a:giflib_project:giflib
PKG_FIXUP := autoreconf
PKG_REMOVE_FILES := autogen.sh aclocal.m4
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -31,7 +30,7 @@ define Package/giflib
SECTION:= libs
CATEGORY:= Libraries
TITLE:= GIF libraries
URL:= http://sourceforge.net/projects/giflib
URL:= https ://sourceforge.net/projects/giflib
e n d e f
d e f i n e P a c k a g e / g i f l i b / d e s c r i p t i o n
@ -40,23 +39,24 @@ define Package/giflib/description
the LZW compression algorithm was patented.
e n d e f
TARGET_CFLAGS += $( FPIC)
TARGET_CFLAGS += -ffunction-sections -fdata-sections $( FPIC)
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR)
e n d e f
MAKE_FLAGS += \
CFLAGS = " $( TARGET_CFLAGS) " \
LDFLAGS = " $( TARGET_LDFLAGS) " \
PREFIX = $( CONFIGURE_PREFIX)
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/{ lib,include}
$( CP) $( PKG_BUILD_DIR) /lib/.libs/lib*so* $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/.libs/libgif.a $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libgif.la $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/*.h $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libgif.so* $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libgif.a $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/include/*.h $( 1) /usr/include
e n d e f
d e f i n e P a c k a g e / g i f l i b / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/.libs/lib* so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libgif. so* $( 1) /usr/lib
e n d e f
$( eval $ ( call HostBuild ) )