| 1 |
NAME = intltool |
| 2 |
VERSION = 0.51.0 |
| 3 |
|
| 4 |
CATEGORIES = utils |
| 5 |
|
| 6 |
DESCRIPTION = Internationalization tool collection |
| 7 |
define BLURB |
| 8 |
intltool is a set of tools to centralize translation of many different |
| 9 |
file formats using GNU gettext-compatible PO files. |
| 10 |
endef |
| 11 |
|
| 12 |
MASTER_SITES = https://launchpad.net/intltool/trunk/$(VERSION)/+download/ |
| 13 |
DISTFILES = $(DISTNAME).tar.gz |
| 14 |
|
| 15 |
LICENSE = COPYING |
| 16 |
|
| 17 |
PACKAGES = OZSWintltool |
| 18 |
SPKG_DESC_OZSWintltool = Internationalization tool collection |
| 19 |
SPKG_CLASSES = cswdictconf |
| 20 |
RUNTIME_DEP_PKGS_OZSWintltool = |
| 21 |
|
| 22 |
# Use system perl (/usr/bin/perl) which has XML::Parser for the configure check. |
| 23 |
# Then patch shebangs to OZSWperl (which has Encode) for runtime use. |
| 24 |
CONFIGURE_ARGS = $(DIRPATHS) |
| 25 |
CONFIGURE_ARGS += PERL=/usr/bin/perl |
| 26 |
|
| 27 |
include gar/category.mk |
| 28 |
|
| 29 |
post-install: |
| 30 |
# Patch intltool script shebangs to use OZSWperl (which has Encode compiled in) |
| 31 |
for f in $(DESTDIR)$(BUILD_PREFIX)/bin/intltool-*; do \ |
| 32 |
/usr/bin/gsed -i '1s|^#!/usr/bin/perl|#!/opt/ozsw/bin/perl|' "$$f"; \ |
| 33 |
done |
| 34 |
@$(MAKECOOKIE) |