2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@SF
/giflib
16 PKG_HASH
:=76c0a084c3b02f9315ff937b8be6096186002fea26f33e2123081ba2be6e2a7c
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
21 PKG_LICENSE_FILES
:=COPYING
24 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
26 include $(INCLUDE_DIR
)/host-build.mk
27 include $(INCLUDE_DIR
)/package.mk
33 URL
:=http
://sourceforge.net
/projects
/giflib
36 define Package
/giflib
/description
37 giflib is a library for reading and writing gif images.
38 It is API and ABI compatible with libungif which was in wide use while
39 the LZW compression algorithm was patented.
42 TARGET_CFLAGS
+= $(FPIC
)
45 $(MAKE
) -C
$(PKG_BUILD_DIR
)
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/{lib
,include}
50 $(CP
) $(PKG_BUILD_DIR
)/lib
/.libs
/lib
*so
* $(1)/usr
/lib
51 $(CP
) $(PKG_BUILD_DIR
)/lib
/.libs
/libgif.a
$(1)/usr
/lib
52 $(CP
) $(PKG_BUILD_DIR
)/lib
/libgif.la
$(1)/usr
/lib
53 $(CP
) $(PKG_BUILD_DIR
)/lib
/*.h
$(1)/usr
/include/
56 define Package
/giflib
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_BUILD_DIR
)/lib
/.libs
/lib
*so
* $(1)/usr
/lib
/
61 $(eval
$(call HostBuild
))
62 $(eval
$(call BuildPackage
,giflib
))