300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
27 lines
873 B
Makefile
27 lines
873 B
Makefile
#############################################################
|
|
#
|
|
# libungif
|
|
#
|
|
#############################################################
|
|
LIBUNGIF_VERSION:=4.1.4
|
|
LIBUNGIF_SOURCE:=libungif-$(LIBUNGIF_VERSION).tar.bz2
|
|
LIBUNGIF_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/giflib
|
|
LIBUNGIF_INSTALL_STAGING = YES
|
|
LIBUNGIF_INSTALL_TARGET = YES
|
|
|
|
LIBUNGIF_CONF_OPT = --without-x
|
|
|
|
LIBUNGIF_BINS = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg gifburst gifclip \
|
|
gifclrmp gifcolor gifcomb gifcompose giffiltr giffix gifflip \
|
|
gifhisto gifinfo gifinter gifinto gifovly gifpos gifrotat \
|
|
gifrsize gifspnge giftext gifwedge icon2gif raw2gif rgb2gif \
|
|
text2gif
|
|
|
|
define LIBUNGIF_BINS_CLEANUP
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(LIBUNGIF_BINS))
|
|
endef
|
|
|
|
LIBUNGIF_POST_INSTALL_TARGET_HOOKS += LIBUNGIF_BINS_CLEANUP
|
|
|
|
$(eval $(call AUTOTARGETS))
|