liberation: convert to gentargets and bump to 1.06.0.20100721
authorMartin Banky <martin.banky@gmail.com>
Sun, 26 Sep 2010 07:14:06 +0000 (00:14 -0700)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 29 Sep 2010 20:30:35 +0000 (22:30 +0200)
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/liberation/liberation.mk

diff --git a/CHANGES b/CHANGES
index 88267a149b49bff45cd0ebe05811c50b3cec5b8f..907eab1db9702720d9a0aaf2b3b1ff61810261d2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
        fconfig, ffmpeg, freetype, gadgetfs-test, gamin, gawk, gperf,
        gtk2-themes, gtkperf, gvfs, haserl, hdparm, hostapd, hwdata,
        ifplugd, iperf, iproute2, iptables, jpeg, kexec, kismet, less,
-       libcgi, libcurl, libdaemon, libdnet, libevent, libglade,
-       libgtk2, libiconv, libidn, libmms, libnl, liboil, libpcap,
-       libpng, libtool, libungif, libxml2, libxslt, lighttpd, lite,
-       lm-sensors, logrotate, m4, mdadm, mesa3d, metacity, mtd-utils,
-       mysql_client, nano, nbd, ncftp, neon, netperf, netsnmp,
-       ng-spice-rework, ntfsprogs, ntp, openntpd, openssh, openvpn,
-       oprofile, pango, patch, pcre, php, pkg-config, prboom, radvd,
-       rdesktop, ruby, qt, samba, sawman, sdl_mixer, sdl_sound,
-       setserial, shared-mime-info, speex, sqlite, squashfs, strace,
-       sylpheed, taglib, tcpdump, thttpd, tiff, tn5250, udev,
-       udpcast, usbmount, usbutils, vsftpd, vtun, which,
-       wpa_supplicant,
+       libcgi, libcurl, libdaemon, libdnet, liberation, libevent,
+       libglade, libgtk2, libiconv, libidn, libmms, libnl, liboil,
+       libpcap, libpng, libtool, libungif, libxml2, libxslt,
+       lighttpd, lite, lm-sensors, logrotate, m4, mdadm, mesa3d,
+       metacity, mtd-utils, mysql_client, nano, nbd, ncftp, neon,
+       netperf, netsnmp, ng-spice-rework, ntfsprogs, ntp, openntpd,
+       openssh, openvpn, oprofile, pango, patch, pcre, php,
+       pkg-config, prboom, radvd, rdesktop, ruby, qt, samba, sawman,
+       sdl_mixer, sdl_sound, setserial, shared-mime-info, speex,
+       sqlite, squashfs, strace, sylpheed, taglib, tcpdump, thttpd,
+       tiff, tn5250, udev, udpcast, usbmount, usbutils, vsftpd, vtun,
+       which, wpa_supplicant,
        xdriver_xf86-input-{acecad,aiptek,evdev,joystick,keyboard},
        xdriver-xf86-input-{mouse,synaptics,vmmouse,void},
        xdriver-xf86-video-{apm,ark,ast,ati,chips,cirrus,dummy,fbdev},
index ad6567052acedffed1ee617ed53684f647472e4f..89987d6db665f030e842078ad87065f08dfedee9 100644 (file)
@@ -3,40 +3,19 @@
 # liberation
 #
 #############################################################
-LIBERATION_VERSION = 1.04
+LIBERATION_VERSION = 1.06.0.20100721
 LIBERATION_SITE = http://www.fedorahosted.org/releases/l/i/liberation-fonts
-LIBERATION_SOURCE = liberation-fonts-$(LIBERATION_VERSION).tar.gz
-LIBERATION_DIR = $(BUILD_DIR)/liberation-fonts-$(LIBERATION_VERSION)
-LIBERATION_CAT:=$(ZCAT)
-LIBERATION_TARGET_DIR:=$(TARGET_DIR)/usr/share/fonts/liberation
+LIBERATION_SOURCE = liberation-fonts-ttf-$(LIBERATION_VERSION).tar.gz
 
-$(DL_DIR)/$(LIBERATION_SOURCE):
-       $(call DOWNLOAD,$(LIBERATION_SITE),$(LIBERATION_SOURCE))
+LIBERATION_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/liberation
 
-liberation-source: $(DL_DIR)/$(LIBERATION_SOURCE)
-
-$(LIBERATION_DIR)/.unpacked: $(DL_DIR)/$(LIBERATION_SOURCE)
-       $(LIBERATION_CAT) $(DL_DIR)/$(LIBERATION_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       touch $@
-
-$(LIBERATION_TARGET_DIR)/LiberationMono-Bold.ttf: $(LIBERATION_DIR)/.unpacked
+define LIBERATION_INSTALL_TARGET_CMDS
        mkdir -p $(LIBERATION_TARGET_DIR)
-       $(INSTALL) -m0644 $(LIBERATION_DIR)/*.ttf $(LIBERATION_TARGET_DIR)
-       touch -c $@
+       $(INSTALL) -m 644 $(@D)/*.ttf $(LIBERATION_TARGET_DIR)
+endef
 
-liberation: $(LIBERATION_TARGET_DIR)/LiberationMono-Bold.ttf
-
-liberation-clean:
+define LIBERATION_CLEAN_CMDS
        rm -rf $(LIBERATION_TARGET_DIR)
+endef
 
-liberation-dirclean:
-       rm -rf $(LIBERATION_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_LIBERATION),y)
-TARGETS+=liberation
-endif
+$(eval $(call GENTARGETS,package,liberation))