summaryrefslogtreecommitdiff
path: root/print/ja-vflib-lib/Makefile.common
blob: 268484c29cd0fac4cafa5d59f6588c724d3a89ec (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
# $NetBSD: Makefile.common,v 1.14 2012/10/08 13:45:40 asau Exp $
#
# used by print/ja-vflib-lib/Makefile
# used by print/ja-vflib-utils/Makefile

DISTNAME=		VFlib2-${VFLIB_VERSION}
CATEGORIES+=		japanese print
MASTER_SITES+=		ftp://gull.se.hiroshima-u.ac.jp/pub/TypeHack/
DISTFILES+=		${VFLIB_SRC}

VFLIB_SRC=		${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=		tech-pkg-ja@jp.NetBSD.org
HOMEPAGE=		http://www-masu.ist.osaka-u.ac.jp/~kakugawa/VFlib/

CONFIGURE_ARGS+=	--without-x
VFLIB_VERSION=		2.24.2
PLIST_SUBST+=		VFLIB_VERSION=${VFLIB_VERSION:Q}
PLIST_SUBST+=		VFLIB_SO_VERSION=${VFLIB_VERSION:C/^2.//}

USE_LIBTOOL=		yes

FT_LIB=			ttf -lintl
FT_INCLUDEDIR=		${BUILDLINK_PREFIX.freetype}/include/freetype
FT_LIBDIR=		${BUILDLINK_PREFIX.freetype}/lib

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-freetype=${FT_LIB:Q}
CONFIGURE_ARGS+=	--with-freetype-includedir=${FT_INCLUDEDIR:Q}
CONFIGURE_ARGS+=	--with-freetype-libdir=${FT_LIBDIR:Q}
MAKE_ENV+=		LOCAL_LDFLAGS=${LDFLAGS:M*:Q}
INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX}

DISTINFO_FILE=		${.CURDIR}/../../print/ja-vflib-lib/distinfo
PATCHDIR=		${.CURDIR}/../../print/ja-vflib-lib/patches

EXTRACT_ONLY=		${VFLIB_SRC}

.include "../../graphics/freetype-lib/buildlink3.mk"