summaryrefslogtreecommitdiff
path: root/package/pango/Makefile
blob: f5f4ba30ad02621ac80b67924a1fe31454623bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		pango
PKG_VERSION:=		1.33.7
PKG_RELEASE:=		1
PKG_MD5SUM:=		0dcdae60523229c20ee6551345206988
PKG_DESCR:=		pango library
PKG_SECTION:=		libs
PKG_BUILDDEP:=		libXft glib cairo libstdcxx harfbuzz fontconfig
PKG_URL:=		http://www.pango.org/
PKG_SITES:=		${MASTER_SITE_GNOME:=pango/1.33/}
PKG_NEED_CXX:=		1

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.xz

PKG_SUBPKGS:=		PANGO PANGO_DEV
PKGSC_PANGO_DEV:=	devel
PKGSD_PANGO_DEV:=	pango headers

ifeq ($(ADK_STATIC),y)
PKG_OPTS:=		libonly
endif

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,PANGO,pango,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,PANGO_DEV,pango-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_PANGO_DEV},${PKGSC_PANGO_DEV},${PKG_OPTS}))

TARGET_CFLAGS:=         $(filter-out -flto,$(TARGET_CFLAGS))
TARGET_LDFLAGS+=	-L$(STAGING_DIR)/usr/lib64
CONFIGURE_ENV+=		ac_cv_path_EGREP="grep -E"

pango-install:
	$(INSTALL_DIR) $(IDIR_PANGO)/etc/pango
	$(INSTALL_DIR) $(IDIR_PANGO)/usr/bin
	$(INSTALL_DIR) $(IDIR_PANGO)/usr/lib $(IDIR_PANGO)/usr/lib/pango/1.8.0/modules
	$(INSTALL_DATA) ./files/pango.modules $(IDIR_PANGO)/etc/pango
	$(CP) $(WRKINST)/usr/lib/libpango*.so* $(IDIR_PANGO)/usr/lib
	$(CP) $(WRKINST)/usr/lib/pango/1.8.0/modules/*.so \
		$(IDIR_PANGO)/usr/lib/pango/1.8.0/modules
	$(INSTALL_BIN) $(WRKINST)/usr/bin/pango-querymodules \
		$(IDIR_PANGO)/usr/bin

pango-dev-install:
	$(INSTALL_DIR) $(IDIR_PANGO_DEV)/usr/include
	${CP} $(WRKINST)/usr/include/* \
		$(IDIR_PANGO_DEV)/usr/include
	$(INSTALL_DIR) $(IDIR_PANGO_DEV)/usr/lib/pkgconfig
	${CP} $(WRKINST)/usr/lib/pkgconfig/*.pc \
		$(IDIR_PANGO_DEV)/usr/lib/pkgconfig

include ${TOPDIR}/mk/pkg-bottom.mk